ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Diamondback SVN build; roscore won't start, ImportError: No module named rosgraph_msgs.msg

asked 2011-02-19 22:24:49 -0500

tom gravatar image

updated 2011-02-20 01:21:05 -0500

David Lu gravatar image

I've just built ROS Diamondback desktop full-install from SVN using instructions here. Installation process run smoothly. When trying to run roscore the following error appears:

Traceback (most recent call last):
  File "/home/user/ros/ros/bin/roscore", line 34, in <module>
    from ros import roslaunch
  File "/home/user/ros/ros/core/roslib/src/ros/__init__.py", line 57, in __getattr__
    return __import__(name)
  File "/home/user/ros/ros_comm/tools/roslaunch/src/roslaunch/__init__.py", line 53, in <module>
    from roslaunch.scriptapi import ROSLaunch
  File "/home/user/ros/ros_comm/tools/roslaunch/src/roslaunch/scriptapi.py", line 42, in <module>
    import roslaunch.parent
  File "/home/user/ros/ros_comm/tools/roslaunch/src/roslaunch/parent.py", line 55, in <module>
    import roslaunch.server
  File "/home/user/ros/ros_comm/tools/roslaunch/src/roslaunch/server.py", line 70, in <module>
    from rosgraph_msgs.msg import Log
ImportError: No module named rosgraph_msgs.msg

roswtf gives the following output:

ERROR: ROS has not been built. To fix:
cd $ROS_ROOT
make

Of course doing as roswtf suggests or running rosmake ros doesn't fix the issue.

EDIT: The thing that seems suspicious to me is there are only 18 steps in the process of building ros via rosmake ros. This seems to little in comparison with 72 dependencies being built when building cturtle.

Any clues?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-02-20 05:53:48 -0500

kwc gravatar image

Can you try running "rosmake ros_comm" and re-running?

edit flag offensive delete link more

Comments

See also REP108 for details of how "ros" stack was broken up for diamondback: http://www.ros.org/reps/rep-0108.html
fergs gravatar imagefergs ( 2011-02-20 07:20:41 -0500 )edit
Thank you, that solved the problem. I move on to reading REP108 :).
tom gravatar imagetom ( 2011-02-20 07:29:34 -0500 )edit
Sounds like there is still a bug in roswtf to fix that message.
joq gravatar imagejoq ( 2011-02-25 14:29:20 -0500 )edit
I've patched roswtf r13416. Unfortunately, it won't make it in the final Diamondback RC, but we are also working to address the underlying cause better in rosinstall.
kwc gravatar imagekwc ( 2011-02-26 04:53:18 -0500 )edit
rosinstall version 0.5.16 and greater now will bootstrap ros_comm if present.
tfoote gravatar imagetfoote ( 2011-02-28 15:50:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-19 22:24:49 -0500

Seen: 1,724 times

Last updated: Feb 20 '11