Robotics StackExchange | Archived questions

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

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

Asked by alwagne on 2020-03-10 11:25:05 UTC

Comments

/usr/bin/python3

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

Asked by gvdhoorn on 2020-03-10 11:51:09 UTC

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".

Asked by gvdhoorn on 2020-03-10 11:55:30 UTC

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

Asked by alwagne on 2020-03-10 11:55:31 UTC

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.

Asked by gvdhoorn on 2020-03-10 11:57:24 UTC

Answers