Python Forum
Question about YAMLLoadWarning (PyYAML error / deprecated)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about YAMLLoadWarning (PyYAML error / deprecated)
#1
Hello everyone..

I have to be honest with you: I am totally new to Python and programming in general.

The other day my teacher at university told us to install Python and get started by installing Anaconda Navigator. Afterwards I wanted to verify my installation by starting the navigator from terminal on my Mac. Everything works fine but I am given the following error in the terminal while loading Anaconda Navigator:

//anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/conda_api.py:1364: 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)

I checked the link provided and I understand it is some kind of safety issue from 2006 (an exploit). But should I do something about it? Am I using this unsafe loader? I get the feeling that this error isn't relevant anymore in this version. I am a bit worried to be honest! I can choose to ignore it but I don't want to if I am not doing the right thing Tongue

My Python version is: 3.7.3. I also checked my yaml version by entering the conda list command. It says 0.1.7 but can this really be true? I thought the latest one was 1.2??

Thanks very much in advance and I apologize for my beginner question! I appreciate any help Big Grin
Reply


Messages In This Thread
Question about YAMLLoadWarning (PyYAML error / deprecated) - by UniKlixX - Sep-08-2019, 02:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PyYAML read list of int zisco 2 371 Apr-02-2024, 12:36 PM
Last Post: zisco
  FutureWarning: pandas.util.testing is deprecated buunaanaa 3 5,144 May-17-2020, 07:43 AM
Last Post: snippsat
  Python 3.7.4 (FTPLib Deprecated). Now What? bmccollum 1 2,645 May-16-2020, 03:17 PM
Last Post: Larz60+
  PyYAML millpond 2 2,973 Aug-01-2019, 03:19 AM
Last Post: millpond

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020