-
Notifications
You must be signed in to change notification settings - Fork 71
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.load issues #1152
Comments
The new PyYaml does this. Here was the snippet I came up with to suppress that safely: try:
yaml_load = partial(yaml.load, Loader=yaml.FullLoader)
except AttributeError:
yaml_load= yaml.load since |
Can you clarify if you mean that the new pyyaml (1) emits this warning, or (2) automatically calls a safe loader? |
PyYaml emits the warning in the most recent version (5.1), I don't think its functionally doing anything different. The site it links to has some shortcut methods to chose the loader you want, but I don't know if all of those methods are in the older versions, which is why I use the The site also says by default it uses the |
pyyaml 6.0 (released 27 days ago) now raises an error upon loading without a Loader. You may need to start pinning dependencies in releases or update the code. |
I recall going through the code and replacing all the |
The loader in Lines 298 to 301 in aef24d9
I noticed it because openff-evaluator uses it :-) |
See: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
The text was updated successfully, but these errors were encountered: