Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to start roscore, Indigo on Ubuntu 14.04

Hi,

i recently tried to use Indigo on my notebook (Lenovo T440s). I tried the Install from source as well es the Install from repository methods to install a basic ROS Indigo. As long as i do not need to start a roscore on this machine pretty much everything works as expected. Connections to other machines, robots with roscore running work just fine.

As soon as i want to run a roscore it receive the following error:

./install_isolated/bin/roscore                                                                                                                                     :(
... logging to /home/bajo/.ros/log/a54a89fe-d5bd-11e3-9fec-28d244198e8b/roslaunch-roscosmos-3532.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/server.py", line 352, in start
    super(ROSLaunchNode, self).start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 199, in start
    _thread.start_new_thread(self.run, ())
AttributeError: 'module' object has no attribute 'start_new_thread'

The same problem arises when i use the installation from the repository. The error messages just differ in terms of the paths. As operating system i use Ubuntu 14.04 64bit and i have installed python 2.7 and 3.4. I am not sure if i installed both of them manually or if Ubuntu did this on its own. But the problem seems to happen because in /home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py we try to import _thread and if this fails import thread. _thread is imported without errors, but does not contain the start_new_thread. After changing this to import thread as _thread roscore is able to start fine.

So my question is. Is just my installation of Ubuntu 14.04 so messed up that i am the only one to have this import conflict or is every Ubuntu installation going to face this issues?

Thank you for any answer.

bajo

Unable to start roscore, Indigo on Ubuntu 14.04

Hi,

i recently tried to use Indigo on my notebook (Lenovo T440s). I tried the Install from source as well es the Install from repository methods to install a basic ROS Indigo. As long as i do not need to start a roscore on this machine pretty much everything works as expected. Connections to other machines, robots with roscore running work just fine.

As soon as i want to run a roscore it receive the following error:

./install_isolated/bin/roscore                                                                                                                                     :(
... logging to /home/bajo/.ros/log/a54a89fe-d5bd-11e3-9fec-28d244198e8b/roslaunch-roscosmos-3532.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/server.py", line 352, in start
    super(ROSLaunchNode, self).start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 199, in start
    _thread.start_new_thread(self.run, ())
AttributeError: 'module' object has no attribute 'start_new_thread'

The same problem arises when i use the installation from the repository. The error messages just differ in terms of the paths. paths.

source /opt/ros/indigo/setup.zsh                                                                        :(
bajo@roscosmos ~ % roscore                         
... logging to /home/bajo/.ros/log/e287ee68-d74a-11e3-ad4f-28d244198e8b/roslaunch-roscosmos-3568.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/server.py", line 352, in start
    super(ROSLaunchNode, self).start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 199, in start
    _thread.start_new_thread(self.run, ())
AttributeError: 'module' object has no attribute 'start_new_thread'

As operating system i use Ubuntu 14.04 64bit and i have installed python 2.7 and 3.4. I am not sure if i installed both of them manually or if Ubuntu did this on its own. But the problem seems to happen because in /home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py we try to import _thread and if this fails import thread. _thread is imported without errors, but does not contain the start_new_thread. After changing this to import thread as _thread roscore is able to start fine.

So my question is. Is just my installation of Ubuntu 14.04 so messed up that i am the only one to have this import conflict or is every Ubuntu installation going to face this issues?

Thank you for any answer.

bajo

Unable to start roscore, Indigo on Ubuntu 14.04

Hi,

i recently tried to use Indigo on my notebook (Lenovo T440s). I tried the Install from source as well es the Install from repository methods to install a basic ROS Indigo. As long as i do not need to start a roscore on this machine pretty much everything works as expected. Connections to other machines, robots with roscore running work just fine.

As soon as i want to run a roscore it receive the following error:

./install_isolated/bin/roscore                                                                                                                                     :(
... logging to /home/bajo/.ros/log/a54a89fe-d5bd-11e3-9fec-28d244198e8b/roslaunch-roscosmos-3532.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/roslaunch/server.py", line 352, in start
    super(ROSLaunchNode, self).start()
  File "/home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 199, in start
    _thread.start_new_thread(self.run, ())
AttributeError: 'module' object has no attribute 'start_new_thread'

The same problem arises when i use the installation from the repository. The error messages just differ in terms of the paths.

source /opt/ros/indigo/setup.zsh                                                                        :(
bajo@roscosmos ~ % roscore                         
... logging to /home/bajo/.ros/log/e287ee68-d74a-11e3-ad4f-28d244198e8b/roslaunch-roscosmos-3568.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/server.py", line 352, in start
    super(ROSLaunchNode, self).start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 199, in start
    _thread.start_new_thread(self.run, ())
AttributeError: 'module' object has no attribute 'start_new_thread'

As operating system i use Ubuntu 14.04 64bit and i have installed python 2.7 and 3.4. I am not sure if i installed both of them manually or if Ubuntu did this on its own. But the problem seems to happen because in /home/bajo/work/development/indigo/install_isolated/lib/python2.7/dist-packages/rosgraph/xmlrpc.py we try to import _thread and if this fails import thread. _thread is imported without errors, but does not contain the start_new_thread. After changing this to import thread as _thread roscore is able to start fine.

Edit

This is the thread import from the unmodified /opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/xmlrpc.py as installed by the package ros-indigo-rosgraph (1.11.0-1trusty-20140305-0350-+0000) from the repository.

try:
    import _thread
except ImportError:
    import thread as _thread

So my question is. Is just my installation of Ubuntu 14.04 so messed up that i am the only one to have this import conflict or is every Ubuntu installation going to face this issues?

Thank you for any answer.

bajo