ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

easy_install -U rospkg runs infinetly on debian bifferboard

asked 2012-06-14 09:50:05 -0600

updated 2014-01-28 17:12:40 -0600

ngrennan gravatar image

I want to install ros on a bifferboard running debian squeeze. I had the same problem also with lenny and electric. The bifferboard is a small board running a 486 compatible CPU as 140 MHz. I followed the tutorial on and the first few steps work, but easy_install always freezes. I can have it running for a week, and it just uses the CPU and only a small amount of memory.

bifferboard:~# easy_install -U rospkg
install_dir /usr/local/lib/python2.6/dist-packages/ Searching for rospkg Reading Reading Reading Best match: rospkg 1.0.4 Downloading Processing rospkg-1.0.4.tar.gz Running rospkg-1.0.4/ -q bdist_egg --dist-dir /tmp/easy_install-tHbVyH/rospkg-1.0.4/egg-dist-tmp-nuBLnz * running endlessly *****

bifferboard:~# pip install -U rosinstall vcstools rospkg rosdep Requirement already up-to-date: rosinstall in /usr/local/lib/python2.6/dist-packages/rosinstall-0.6.17-py2.6.egg Requirement already up-to-date: vcstools in /usr/local/lib/python2.6/dist-packages/vcstools-0.1.17-py2.6.egg Requirement already up-to-date: rospkg in /usr/local/lib/python2.6/dist-packages Downloading/unpacking rosdep Downloading rosdep-0.9.5.tar.gz (61Kb): 61Kb downloaded Running egg_info for package rosdep * running endlessly *****

How could I debug this further?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-06-27 11:39:42 -0600

A guy from pip showed me how I could work around the problem, but he suggested, that it's bad practice for a package to try to import so much of itself from within

That got me one step further. Now I have the same behavior with rosinstall. The following command ran for a couple of hours today without making any progress:

#rosinstall --catkin ~/ros-underlay

When I terminated it with ctrl-c, I got something like a call stack:

    ^CTraceback (most recent call last):
  File "/usr/local/bin/rosinstall", line 5, in <module>
    pkg_resources.run_script('rosinstall==0.6.17', 'rosinstall')
  File "/usr/lib/python2.6/dist-packages/", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/dist-packages/", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.6.17-py2.6.egg/EGG-INFO/scripts/rosinstall", line 5, in <module>
    from rosinstall.rosinstall_cli import rosinstall_main
  File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.6.17-py2.6.egg/rosinstall/", line 53, in <module>
    import yaml
  File "/usr/local/lib/python2.6/dist-packages/yaml/", line 8, in <module>
    from loader import *
  File "/usr/local/lib/python2.6/dist-packages/yaml/", line 8, in <module>
    from constructor import *
  File "/usr/local/lib/python2.6/dist-packages/yaml/", line 161, in <module>
    class SafeConstructor(BaseConstructor):
  File "/usr/local/lib/python2.6/dist-packages/yaml/", line 257, in SafeConstructor
    inf_value *= inf_value

Running htop in another session suggests otherwise, but could that have to do with the limited resources of the device, or are these general problems?

edit flag offensive delete link more


tfoote gravatar image tfoote  ( 2012-06-27 14:06:31 -0600 )edit

answered 2012-06-29 05:38:31 -0600

Looking closer at the issue with rosinstall, it seems to have an infinite loop in : /usr/local/lib/python2.6/dist-packages/yaml/ line 256 :

    inf_value = 1e300
while inf_value != inf_value*inf_value:
    inf_value *= inf_value
nan_value = -inf_value/inf_value   # Trying to make a quiet NaN (like C99).

Might be because the bifferboard doesn't have an FPU? Comparing some python statements between the bifferboard and my workstation, it looks like the bifferboard has no inf in addition to strangely handling nan.

With an ugly hack, I could circumvent the problem. I filed a report with yaml:

edit flag offensive delete link more

answered 2012-06-16 09:03:16 -0600

tfoote gravatar image

This sounds like a pip/easy_install issue. I suggest you take it up in the pip community

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-06-14 09:50:05 -0600

Seen: 240 times

Last updated: Jun 29 '12