首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >每次运行catkin_make时都会出错

每次运行catkin_make时都会出错
EN

Ask Ubuntu用户
提问于 2022-05-16 16:27:27
回答 1查看 1.1K关注 0票数 0

每次运行catkin_make时,我都会收到这个错误。我已经尝试过多种方法,但似乎都没有用。

代码语言:javascript
复制
pdk4@pdk4:~/catkin_ws$ catkin_make
Base path: /home/pdk4/catkin_ws
Source space: /home/pdk4/catkin_ws/src
Build space: /home/pdk4/catkin_ws/build
Devel space: /home/pdk4/catkin_ws/devel
Install space: /home/pdk4/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/pdk4/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/pdk4/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/pdk4/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/pdk4/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pdk4/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/bin/python3
  "/opt/ros/melodic/share/catkin/cmake/parse_package_xml.py"
  "/opt/ros/melodic/share/catkin/cmake/../package.xml"
  "/home/pdk4/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
  /opt/ros/melodic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:58 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/pdk4/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pdk4/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:530: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
EN

回答 1

Ask Ubuntu用户

发布于 2022-05-17 05:04:33

您正在获取No module named 'catkin_pkg'错误消息,因为您没有安装catkin_pkg模块。要在所有当前支持的Ubuntu版本中安装它,请打开终端并键入。

代码语言:javascript
复制
sudo apt update
sudo apt install python3-catkin-pkg catkin
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1408896

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档