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

ruamel PendingDeprecationWarning #145

Open
bede opened this issue Apr 2, 2021 · 5 comments
Open

ruamel PendingDeprecationWarning #145

bede opened this issue Apr 2, 2021 · 5 comments

Comments

@bede
Copy link

bede commented Apr 2, 2021

Hi! I'm a huge fan of strictyaml, thank you for releasing and maintaining it. Just FYI.

  /Users/bede/conda/envs/konsteltest/lib/python3.9/site-packages/strictyaml/parser.py:280: PendingDeprecationWarning: 
  load will be removed, use
  
    yaml=YAML(typ='unsafe', pure=True)
    yaml.load(...)
  
  instead
    document = ruamelyaml.load(yaml_string, Loader=DynamicStrictYAMLLoader)

Python 3.9.2, abridged pip freeze:

ruamel.yaml==0.17.2
ruamel.yaml.clib==0.2.2
strictyaml==1.4.0

Does not replicate with ruamel.yaml==0.16.12

@crdoconnor
Copy link
Owner

crdoconnor commented Apr 2, 2021 via email

@cowlinator
Copy link

Also

venv\lib\site-packages\strictyaml\representation.py:270: PendingDeprecationWarning:
  dump will be removed, use

    yaml=YAML(typ='unsafe', pure=True)
    yaml.dump(...)

  instead
    dumped = dump(self.as_marked_up(), Dumper=StrictYAMLDumper, allow_unicode=True)

My pip freeze returns

ruamel.yaml==0.17.4
strictyaml==1.4.0
...

@crdoconnor
Copy link
Owner

crdoconnor commented Apr 13, 2021 via email

@crdoconnor
Copy link
Owner

It seems that it's not quite as simple as just putting in the suggested code. This might take a few more days.

@trav3711
Copy link

I'm getting the same error for a python 3.11 migration

/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/strictyaml/parser.py:280: PendingDeprecationWarning: 
load will be removed, use

  yaml=YAML(typ='unsafe', pure=True)
  yaml.load(...)

instead
  document = ruamelyaml.load(yaml_string, Loader=DynamicStrictYAMLLoader)
ERROR

pip freeze:

ruamel.yaml==0.17.4
strictyaml==1.4.2

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

No branches or pull requests

4 participants