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

Consider using yaml.load instead of yaml.safe_load #8

Open
raymondlanger opened this issue May 25, 2024 · 0 comments
Open

Consider using yaml.load instead of yaml.safe_load #8

raymondlanger opened this issue May 25, 2024 · 0 comments

Comments

@raymondlanger
Copy link

When I run demo.py the results is:

./demo.py
Start reading data file...
Traceback (most recent call last):
  File "./demo.py", line 473, in <module>
    settings=yaml.load(open("settings.yml","r"))
TypeError: load() missing 1 required positional argument: 'Loader'

The same error occurs when running test_mol.py. I have installed PyYAML version 6.0.1, and using yaml.safe_load() instead of yaml.load() fixes the error. The issue is related to issue #5.

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

1 participant