MolSSI / QCEngine

Quantum chemistry program executor and IO standardizer (QCSchema).
https://molssi.github.io/QCEngine/
BSD 3-Clause "New" or "Revised" License
163 stars 78 forks source link

Uses deprecated yaml.load() #379

Closed mbanck closed 1 year ago

mbanck commented 1 year ago

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