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

pip install ccm gives errror: "ImportError: No module named pathlib" #745

Open pluraltouch opened 2 years ago

pluraltouch commented 2 years ago

Hi,

I have python 2.7.18 on RHEL 7.9, pip version 8.1.2, I've already installed pathlib2 via pip install pathlib2 with success. However pip install ccm gives the following error:

Any help appreciated

Collecting ccm Using cached https://files.pythonhosted.org/packages/f1/12/091e82033d53b3802e1ead6b16045c5ecfb03374f8586a4ae4673a914c1a/ccm-3.1.5.tar.gz Collecting pyYaml (from ccm) Using cached https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-I9s1ko/pyYaml/setup.py", line 67, in import sys, os, os.path, pathlib, platform, shutil, tempfile, warnings ImportError: No module named pathlib

pluraltouch commented 2 years ago

Sorry this was early... Solved by: python -m pip install --upgrade "pip < 21.0"

tiagomlalves commented 2 years ago

@pluraltouch do you think it would be valuable to add that information to https://github.com/riptano/ccm/blob/master/README.md ?

pluraltouch commented 2 years ago

Many thx for paying attention. I think pip version could qualify as a requirement, however I am not sure what would be the minimum expected pip version.

tiagomlalves commented 2 years ago

Use the latest version known to work (i.e. the one you used - that already helps)