ROS Problem: stack/package not found
[ROS] Use irobot create in gazebo with ROS

[ROS] Solution to fix "Unable to handle 'index' format version '2', please update rosdistro" problem

Author posted @ 2014年8月12日 07:37 in ROS , 1583 阅读

When I upgrade ROS from Hydro to Indigo on Ubuntu 14.04 Trusty, I followed the installation instructions posted at http://wiki.ros.org/indigo/Installation/Ubuntu. However, after typing in command "rosdep update", I met a problem saying :

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

After trying the solution posted at [1], the problem was still there :-(

Fortunately, the valid solution I found from 古-月[2] is much simpler:

  1.  Download the rosdistro version 0.3.5 from https://pypi.python.org/pypi/rosdistro
  2.  Unzip the file and enter the folder "rosdistro-0.3.5", type in command: 
    sudo python setup.py install
  3.  Re-run command: rosdep update. Done without any error.

References:

[1]:http://answers.ros.org/question/122266/how-can-i-fix-unable-to-handle-index-format-version-2-please-update-rosdistro/

[2]:http://blog.csdn.net/hcx25909/article/details/21395879

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter