Error when I install Catkin_make after I update my CmakeLists.txf

asked 2020-02-03 06:39:36 -0500

kezi008 gravatar image

updated 2020-02-03 07:00:08 -0500

gvdhoorn gravatar image

Straight dump of the error:

Base path: /home/kasi/catkin_ws
Source space: /home/kasi/catkin_ws/src
Build space: /home/kasi/catkin_ws/build
Devel space: /home/kasi/catkin_ws/devel
Install space: /home/kasi/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/kasi/catkin_ws/build"
####
####
#### Running command: "make install -j4 -l4" in "/home/kasi/catkin_ws/build"
####
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target _beginner_tutorials_generate_messages_check_deps_AddTwoInts
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target _beginner_tutorials_generate_messages_check_deps_Num
[ 30%] Built target beginner_tutorials_generate_messages_py
[ 46%] Built target beginner_tutorials_generate_messages_lisp
[ 53%] Generating C++ code from beginner_tutorials/Num.msg
[ 61%] Generating C++ code from beginner_tutorials/AddTwoInts.srv
[ 76%] Built target beginner_tutorials_generate_messages_nodejs
[100%] Built target beginner_tutorials_generate_messages_eus
Traceback (most recent call last):
Traceback (most recent call last):
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
    import genmsg.template_tools
    import genmsg.template_tools
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
    import em
    import em
ModuleNotFoundError: No module named 'em'
ModuleNotFoundError: No module named 'em'
beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/build.make:63: recipe for target '/home/kasi/catkin_ws/devel/include/beginner_tutorials/Num.h' failed
make[2]: *** [/home/kasi/catkin_ws/devel/include/beginner_tutorials/Num.h] Error 1
make[2]: *** Waiting for unfinished jobs....
beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/build.make:70: recipe for target '/home/kasi/catkin_ws/devel/include/beginner_tutorials/AddTwoInts.h' failed
make[2]: *** [/home/kasi/catkin_ws/devel/include/beginner_tutorials/AddTwoInts.h] Error 1
CMakeFiles/Makefile2:691: recipe for target 'beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/all' failed
make[1]: *** [beginner_tutorials/CMakeFiles/beginner_tutorials_generate_messages_cpp.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make install -j4 -l4" failed
edit retag flag offensive close merge delete

Comments

I have the exact same problem, but have not been able to resolve it. SOLVED: I had installed with Python 3. I created a second installation using Python 2.7 and there were no errors.

dpauld gravatar image dpauld  ( 2020-03-24 09:39:56 -0500 )edit