How can I fix "Unable to handle 'index' format version '2', please update rosdistro"
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] : <a href="http://www.ros.org/wiki/rosdep">http://www.ros.org/wiki/rosdep</a>
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 ...