笔记关键词检索?

在所有笔记中搜索你感兴趣的关键词!

《ROS机器人开发实践》

作者:胡春旭 著


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

 

评论 (0)

发布评论

你的邮箱地址不会被公开。请输入所有带 * 的信息。