-
Notifications
You must be signed in to change notification settings - Fork 134
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
yaml.load() without Loader=... is deprecated #462
Comments
I get the YAMLLoadWarning warnings too, they're unrelated. What version of bioconda-utils are you using and what's the exact command you're using? |
I'm running bioconda-utils version 0.15.3 and i'm running the following command:
I have tried to run the above command on other packages as well and on a package which is not in bioconda-recipes, but I have copied into |
Please upgrade to 0.15.10. |
Thank you that solved my problem, seems like conda wouldn't automatically give me the latest version, it helped when i specified the exact version I wanted and got 0.15.10. |
Still - should change
to
in the placges where |
I took al look at the code and tried to change all the occurrences of |
Please do! |
The use of yaml.load(input) is depricated, because of an security exploite see: https://msg.pyyaml.org/load All use of 'yaml.load(input) has been changed to 'yaml.safe_load(input)', all tests seems to pass. Fixes bioconda#462
The use of yaml.load(input) is deprecated, because of an security exploit see: https://msg.pyyaml.org/load All use of 'yaml.load(input) has been changed to 'yaml.safe_load(input)', all tests seems to pass. Fixes #462
Thanks @Hogfeldt! |
Recently I'm trying to learn how to use GAZEBO platform. I'm following tutorials etc. One of those consists in controlling a sensor through ROS, but I got the following warning: /opt/ros/melodic/lib/python2.7/dist-packages/rostopic/init.py:1782: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. How can I fix it? |
Simplest answer (evidently the "unsafe" way to load an yaml from the internet over a plaintext protocol (at all) let alone without sanitizing it): I was almost compelled to read the FULL documentation for this deserialmarshalizer parser smasher splitter loader but the message at least for me hit close enough to home.
|
Fixed `YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. return yaml.load(open(CONFIG_FILE)) ` warning message. Changed `yaml.load() => yaml.safe_load` . Ref: bioconda/bioconda-utils#462 (comment)
When running
bioconda-utils build
I get a lot of warnings regarding calling yaml.load() without specifying theLoader = ...
parameter. Here is an example of the warning:The link (https://msg.pyyaml.org/load) explains how the team behind PyYAML has decided to deal with an exploit allowing arbitrary python functions to be called via
yaml.load()
.I'm not sure if my next problem is related to the above mentioned warnings, but when i get to
16:10:01 BIOCONDA INFO Determining expected packages
, an error occur and the program stops running. Below is the error message:When looking around for a solution to the above problem, I stumbled upon this conda-build issue (https://github.com/conda/conda-build/issues/3256) which looks similar to my problem, but i don't have
hg_
anywhere in my recipe.My setup is a conda environment with python3.6 and bioconda-utils installed.
Has anyone seen this problem before? or can point me in a direction for a solution?
The text was updated successfully, but these errors were encountered: