riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Getting load warnings on version 3.1.4 #698

Open manuchadha1979 opened 5 years ago

manuchadha1979 commented 5 years ago

Hi

I am on Windows10

When I start CCM, I get warnings. I am using ccm version 3.1.4. I think these warnings should be fixed in the version but I am still getting them.

C:...\ccm-3.1.4.tar\dist\ccm-3.1.4\ccmlib\cluster_factory.py:22: 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)

C:...\ccm-3.1.4.tar\dist\ccm-3.1.4\ccmlib\node.py:143: 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)

Why am I getting these warnings and how could these be fixed?

thanks Manu

oz123 commented 5 years ago

@manuchadha1979 you are getting these errors because yaml.load shouldn't be use. See https://github.com/scylladb/scylla-ccm/pull/158

Also note, this is already fixed on the master branch with:

https://github.com/riptano/ccm/commit/275699f79d102b5039b79cc17fa6305dccf18412

So just install the ccm from the git sources.