question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YAMLLoadWarning: calling yaml.load

See original GitHub issue

I see that this issue was recently fixed by @scolby33 with ee62207d9671e848ab264900e7809a1dc0876964

The warning reported is the following.

lib/python3.7/site-packages/flasgger/utils.py:556: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default
Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  swag = yaml.load(full_doc[yaml_sep + 4:])

I’m mainly opening this for others who run into this issue. I’m avoiding the warning by installing from git pip install -U -e git+https://github.com/rochacbruno/flasgger.git#egg=flasgger.

This issue can be closed, or left open until there is a new package published on pypi, not sure what your policy is for this.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mbarkhaucommented, Jul 18, 2019

@metmir yes that is the fix and it’s already in master, it’s just not published to pypi yet.

1reaction
40mincommented, Jun 4, 2019

It will be enough just to downgrade version of PyYAML lib:

pip uninstall PyYAML
pip install PyYAML==3.13
Read more comments on GitHub >

github_iconTop Results From Across the Web

yaml.load() without Loader=... is deprecated #462 - GitHub
When running bioconda-utils build I get a lot of warnings regarding calling yaml.load() without specifying the Loader = ... parameter.
Read more >
Why does PyYAML 5.1 raise YAMLLoadWarning when the ...
Loads the full YAML language. Avoids arbitrary code execution. This is currently (PyYAML 5.1) the default loader called by yaml.load(input) ( ...
Read more >
calling yaml.load() without Loader=... is deprecated
Avoids arbitrary code execution. This is currently (PyYAML 5.1) the default loader called by yaml.load(input) (after issuing the warning).
Read more >
YAMLLoadWarning: calling yaml.load() without Loader=... is ...
YAMLLoadWarning : calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Kode: import cv2 import yaml import numpy as np ......
Read more >
Bug #44225: YAMLLoadWarning: calling yaml.load() without ...
YAMLLoadWarning : calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe · Reviewed: · Affected Versions: · ceph-qa-suite: · Crash ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found