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

Uses deprecated yaml.load() #379

Closed
mbanck opened this issue Oct 21, 2022 · 0 comments · Fixed by #383
Closed

Uses deprecated yaml.load() #379

mbanck opened this issue Oct 21, 2022 · 0 comments · Fixed by #383

Comments

@mbanck
Copy link

mbanck commented Oct 21, 2022

Describe the bug
From Debian Bug 1022080 (https://bugs.debian.org/1022080):

[qcengine] appears to use `yaml.load()` without specifying a `Loader=`
argument, which will become an error in pyyaml version 6. This should
have emitted a warning message since version 5.1 (from 2019).

In most cases this can be fixed by replacing `yaml.load` with
`yaml.safe_load`, unless the ability for yaml to create arbitrary python
objects is desirable.

Found in qcengine/config.py _load_defaults():
https://github.com/MolSSI/QCEngine/blob/master/qcengine/config.py#L193

To Reproduce
I haven't tried to reproduce it, but I assume trying to use yaml will yield the warning.

Expected behavior
No deprecation warnings

@loriab loriab mentioned this issue Nov 15, 2022
2 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