安装机器人ros驱动遇到的问题(catkin_make)


与Python兼容问题(No module catkin_dkg.package)

-- Using Python nosetests: /usr/bin/nosetests-2.7  
ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package  
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.  
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):  
  execute_process(/home/wgb/anaconda2/bin/python  
  "/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py"  
  "/opt/ros/kinetic/share/catkin/cmake/../package.xml"  
  "/home/wgb/catkin_ws/build/catkin/catkin_generated/version/package.cmake")  
  returned error code 1  
Call Stack (most recent call first):  
  /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process)  
  /opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)  
  /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)  
  CMakeLists.txt:52 (find_package)  
  
  
-- Configuring incomplete, errors occurred!  
See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".  
See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".  
Invoking "cmake" failed  
 
已邀请:

ncnynl

赞同来自:

http://blog.csdn.net/wuguangbin1230/article/details/77803017
 
 
 

解决办法 检查一下Python的版本: wgb@wgb:~$ python -V 检查一下catkin依赖的Python版本: wgb@wgb:~$ dpkg -L python-catkin-pkg 如果Python的版本和catkin依赖的版本不一样,说明Python依赖包有问题,
 
解决办法:
 
copyconda install setuptools  
  
pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools  

要回复问题请先登录注册