"rosdep update" broken after ubuntu 12.04.04 amd64 ros-groovy-* updates.
After updating ros-groovy-*
packages from official precise
repository found out that rosdep
is broken.
Terminal:
$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit <a href="https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml">https://github.com/ros/rosdistro/raw/...</a>
Hit <a href="https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml">https://github.com/ros/rosdistro/raw/...</a>
Hit <a href="https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml">https://github.com/ros/rosdistro/raw/...</a>
Hit <a href="https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml">https://github.com/ros/rosdistro/raw/...</a>
Hit <a href="https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml">https://github.com/ros/rosdistro/raw/...</a>
Hit <a href="https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml">https://github.com/ros/rosdistro/raw/...</a>
Query rosdistro index <a href="https://raw.github.com/ros/rosdistro/master/index.yaml">https://raw.github.com/ros/rosdistro/...</a>
ERROR: Rosdep experienced an error: Unable to handle 'index' format version '2', please update rosdistro
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : <a href="http://www.ros.org/wiki/rosdep">http://www.ros.org/wiki/rosdep</a>
rosdep version: 0.10.21
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 118, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 261, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 269, in _no_args_handler
return command_handlers[command](options)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 434, in command_update
error_handler=update_error_handler)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 422, in update_sources_list
for d, dist in get_index().distributions.iteritems():
File "/usr/local/lib/python2.7/dist-packages/rosdep2/rosdistrohelper.py", line 58, in get_index
_RDCache.index = rosdistro.get_index(_RDCache.index_url)
File "/usr/local/lib/python2.7/dist-packages/rosdistro/__init__.py", line 106, in get_index
return Index(data, base_url)
File "/usr/local/lib/python2.7/dist-packages/rosdistro/index.py", line 51, in __init__
assert int(data['version']) == 1, "Unable to handle '%s' format version '%d',
please update rosdistro" % (Index._type, int(data['version']))
AssertionError: Unable to handle 'index' format version '2', please update
rosdistro
The thing which actually bugs me, that $ dpkg -s python rosdep
reports:
Package: python-rosdep
Source: rosdep
Version: 0.10.25-1
BUT $ rosdep --version
, >>> pkg_resources.get_distribution("rosdep").version
and $ pip search rosdep
returns 0.10.21
as installed version.
Any ideas, how to fix this thing?
I've already tried re-sourcing setup.bash
on another terminal and reinining deps. Do not think that reinstalling whole damn thing is the nicest solution pinning the problem down to it's roots.
EDIT
Another weird thing:
$ which rosdep
returns /usr/local/bin/rosdep
, but trucated $ dpkg -L python-rosdep ...