Ask Your Question
0

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

asked Feb 20 '11

tom gravatar image tom flag of Poland
849 5 27 51

updated Feb 20 '11

David Lu gravatar image David Lu flag of United States
1831 7 21 39
http://www.cse.wustl.edu/...

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?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered Feb 20 '11

kwc gravatar image kwc
7078 23 67 117
http://kwc.org/

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

link delete flag offensive edit

Comments

See also REP108 for details of how "ros" stack was broken up for diamondback: http://www.ros.org/reps/rep-0108.htmlfergs (Feb 20 '11)edit
Thank you, that solved the problem. I move on to reading REP108 :). tom (Feb 20 '11)edit
Sounds like there is still a bug in roswtf to fix that message. joq (Feb 25 '11)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 (Feb 26 '11)edit
rosinstall version 0.5.16 and greater now will bootstrap ros_comm if present. tfoote (Feb 28 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Feb 20 '11

Seen: 312 times

Last updated: Feb 20 '11