Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
2017-12-18 20:56
435 查看
环境
Ubuntu 14.04 + ROS indigo今早装了个
catkin工具,装了部分依赖,然后下午在编译ORB-SLAM2的时候突然被卡住了,一个近乎诡异的报错,提示:
[rospack] Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
详细报错信息如下:
Failed to invoke /opt/ros/indigo/bin/rospack deps-manifests ORB_SLAM2
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface
lookup = _get_default_RosdepLookup(Options())
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 128, in _get_default_RosdepLookup
verbose=options.verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 613, in create_default
sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 514, in load_cached_sources_list
return parse_sources_data(cache_data, origin=cache_index, model=model)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 372, in parse_sources_data
raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin)
rosdep2.core.InvalidData: line:
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
unsupported pickle protocol: 4
[rospack] Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
CMake Error at /opt/ros/indigo/share/ros/core/rosbuild/public.cmake:129 (message):
Failed to invoke rospack to get compile flags for package 'ORB_SLAM2'.
Look above for errors from rospack itself. Aborting. Please fix the
broken dependency!
Call Stack (most recent call first):
/opt/ros/indigo/share/ros/core/rosbuild/public.cmake:207 (rosbuild_invoke_rospack)
CMakeLists.txt:4 (rosbuild_init)
-- Configuring incomplete, errors occurred!
解决方案
sudo rosdep fix-permissions rosdep update
然后再去cmake编译即可。
相关文章推荐
- panic: interface conversion: interface {} is nil, not chan *sarama.ProducerError
- TypeError: __init__() takes exactly 2 arguments (1 given)(已解决)
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- eth0: ERROR while getting interface flags: No such device
- VS2010 compile error ( The operation could not be completed. No such interface supported)
- jbpm 整合的时候 报的错误 java.lang.LinkageError: loader constraint violation: when resolving interface method
- MySQL 从 5.5 升级到 5.6,启动时报错 [ERROR] Plugin 'InnoDB' init function returned error
- git gitosis-init OSError: [Errno 2] No such file or directory
- VS中MFC连接MySQL由于系统不同位(32/64)引起的错误:无法解析的外部符号 _mysql_init@4,_mysql_query,_mysql_error
- Error: Expecting keyword 'class', 'interface', or 'enum' before '-optimizationpasses' in line 11 of
- javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation:when resolving interface method "javax.servlet.jsp
- Java.lang.Error: Properties init: Could not determine current working directory.
- WebLogic下运行错误java.lang.LinkageError: loader constraint violation in interface itable initialization
- Ubuntu-10.10 Initramfs boot error
- Error: mysql error: mysql: [Warning] Using a password on the command line interface can be insecure
- java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter has interface o
- error LNK2019: 无法解析的外部符号 ___glutInitWithExit@12,该符号在函数 _glutInit_ATEXIT_HACK@8 中被引用 1>GEARS.obj : e
- Error in module RSQL of the database interface
- Python_bug收集_TypeError:'str' does not support the buffer interface
- [rospack] Error: stack/package pointing_gesture not found