When I run some tools I get an error like this:
... Unable to handle 'index' format version '2', please update rosdistro ...
For example rosdep update
gives this:
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] : http://www.ros.org/wiki/rosdep
rosdep version: 0.10.24
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 121, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 264, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 272, in _no_args_handler
return command_handlers[command](options)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 437, in command_update
error_handler=update_error_handler)
File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 433, in update_sources_list
for d, dist in get_index().distributions.items():
File "/usr/lib/pymodules/python2.7/rosdep2/rosdistrohelper.py", line 58, in get_index
_RDCache.index = rosdistro.get_index(_RDCache.index_url)
File "/usr/lib/pymodules/python2.7/rosdistro/__init__.py", line 109, in get_index
return Index(data, base_url)
File "/usr/lib/pymodules/python2.7/rosdistro/index.py", line 50, 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
Also bloom-release ...
gives this:
Traceback (most recent call last):
File "/usr/bin/bloom-release", line 9, in <module>
load_entry_point('bloom==0.4.4', 'console_scripts', 'bloom-release')()
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 797, in main
args.new_track, not args.non_interactive, args.pretend)
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 590, in perform_release
release_repo = get_release_repo(repository, distro)
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 207, in get_release_repo
url = get_repo_uri(repository, distro)
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 179, in get_repo_uri
release_file = get_release_file(distro)
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 157, in get_release_file
_rosdistro_release_files[distro] = rosdistro.get_release_file(get_index(), distro)
File "/usr/lib/pymodules/python2.7/bloom/commands/release.py", line 150, in get_index
_rosdistro_index = rosdistro.get_index(rosdistro.get_index_url())
File "/usr/lib/pymodules/python2.7/rosdistro/__init__.py", line 109, in get_index
return Index(data, base_url)
File "/usr/lib/pymodules/python2.7/rosdistro/index.py", line 50, 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
This version of bloom is '0.4.4', but the newest available version is '0.4.7'. Please update.
roslocate info <pkg> --distro hydro
also produces warnings:
# rosdistro.get_cached_release() has been deprecated in favor of the new function rosdistro.get_cached_distribution() - please check that you have the latest versions of the Python tools (e.g. on Ubuntu/Debian use: sudo apt-get update && sudo apt-get install --only-upgrade python-bloom python-rosdep python-rosinstall python-rosinstall-generator)
# rosdistro.get_release_cache() has been deprecated in favor of the new function rosdistro.get_distribution_cache() - please check that you have the latest versions of the Python tools (e.g. on Ubuntu/Debian use: sudo apt-get update && sudo apt-get install --only-upgrade python-bloom python-rosdep python-rosinstall python-rosinstall-generator)
# rosdistro.get_source_file() has been deprecated in favor of the new function rosdistro.get_distribution_file() - please check that you have the latest versions of the Python tools (e.g. on Ubuntu/Debian use: sudo apt-get update && sudo apt-get install --only-upgrade python-bloom python-rosdep python-rosinstall python-rosinstall-generator)
How can I resolve these errors and warnings?
Originally posted by William on ROS Answers with karma: 17335 on 2014-01-24
Post score: 4