YAMLLoadWarning: calling yaml.load
See original GitHub issueI 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:
- Created 4 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@metmir yes that is the fix and it’s already in master, it’s just not published to pypi yet.
It will be enough just to downgrade version of PyYAML lib: