I am getting cmake failed error when executing catkin_make command for Ros packages
I am using Ubuntu on a virutal box to run ROS melodic. I have made some package to build custom message. when i try to catkin_make i get the cmake failed error.
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/hitesh/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:56 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/hitesh/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hitesh/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
there is no screenshot attached.
This is a good thing, as error messages are text. Text should not be shown in a screenshot, but just copied into your question, verbatim.
Please copy-paste the error message into your question, select the lines of the error and press
ctrl+k
or click the Preformatted Text button (the one with101010
on it).