"please update rosdistro" error when trying to execute rosdep update on ros hydro
Hello,
I'm getting the following error when trying to execute rosdep update
on my youbot running ros hydro (hint: I also have ros fuerte installed) on an Ubuntu 12.04 LTS:
`AssertionError: Unable to handle 'index' format version '2', please update rosdistro`
The complete Stacktrace:
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 121, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 264, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 272, in _no_args_handler
return command_handlers[command](options)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 437, in command_update
error_handler=update_error_handler)
File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 433, in update_sources_list
for d, dist in get_index().distributions.items():
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 109, in get_index
return Index(data, base_url)
File "/usr/local/lib/python2.7/dist-packages/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']))
This question has been asked for ROS Groovy here: http://answers.ros.org/question/12226... and there is also a related question here: http://answers.ros.org/question/49143...
However the soulations provided in these questions don't fix the problem I have.
Which OS is your youbot running? Which version of rosdep do you have installed?
I'm running Ubuntu 12.04 LTS, I'll check the rosdep verison later, when I have access to the robot
rosdep version is 0.10.25-1 for python 2.7
The package is question is not rosdep but rosdistro. Please check the version of that pcakage - it must be 0.3.x. You can check with: python -c "import rosdistro; print(rosdistro.__version__)"
I checked it, the version is 0.2.17. I tried apt-get install --reinstall python-rosdistro, the console output stated that it is installing 0.3.4-1, but the error is still present and executing python -c "import rosdistro; print(rosdistro.__version__)" still leads to 0.2.17. How can I upgrade?