Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Convert.py using old ruamel.yaml api #383

Closed
bamarco opened this issue Nov 19, 2023 · 0 comments · Fixed by #384
Closed

Convert.py using old ruamel.yaml api #383

bamarco opened this issue Nov 19, 2023 · 0 comments · Fixed by #384

Comments

@bamarco
Copy link
Contributor

bamarco commented Nov 19, 2023

Traceback (most recent call last):
  File "/home/monkey/micromamba/envs/boa-dev/bin/boa", line 33, in <module>
    sys.exit(load_entry_point('boa', 'console_scripts', 'boa')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/monkey/proj/lib/boa/boa/cli/boa.py", line 223, in main
    convert.main(args.target)
  File "/home/monkey/proj/lib/boa/boa/cli/convert.py", line 132, in main
    ruamel.yaml.load("".join(rest_lines), ruamel.yaml.RoundTripLoader)
  File "/home/monkey/micromamba/envs/boa-dev/lib/python3.11/site-packages/ruamel/yaml/main.py", line 1085, in load
    error_deprecation('load', 'load', arg=_error_dep_arg, comment=_error_dep_comment)
  File "/home/monkey/micromamba/envs/boa-dev/lib/python3.11/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"load()" has been removed, use

  yaml = YAML(typ='rt')
  yaml.load(...)

and register any classes that you use, or check the tag attribute on the loaded data,
instead of file "/home/monkey/proj/lib/boa/boa/cli/convert.py", line 132

        ruamel.yaml.load("".join(rest_lines), ruamel.yaml.RoundTripLoader)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant