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

rosparam YAMLLoadWarning #1686

Closed
mbuijs opened this issue Apr 3, 2019 · 1 comment · Fixed by #1688
Closed

rosparam YAMLLoadWarning #1686

mbuijs opened this issue Apr 3, 2019 · 1 comment · Fixed by #1688

Comments

@mbuijs
Copy link
Contributor

mbuijs commented Apr 3, 2019

Recently I've been seeing the following warning when I run rosparam set from commandline.

$ rosparam set /use_sim_time true
/opt/ros/melodic/lib/python2.7/dist-packages/rosparam/__init__.py:370:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as
the default Loader is unsafe. Please read https://msg.pyyaml.org/load for
full details.
  set_param_raw(param, yaml.load(value), verbose=verbose)

As far as I could find this is related to the new release of pyyaml deprecating the use of yaml.load(..) as is described here: yaml/pyyaml#257

Good to note is that I have PyYAML version 5.1 installed in my user directory through pip, this won't happen when using pyyaml from the Ubuntu repositories, since that's currently still version 3.12.

@dirk-thomas
Copy link
Member

Please consider to provide a pull request to use yaml.safe_load() instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants