ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

roscore not working, ImportError: No module named RosStreamHandler

asked 2013-06-17 13:44:51 -0600

jjameson18 gravatar image

updated 2014-01-28 17:16:55 -0600

ngrennan gravatar image

I installed ROS-Fuerte on Linux 12.04 and I am getting an error when I try to run roscore.

j@instadmin-HP-Z210-Workstation:/opt/ros/fuerte$ 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://instadmin-HP-Z210-Workstation:56432/
ros_comm version 1.8.11

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion

NODES

auto-starting new master
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute     '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7    /threading.pyc'> ignored
process[master]: started with pid [24098]
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/rosmaster/main.py", line 73, in rosmaster_main
    configure_logging()   
  File "/opt/ros/fuerte/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/fuerte/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 94, in _resolve
    __import__(used)
ImportError: No module named RosStreamHandler
[master] process has died [pid 24098, exit code 1, cmd rosmaster --core -p 11311 __log:=/home/jordan/.ros/log/eb156b0e-d7a6-11e2-b471-082e5f0d17cd/master.log].
log file: /home/jordan/.ros/log/eb156b0e-d7a6-11e2-b471-082e5f0d17cd/master*.log
ERROR: could not contact master [http://instadmin-HP-Z210-Workstation:11311/]
[master] killing on exit

When I run roswtf I get:

- No package or stack in context
================================================================================
Static checks summary:

No errors or warnings
================================================================================

ROS Master does not appear to be running.
Online graph checks will not be run.
ROS_MASTER_URI is [http://localhost:11311]

Any suggestions are much appreciated. Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-06-17 21:36:57 -0600

Asfandyar Ashraf Malik gravatar image

updated 2013-06-18 02:08:44 -0600

I encountered a similar problem once. Check the path via echo $ROS_PACKAGE_PATH. You have to change the path via export ROS_PACKAGE_PATH= .... . Your path might have wrong directories or the path might consist of a symbolic link which is too complex for it to handle.

edit flag offensive delete link more
0

answered 2013-06-18 00:49:25 -0600

grzebyk gravatar image

It's strange that roscore tries to connect to differerent master than roswtf shows. Try typing env | grep ROS in terminal and check if you have all environmental variables set up correctly, especially ROS_PACKAGE_PATH, ROS_MASTER_URI and ROS_IP

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-17 13:44:51 -0600

Seen: 4,568 times

Last updated: Jun 18 '13