Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated #34

Closed
farstreet opened this issue May 17, 2019 · 5 comments
Closed

Comments

@farstreet
Copy link

I get the following warning on execution of the plantgateway:

/usr/local/lib/python3.5/dist-packages/plantgw/plantgw.py:33: 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(config_file)

The plantgateway seems 100% functional however. With debug mode on I am seeing what's below this in the logfiles. It doesn't even mention the above notification. Seems due to an update of python or something alike, I've seen similar error messages mentioned for many other projects (not related to Plant Gateway or Home Assistant) after a Google search. But I don't have the right skills to solve it unfortunately.

Fri, 17 May 2019 22:59:12 INFO     PlantGateway version 0.5.1
Fri, 17 May 2019 22:59:12 INFO     loaded config file from /home/pi/.plantgw.yaml
Fri, 17 May 2019 22:59:12 INFO     Getting data from sensor plant1
Fri, 17 May 2019 22:59:12 INFO     MQTT connection returned result: Connection Accepted.
Fri, 17 May 2019 22:59:16 DEBUG    Received result for handle 56: 64 10 32 2E 36 2E 32
Fri, 17 May 2019 22:59:16 DEBUG    Filling cache with new sensor data.
Fri, 17 May 2019 22:59:17 DEBUG    Received result for handle 53: CC 00 00 E0 01 00 00 0E 16 01 00 00 00 00 00 00
Fri, 17 May 2019 22:59:17 DEBUG    Using cache (0:00:00.003436 < 0:10:00)
Fri, 17 May 2019 22:59:17 DEBUG    Using cache (0:00:00.004423 < 0:10:00)
Fri, 17 May 2019 22:59:17 DEBUG    Using cache (0:00:00.005148 < 0:10:00)
Fri, 17 May 2019 22:59:17 DEBUG    timestamp: 2019-05-17T22:59:17.013393
Fri, 17 May 2019 22:59:17 DEBUG    moisture: 14
Fri, 17 May 2019 22:59:17 DEBUG    temperature: 20.4
Fri, 17 May 2019 22:59:17 DEBUG    conductivity: 278
Fri, 17 May 2019 22:59:17 DEBUG    battery: 100
Fri, 17 May 2019 22:59:17 DEBUG    brightness: 480
Fri, 17 May 2019 22:59:17 INFO     sent data to topic hassio/sensor/miflora/plant1/
Fri, 17 May 2019 22:59:17 INFO     Getting data from sensor plant2
Fri, 17 May 2019 22:59:30 DEBUG    Received result for handle 56: 64 15 32 2E 37 2E 30
Fri, 17 May 2019 22:59:30 DEBUG    Filling cache with new sensor data.
Fri, 17 May 2019 22:59:30 DEBUG    Received result for handle 53: 93 00 00 8E 00 00 00 06 07 00 02 3C 00 FB 34 9B
Fri, 17 May 2019 22:59:30 DEBUG    Using cache (0:00:00.003262 < 0:10:00)
Fri, 17 May 2019 22:59:30 DEBUG    Using cache (0:00:00.004256 < 0:10:00)
Fri, 17 May 2019 22:59:30 DEBUG    Using cache (0:00:00.004983 < 0:10:00)
Fri, 17 May 2019 22:59:30 DEBUG    timestamp: 2019-05-17T22:59:30.477116
Fri, 17 May 2019 22:59:30 DEBUG    moisture: 6
Fri, 17 May 2019 22:59:30 DEBUG    temperature: 14.7
Fri, 17 May 2019 22:59:30 DEBUG    conductivity: 7
Fri, 17 May 2019 22:59:30 DEBUG    battery: 100
Fri, 17 May 2019 22:59:30 DEBUG    brightness: 142
Fri, 17 May 2019 22:59:30 INFO     sent data to topic hassio/sensor/miflora/plant2/
Fri, 17 May 2019 22:59:30 INFO     Disconnected MQTT connection
@mid1965
Copy link

mid1965 commented Jun 5, 2019

Seeing the same issue:

 /usr/local/lib/python3.5/dist-packages/plantgw/plantgw.py:33: 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(config_file)

@ChristianKuehnel
Copy link
Owner

fixed

@h4nc
Copy link

h4nc commented Jul 13, 2019

so we just need to run the following command right?

sudo pip3 install --upgrade plantgateway

@ChristianKuehnel
Copy link
Owner

In principle yes, but I need to create a new release first.

@ChristianKuehnel
Copy link
Owner

Now you can update :)

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

No branches or pull requests

4 participants