ros-infrastructure / rosdistro

Tools to work with catkinized rosdistro files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AssertionError when running rosdistro_reformat on groovy/doc.yaml

jkammerl opened this issue · comments

As suggested in ros/rosdistro#886 , I am trying to reformat the groovy doc yaml file with rosdistro_reformat:

This is the assertion error I get:

kammerl@laptop:/tmp/rosdistro$ rosdistro_reformat groovy/doc.yaml
Traceback (most recent call last):
File "/usr/bin/rosdistro_reformat", line 59, in
success = reformat_files(index)
File "/usr/lib/pymodules/python2.7/rosdistro/verify.py", line 58, in reformat_files
return verify_files(index_url, _reformat_files)
File "/usr/lib/pymodules/python2.7/rosdistro/verify.py", line 67, in verify_files
index = get_index(index_url)
File "/usr/lib/pymodules/python2.7/rosdistro/init.py", line 105, in get_index
return Index(data, base_url)
File "/usr/lib/pymodules/python2.7/rosdistro/index.py", line 45, in init
assert data['type'] == 'index'
AssertionError

rosdistro version:
ii python-rosdistro 0.2.8-1 A tool to work with rosdistro files

Thanks!

As rosdistro_reformat --help indicates you have to pass the index.yaml file as an argument - not the groovy/doc.yaml file. That is why the assertion complains about the fact that the file type is not "index".

I have added an additional description to the assertion to point that out more clearly 6554558.