Ask Your Question

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

ERROR: unable to process source []:
    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
ERROR: unable to process source []:
    Failed to download target platform data for gbpdistro:
    Invalid GBP-distro/targets format: missing key: 'type'
Query rosdistro index
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] :

rosdep version: 0.19.0

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 144, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 428, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 437, in _no_args_handler
    return command_handlers[command](options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 649, in command_update
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 507, in update_sources_list
    rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 149, in get_gbprepo_as_rosdep_data
    distro_file = get_release_file(gbpdistro)
  File "/usr/lib/python2.7/dist-packages/rosdep2/", line 76, in get_release_file
    dist_file = rosdistro.get_distribution_file(get_index(), distro)
  File "/usr/lib/python2.7/dist-packages/rosdistro/", line 120, in get_distribution_file
    return create_distribution_file(dist_name, data)
  File "/usr/lib/python2.7/dist-packages/rosdistro/", line 134, in create_distribution_file
    dist_file = DistributionFile(dist_name, d)
  File "/usr/lib/python2.7/dist-packages/rosdistro/", 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

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
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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 666 times

Last updated: May 13 '20