Bug 42758 - could not determine a constructor for the tag
Summary: could not determine a constructor for the tag
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rosinstall_generator (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-13 17:11 MSK by Alexander Makeenkov
Modified: 2022-05-13 17:11 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2022-05-13 17:11:54 MSK
Версия пакета:
rosinstall_generator-0.1.22-alt1

Шаги воспроизведения:
# apt-get install rosinstall_generator
$ rosinstall_generator desktop_full --rosdistro hydro --deps

Получаемый результат:
Traceback (most recent call last):
  File "/usr/bin/rosinstall_generator", line 33, in <module>
    sys.exit(load_entry_point('rosinstall-generator==0.1.22', 'console_scripts', 'rosinstall_generator')())
  File "/usr/lib/python3/site-packages/rosinstall_generator/cli.py", line 155, in main
    rosinstall_data = generate_rosinstall(args.rosdistro, args.package_names,
  File "/usr/lib/python3/site-packages/rosinstall_generator/generator.py", line 267, in generate_rosinstall
    wet_package_names, unreleased_repo_names = _get_packages_for_repos(distro_name, repo_names, source=upstream_source_version)
  File "/usr/lib/python3/site-packages/rosinstall_generator/generator.py", line 93, in _get_packages_for_repos
    wet_distro = get_wet_distro(distro_name)
  File "/usr/lib/python3/site-packages/rosinstall_generator/generator.py", line 224, in get_wet_distro
    _wet_distro = _get_wet_distro(distro_name)
  File "/usr/lib/python3/site-packages/rosinstall_generator/distro.py", line 46, in get_distro
    return get_cached_distribution(index, distro_name)
  File "/usr/lib/python3/site-packages/rosdistro/__init__.py", line 137, in get_cached_distribution
    cache = get_distribution_cache(index, dist_name)
  File "/usr/lib/python3/site-packages/rosdistro/__init__.py", line 178, in get_distribution_cache
    data = yaml.safe_load(yaml_str)
  File "/usr/lib64/python3/site-packages/yaml/__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib64/python3/site-packages/yaml/__init__.py", line 81, in load
    return loader.get_single_data()
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 51, in get_single_data
    return self.construct_document(node)
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 60, in construct_document
    for dummy in generator:
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 413, in construct_yaml_map
    value = self.construct_mapping(node)
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 218, in construct_mapping
    return super().construct_mapping(node, deep=deep)
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 143, in construct_mapping
    value = self.construct_object(value_node, deep=deep)
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 100, in construct_object
    data = constructor(self, node)
  File "/usr/lib64/python3/site-packages/yaml/constructor.py", line 427, in construct_undefined
    raise ConstructorError(None, None,
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/str'
  in "<unicode string>", line 5773, column 28:
        </package>\n", ar_sys: !!python/str "<?xml version=\"1. ...