CMake Error at /opt/ros/.../safe_execute_process.cmake

asked 2020-03-10 11:25:05 -0500

alwagne gravatar image

updated 2020-03-10 11:54:34 -0500

gvdhoorn gravatar image

Tried all the solutions, it didn't worked.

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/alwagne/Aue893_Alwagne/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/alwagne/Aue893_Alwagne/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/alwagne/Aue893_Alwagne/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
edit retag flag offensive close merge delete

Comments

/usr/bin/python3

ROS Melodic does not support using Python 3 when installed with the packages provided by repositories.ros.org.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-10 11:51:09 -0500 )edit

Also:

Tried all the solutions, it didn't worked.

If you don't try to accurately describe what you've tried, I doubt ppl here are going to be willing to help you.

This is just about as bad as "it doesn't work".

gvdhoorn gravatar image gvdhoorn  ( 2020-03-10 11:55:30 -0500 )edit

My Python Version is 2.7.17. Is there still an issue?

alwagne gravatar image alwagne  ( 2020-03-10 11:55:31 -0500 )edit

Apparently Catkin (or really: CMake) has decided that /usr/bin/python3 is the Python interpreter to use on your system.

Why that is we can't know, so I'm afraid you'll have to do some digging yourself.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-10 11:57:24 -0500 )edit