question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ChristianKuehnelcommented, Jul 13, 2019

Now you can update 😃

1reaction
ChristianKuehnelcommented, Jul 13, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

yaml.load() without Loader=... is deprecated #462 - GitHub
When running bioconda-utils build I get a lot of warnings regarding calling yaml.load() without specifying the Loader = ... parameter.
Read more >
Why does PyYAML 5.1 raise YAMLLoadWarning when the ...
Loads the full YAML language. Avoids arbitrary code execution. This is currently (PyYAML 5.1) the default loader called by yaml.load(input) ( ...
Read more >
Warning message: calling yaml.load() without Loader=... is ...
Attention : <stdin>:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.
Read more >
calling yaml.load() without Loader=... is deprecated
FullLoader : Loads the full YAML language. Avoids arbitrary code execution. This is currently (PyYAML 5.1) the default loader called by yaml.load ......
Read more >
Bug #44225: YAMLLoadWarning: calling yaml.load() without ...
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe · Reviewed: · Affected Versions: · ceph-qa-suite: · Crash ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found