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 ...
roscore works for me, installed from the Ubuntu packages. Your example uses you manually compiled version. Try ``source /opt/ros/indigo/setup.bash`` followed by ``roscore``.
Thank you joq for your answer. Unfortunately the result is the same. I edited my original post to include the output from roscore which was installed from the repository. Can you please tell me which versions of python (2 and 3) you have installed on your system and what system you are running? Thank you.
Python versions: 2.7.6 and 3.4.0; should be the same on any up-to-date Trusty system. The _thread problem should only happen with python3. What does your /usr/bin/python point to?
There is something wrong with your environment. You are still resolving things to your hand-built workspace. Try creating a new shell with a clean environment (not sourcing your workspace, *only* /opt/ros/indigo/setup.zsh).
I think it is not a problem with my ROS environment. I can even import _thread in my python2 interpreter, which is of course independent from ROS. Also in my edited post i have both versions. The hand-built as well as the on from the repository.
Please post the output of ``ls -l /usr/bin/python``.
ls -l /usr/bin/python lrwxrwxrwx 1 root root 9 Apr 5 17:23 /usr/bin/python -> python2.7*
Please post the values of $PYTHONPATH, $ROS_PACKAGE_PATH, and $CMAKE_PREFIX_PATH in your environment.