ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Rosdep update not working

asked 2020-05-13 02:06:06 -0500

manojsakhare gravatar image

updated 2020-05-13 02:36:38 -0500

gvdhoorn gravatar image

when ran rosdep update command got below error

reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
    while parsing a flow sequence
  in "<string>", line 6157, column 13:
      opensuse: [yaml-cp
                ^
expected ',' or ']', but got '<stream end>'
  in "<string>", line 6157, column 21:
      opensuse: [yaml-cp
                        ^
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
    Failed to download target platform data for gbpdistro:
    Invalid GBP-distro/targets format: missing key: 'type'
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"

ERROR: Rosdep experienced an error: Expected file type is 'distribution'
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.19.0

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 144, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 428, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 437, in _no_args_handler
    return command_handlers[command](options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 649, in command_update
    ros_distro=options.ros_distro)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 507, in update_sources_list
    rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
  File "/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py", line 149, in get_gbprepo_as_rosdep_data
    distro_file = get_release_file(gbpdistro)
  File "/usr/lib/python2.7/dist-packages/rosdep2/rosdistrohelper.py", line 76, in get_release_file
    dist_file = rosdistro.get_distribution_file(get_index(), distro)
  File "/usr/lib/python2.7/dist-packages/rosdistro/__init__.py", line 120, in get_distribution_file
    return create_distribution_file(dist_name, data)
  File "/usr/lib/python2.7/dist-packages/rosdistro/distribution_file.py", line 134, in create_distribution_file
    dist_file = DistributionFile(dist_name, d)
  File "/usr/lib/python2.7/dist-packages/rosdistro/distribution_file.py", line 45, in __init__
    assert 'type' in data, "Expected file type is '%s'" % DistributionFile._type
AssertionError: Expected file type is 'distribution'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-05-13 02:45:33 -0500

gvdhoorn gravatar image

updated 2020-05-13 02:46:37 -0500

Trying this locally seems to succeed for me:

rosdep update

And just to make sure:

wget -O /tmp/base.yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
python -c 'import yaml; yaml.load("/tmp/base.yaml")'

The file itself also looks alright.

Github is (in)famous for suffering from transient problems and issues with downloading files from it.

Could you "just try again"?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-05-13 02:06:06 -0500

Seen: 1,104 times

Last updated: May 13 '20