您当前的位置: 首页 >  ui

鱼香ROS

暂无认证

  • 0浏览

    0关注

    498博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

记录个ros2用colcon build出现的小错误:ModuleNotFoundError: No module named ‘catkin_pkg‘

鱼香ROS 发布时间:2022-01-20 20:11:21 ,浏览量:0

本教程作者:小鱼 公众号:鱼香ROS QQ交流群:139707339 教学视频地址:小鱼的B站 官网:鱼香ROS官网 版权声明:如非允许禁止转载与商业用途。 公众号

解决方法:

pip3 install catkin_pkg

错误原因:小鱼装了conda应该是罪魁祸首

Starting >>> fishbot_navigation2
--- stderr: fishbot_navigation2                         
Traceback (most recent call last):
  File "/opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 21, in 
    from catkin_pkg.package import parse_package_string
ModuleNotFoundError: No module named 'catkin_pkg'
CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:94 (message):
  execute_process(/home/ros2/miniconda3/bin/python3
  /opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
  /home/ros2/code/fishbot_ws/src/fishbot_navigation2/package.xml
  /home/ros2/code/fishbot_ws/build/fishbot_navigation2/ament_cmake_core/package.cmake)
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
  /opt/ros/foxy/share/ament_lint_auto/cmake/ament_lint_auto_find_test_dependencies.cmake:31 (ament_package_xml)
  CMakeLists.txt:34 (ament_lint_auto_find_test_dependencies)


---
Failed               
关注
打赏
1666092100
查看更多评论
0.0454s