Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
来源:互联网 发布:盗版软件 知乎 编辑:程序博客网 时间:2024/06/14 00:38
环境
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_SLAM2Traceback (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 osxunsupported 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-permissionsrosdep update
然后再去cmake编译即可。
阅读全文
0 0
- Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
- [rospack] Error: stack/package pointing_gesture not found
- [rospack] Error: package 'chapter3_tutorials' not found
- rospack depends1 beginner_tutorials 出现错误 [rospack] Error: the rosdep view is empty: call 'sudo rosd
- ROS 错误之 [rospack] Error: package 'beginner_tutorials' not found
- ROS 错误之 [rospack] Error: package 'beginner_tutorials' not found
- Eclipse CDT + GCC error: function '...' could not be resolved
- Python---function call
- 解决卸载 Git 时候提示 “Runtime Error (at 18:1292): Could not call proc” 的问题
- [Tech] Python Call C function
- python call c++ function---传参
- Could not find ColorSync function’ error in iOS 5 projects 解决方案
- LLVM ERROR: Program used external function '___dso_handle' which could not be resolved!的解决方案
- OpenGL.error.NullFunctionError: Attempt to call an undefined function (ubuntu14(32位) python opengl )
- Fatal error: Call to undefined function mysql_connect()
- Pure virtual function call error探讨
- Fatal error: Call to undefined function curl_init()
- Pure virtual function call error探讨
- Angular4
- 网络判断
- 关于项目打成jar包文件资源找不到的同学们你们有救了!!!
- turtlebot使用 (一)
- 对Jquery中的ajax再封装,简化操作示例
- Error: could not call python function 'rosdep2.rospack.init_rospack_interface'
- 通过Spring @PostConstruct 和 @PreDestroy 方法 实现初始化和销毁bean之前进行的操作
- SSL P1072 砝码称重
- 集合中的List以及其三个实现类ArrayList,LinkedList,Vector
- 《spring cloud微服务实战》读书笔记——Spring Cloud Ribbon(一)RestTemplate
- Spark累加器(Accumulator)陷阱及解决办法
- tarjan算法求桥
- 【软工】软件简解
- OS安全机制之可追究机制