ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

catkin_make error: No module named 'catkin_pkg'

asked 2020-11-23 05:03:38 -0600

Michal73 gravatar image

updated 2020-11-24 02:45:49 -0600

gvdhoorn gravatar image

Hi I can not resolve error with catkin_make procedure Could you please give some hint , the error is as follow :

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):
  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/michal/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/michal/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-23 09:22:34 -0600

tryan gravatar image

It appears you are using ROS Melodic (built against Python2) but the build process is trying to use Python3 similar to this answer. This may occur because of an improper environment setup. Did you source the correct setup files (e.g., source /opt/ros/melodic/setup.bash)?

edit flag offensive delete link more


Thank you for replay !!! , I will confirm and let you know

Michal73 gravatar image Michal73  ( 2020-11-24 02:07:47 -0600 )edit

Question Tools

1 follower


Asked: 2020-11-23 05:03:38 -0600

Seen: 351 times

Last updated: Nov 24 '20