Ask Your Question
1

roscore fails to start after latest update? (precise, groovy, AMD64)

asked 2013-04-03 23:03:44 -0500

updated 2014-01-28 17:16:02 -0500

ngrennan gravatar image

I performed a update of my package based ROS installation yesterday (12.04, groovy, AMD64) and tried to start a roscore today, which results in the following output:

kohlbrecher@opstation:~$ roscore
WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://opstation:32866/
ros_comm version 1.9.44

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion

NODES

auto-starting new master
process[master]: started with pid [2686]
Traceback (most recent call last):
  File "/opt/ros/groovy/bin/rosmaster", line 35, in <module>
    rosmaster.rosmaster_main()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosmaster/main.py", line 73, in rosmaster_main
    configure_logging()   
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosmaster/main.py", line 57, in configure_logging
    _log_filename = rosgraph.roslogging.configure_logging('rosmaster', logging.DEBUG, filename=filename)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 105, in configure_logging
    logging.config.fileConfig(config_file, disable_existing_loggers=False)
  File "/usr/lib/python2.7/logging/config.py", line 78, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 153, in _install_handlers
    klass = _resolve(klass)
  File "/usr/lib/python2.7/logging/config.py", line 88, in _resolve
    found = __import__(used)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
    from .client import spin, myargv, init_node, \
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/client.py", line 59, in <module>
    import rospy.impl.init
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/impl/init.py", line 107, in <module>
    class RosStreamHandler(rosgraph.roslogging.RosStreamHandler):
AttributeError: 'module' object has no attribute 'RosStreamHandler'
[master] process has died [pid 2686, exit code 1, cmd rosmaster --core -p 11311 __log:=/home/kohlbrecher/.ros/log/e4297ce0-9d04-11e2-8192-9439e59a9133/master.log].
log file: /home/kohlbrecher/.ros/log/e4297ce0-9d04-11e2-8192-9439e59a9133/master*.log
ERROR: could not contact master [http://opstation:11311/]
[master] killing on exit

I also have fuerte installed and fuerte's roscore starts up fine.

I'm not aware of any changes on my part that could be responsible. OTOH I'd expect ROS Answers to be full of complaints if this happened to everyone. Any hints on how to solve the problems are appreciated.

/edit: Errors about 'module' having no 'RosStreamHandler' attribute also appear in other python code besides roscore (for the moment using the fuerte master with groovy nodes)

edit retag flag offensive close merge delete

Comments

I'm running on Natty/11.10, AMD64 and just updated groovy. roscore starts fine. It's not exactly the same, so it must be something specific.

dornhege gravatar imagedornhege ( 2013-04-04 00:06:57 -0500 )edit

hi, i updated today fuerte and cant start roscore. It fails with:

inflo gravatar imageinflo ( 2013-04-04 07:57:35 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2013-04-04 02:23:29 -0500

Indeed solved after updating again. I had to

sudo apt-get dist-upgrade

just

sudo apt-get upgrade

didn't do it.

edit flag offensive delete link more
3

answered 2013-04-04 01:53:20 -0500

radisc gravatar image

I had your exact same problem, i simply upgraded my ubuntu 12.10 groovy packages to the very last version and now everything works fine again

edit flag offensive delete link more
0

answered 2013-04-04 08:00:34 -0500

inflo gravatar image

hi, as a comment cannot be as long as my question to this, i post it as an answer.

i updated my ros-fuerte today and now roscore does not startup, it fails with:

Traceback (most recent call last): File "/opt/ros/fuerte/bin/rosmaster", line 35, in <module> rosmaster.rosmaster_main() File "/opt/ros/fuerte/lib/python2.7/dist-packages/ros_comm-1.8.15-py2.7.egg/rosmaster/main.py", line 73, in rosmaster_main configure_logging()
File "/opt/ros/fuerte/lib/python2.7/dist-packages/ros_comm-1.8.15-py2.7.egg/rosmaster/main.py", line 57, in configure_logging _log_filename = rosgraph.roslogging.configure_logging('rosmaster', logging.DEBUG, filename=filename) File "/opt/ros/fuerte/lib/python2.7/dist-packages/ros_comm-1.8.15-py2.7.egg/rosgraph/roslogging.py", line 104, in configure_logging logging.config.fileConfig(config_file, disable_existing_loggers=False) File "/usr/lib/python2.7/logging/config.py", line 78, in fileConfig handlers = _install_handlers(cp, formatters) File "/usr/lib/python2.7/logging/config.py", line 153, in _install_handlers klass = _resolve(klass) File "/usr/lib/python2.7/logging/config.py", line 94, in _resolve __import__(used) ImportError: No module named RosStreamHandler

There are no updates anymore i can install as the other answers suggest, but the curios thing is , the others got fuerte-roscore running but groovy-roscore failed, me its the other way around??

thanks flo

edit flag offensive delete link more

Comments

Please do not ask questions in the guise of an "answer". If you have a question ask it directly. If it relates to this one, provide a link.

joq gravatar imagejoq ( 2013-04-05 17:19:39 -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

2 followers

Stats

Asked: 2013-04-03 23:03:44 -0500

Seen: 1,257 times

Last updated: Apr 04 '13