Closed Tobiaqs closed 3 years ago
Hi @Tobiaqs this looks very similar to #318
It seems that installing pyowm with pip
via Github cloning is failing because pyowm dependencies (including `geojson') are not processed and installed contextually.
My 2 cents (spoiler: I'm not a real expert on Python packaging). I've googled a lot and I found this answer: https://stackoverflow.com/a/58883371 where a guy says that when a you install a package from a wheel dynamic dependencies are not processed and therefore not installed (think of the wheel as a "snapshot" of the filesystem for a successful pyowm installation).
I suppose this is exactly what happens when you run pip with Github cloning:
pip install git+https://github.com/csparpa/pyowm.git@develop
So I'd say one way to fix this is something like this:
git clone ttps://github.com/csparpa/pyowm.git
cd pyowm && git checkou develop
pip install -r requirements.txt # install dependencies
python setup.py install # install develop branch code
Not very nice, but... I've tested out, it seems to work
The workaround will be documented soon
When running
pip install git+https://github.com/csparpa/pyowm.git@develop
(master fails too) in a fresh virtualenv with Python 3.8.5 and pip 20.1.1, I get the following error:When I install pyowm's requirements.txt (from the root directory) first, the error disappears.
It seems like pip is ignoring the requirements.