ImportError: No module named rosgraph_msgs.msg Raspbian Stretch

asked 2019-06-03 05:56:51 -0500

viciopoli gravatar image

I've created a catkin workspace on my raspberry pi 3B+ but on roscore command an error appear. The result of roscore is:

Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/devel/bin/roscore", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/pi/ros_catkin_ws/src/ros_comm/roslaunch/scripts/roscore", line 69, in <module>
    import roslaunch
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 61, in <module>
    from .scriptapi import ROSLaunch
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/scriptapi.py", line 42, in <module>
    import roslaunch.parent
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 54, in <module>
    import roslaunch.server
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/server.py", line 78, in <module>
    from rosgraph_msgs.msg import Log
ImportError: No module named rosgraph_msgs.msg
edit retag flag offensive close merge delete