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

rosdep install error

asked 2012-02-21 05:21:07 -0600

Kei Okada gravatar image


I had following error when install rosdep to my oneiric-amd64 machine. Does anyone know what is the problem?

sudo easy_install -U rosdep
Searching for rosdep
Best match: rosdep 0.8.0
Processing rosdep-0.8.0.tar.gz
Running rosdep-0.8.0/ -q bdist_egg --dist-dir /tmp/easy_install-C_3LU7/rosdep-0.8.0/egg-dist-tmp-rb_MJH
Traceback (most recent call last):
Processing rosdep-0.8.0.tar.gz
Running rosdep-0.8.0/ -q bdist_egg --dist-dir /tmp/easy_install-C_3LU7/rosdep-0.8.0/egg-dist-tmp-rb_MJH
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 9, in <module>
    load_entry_point('distribute==0.6.16dev-r0', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1912, in main
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1893, in with_ei_usage
    return f()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1916, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.7/distutils/", line 152, in setup
  File "/usr/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/lib/python2.7/distutils/", line 972, in run_command
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 364, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 604, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 634, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 824, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1101, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1090, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/", line 29, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.7/dist-packages/setuptools/", line 70, in run
    return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/", line 31, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "", line 6, in <module>
  File "src/rosdep2/", line 38, in <module>

  File "src/rosdep2/", line 39, in <module>
ImportError: No module named rospkg.os_detect
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-02-21 07:44:52 -0600

kwc gravatar image

You need to "pip install -U rospkg"

I'm fixing an issue right now that will make this problem go away with the next update.

edit flag offensive delete link more


It worked for me, but had to use 'rosmake --pre-clean'.

Enrique gravatar image Enrique  ( 2012-05-31 23:35:54 -0600 )edit

answered 2012-02-21 07:24:40 -0600

sissow2 gravatar image

I dont think you have to easy_install rosdep; isn't it a part of the package that you download?


edit flag offensive delete link more



rosdep 2 is now a standalone tool and has a different architecture. So Kei is referring to the Fuerte version

kwc gravatar image kwc  ( 2012-02-21 07:46:14 -0600 )edit

Does it mean that in the future, rosdep 2 will not be included in the deb and therefore should always be installed by pip? What will happen for the "normal" user?

Stéphane Magnenat gravatar image Stéphane Magnenat  ( 2012-03-20 23:34:36 -0600 )edit

rosdep is now equivalent to 'rosinstall' for the normal user. Both are install outside of a distribution so that they can be upgraded continuously (e.g. to deploy new platform support more easily)

kwc gravatar image kwc  ( 2012-03-21 06:26:06 -0600 )edit

Question Tools

1 follower


Asked: 2012-02-21 05:21:07 -0600

Seen: 1,382 times

Last updated: Feb 21 '12