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

Getting 'YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated' #36

Closed
geerlingguy opened this issue Jul 28, 2020 · 2 comments

Comments

@geerlingguy
Copy link

I just upgraded from version 0.5.0 to 0.7.0 and now I'm getting the following errors when generating a changelog for the community.kubernetes collection:

$ antsibull-changelog release
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])

It looks like I'm running PyYAML 5.3:

...
Requirement already satisfied, skipping upgrade: PyYAML in /usr/local/lib/python3.7/site-packages (from antsibull-changelog) (5.3)
@felixfontein
Copy link
Collaborator

@geerlingguy you already reported that ;) See #17

@geerlingguy
Copy link
Author

Lol, time is a flat circle. Closing this, will try to search next time ;)

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

2 participants