pcdshub / Bug-Reports-and-Requests

Issue Tracking for PCDS Software
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Hide or Resolve Yaml Deprecation Warnings #36

Closed ZLLentz closed 4 years ago

ZLLentz commented 4 years ago

Bug Report

yaml deprecation warning for dask and distributed in every python session with current pcds-3.3.4

Expected Behavior

No warnings!

Context

Annoyingly, these are actually fixed in the upstream libraries.

klauer commented 4 years ago

This is fixed in 3.3.5 - we were pinned to very old dask/distributed leading to these warnings:

$ /reg/g/pcds/pyps/conda/py36/envs/pcds-3.3.4/bin/python -c 'import dask'
/reg/g/pcds/pyps/conda/py36/envs/pcds-3.3.4/lib/python3.6/site-packages/dask/config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  data = yaml.load(f.read()) or {}
$ /reg/g/pcds/pyps/conda/py36/envs/pcds-3.3.5/bin/python -c 'import dask'
$
ZLLentz commented 4 years ago

https://github.com/pcdshub/pcds-envs/issues/143

I'll add the info about 3.3.5 to the linked card

ZLLentz commented 4 years ago

Ah I misread this, disregard comment.

ZLLentz commented 4 years ago

If this is fixed in latest we can close this and the other card

ZLLentz commented 4 years ago

Confirmed that opening hutch-python in latest does not raise these messages