Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml API changed #92

Open
erwanp opened this issue Dec 31, 2024 · 0 comments · May be fixed by #93
Open

yaml API changed #92

erwanp opened this issue Dec 31, 2024 · 0 comments · May be fixed by #93

Comments

@erwanp
Copy link

erwanp commented Dec 31, 2024

Hello, excavating this project, I found a problem with the upstream API to parse yaml file :

 File "C:\Users\erwan\anaconda3\envs\bloc\Lib\site-packages\ctwrap\parser.py", line 261, in from_yaml
    out = yaml.load(yml, Loader=yaml.SafeLoader)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erwan\anaconda3\envs\bloc\Lib\site-packages\ruamel\yaml\main.py", line 1085, in load
    error_deprecation('load', 'load', arg=_error_dep_arg, comment=_error_dep_comment)
  File "C:\Users\erwan\anaconda3\envs\bloc\Lib\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 "C:\Users\erwan\anaconda3\envs\bloc\Lib\site-packages\ctwrap\parser.py", line 261

            out = yaml.load(yml, Loader=yaml.SafeLoader)

Fix coming

@erwanp erwanp linked a pull request Dec 31, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant