arq5x / gemini

a lightweight db framework for exploring genetic variation.
http://gemini.readthedocs.org
MIT License
317 stars 119 forks source link

YAMLLoadWarning #934

Closed oleraj closed 4 years ago

oleraj commented 4 years ago

Hi,

I'm getting a warning when I run a gemini load command. It barks 5 times with this error below. It doesn't seem to affect functionality but is there anything we can do to get rid of the warning?

.../lib/python2.7/site-packages/gemini/config.py:61: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(in_handle)

Thanks,

Andrew

roryk commented 4 years ago

Thanks Andrew! the yaml library considers these bare yaml.load calls unsafe and is deprecating them. I swapped in safe_load which does some checking to make sure we're not running python code in the YAML file, so this error should be fixed.

oleraj commented 4 years ago

Thanks @roryk!