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

Problem catkin_make with python3

asked 2023-01-11 08:06:36 -0500

updated 2023-01-11 11:10:08 -0500

Mike Scheutzow gravatar image

Hello, I’ve a problem when running Ros Osdk, I share with you the error I’m encountering. This error occurs when using python 3 ( I can’t use other version then python 3 in my developments). Thank you for your support.

commande : catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
error : 

[ 66%] Generating C++ code from detection_receptor/AddTwoInts.srv
[ 73%] Generating EusLisp manifest code for detection_receptor
[ 73%] Built target detection_receptor_generate_messages_lisp
[ 73%] Built target detection_receptor_generate_messages_cpp
[ 73%] Built target detection_receptor_generate_messages_eus
[ 80%] Building CXX object detection_receptor/CMakeFiles/listener.dir/src/listener.cpp.o
Illegal instruction (core dumped)
detection_receptor/CMakeFiles/detection_receptor_generate_messages_py.dir/build.make:76: recipe for target '/home/nvidia/volta_autonome/devel/lib/python3/dist-packages/detection_receptor/msg/_Num.py' failed
make[2]: *** [/home/nvidia/volta_autonome/devel/lib/python3/dist-packages/detection_receptor/msg/_Num.py] Error 132
make[2]: *** Waiting for unfinished jobs....
Illegal instruction (core dumped)
detection_receptor/CMakeFiles/detection_receptor_generate_messages_py.dir/build.make:87: recipe for target '/home/nvidia/volta_autonome/devel/lib/python3/dist-packages/detection_receptor/srv/_AddTwoInts.py' failed
make[2]: *** [/home/nvidia/volta_autonome/devel/lib/python3/dist-packages/detection_receptor/srv/_AddTwoInts.py] Error 132
CMakeFiles/Makefile2:1106: recipe for target 'detection_receptor/CMakeFiles/detection_receptor_generate_messages_py.dir/all' failed
make[1]: *** [detection_receptor/CMakeFiles/detection_receptor_generate_messages_py.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Linking CXX executable /home/nvidia/volta_autonome/devel/lib/detection_receptor/listener
[ 86%] Built target listener
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j6 -l6" failed
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2023-01-11 11:12:52 -0500

Mike Scheutzow gravatar image

I can’t use other version then python 3 in my developments

Then you can not use ros melodic. You need to move to ros1 noetic or to ros2.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-01-11 08:04:10 -0500

Seen: 91 times

Last updated: Jan 11 '23