Problem catkin_make with python3
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
Asked by sabrina on 2023-01-11 09:04:10 UTC
Answers
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.
Asked by Mike Scheutzow on 2023-01-11 12:12:52 UTC
Comments