Dependency problem
Closed this issue · 5 comments
Hello.
There seems to be a dependency issue with cartes and pyopenssl. I noticed that cartes was updated to 0.4 a few days ago however this doesn't seem to be reflected in the Conda package traffic 2.6.4. Conda itself seems to be using pyopenssl 21.0.0 now.
To recreate:
Fresh environment with Docker image jupyter/minimal-notebook:latest
Then:
conda config --set channel_priority strict
conda config --add channels conda-forge
conda create -n traffic -c conda-forge python=3.9 traffic
conda update -n traffic -c conda-forge traffic
Then two errors are thrown when trying to import traffic:
pkg_resources.VersionConflict: (cartes 0.4 (/opt/conda/envs/traffic/lib/python3.9/site-packages), Requirement.parse('cartes<0.4,>=0.3'))
pkg_resources.VersionConflict: (pyOpenSSL 21.0.0 (/opt/conda/envs/traffic/lib/python3.9/site-packages), Requirement.parse('pyOpenSSL<21.0,>=20.0'))
Both are solved by installing cartes 0.3 and pyopenssl 20.0.1
Thanks.
Thank you,
I'm aware of many such dependency issues.
Switching to poetry to manage dependencies and not being as strict with conda definitions created this mess when new versions of dependencies are released indeed.
The only way out of this I can see is probably to do a new release. I'll try in the coming days, maybe next week.
In the meantime, git clone and pip install . should clear most of the mess.
OK thanks.
Just for reference for myself about dependency version numbers:
https://python-poetry.org/docs/dependency-specification/#caret-requirements
The new recipe, together with new release, should be ok.
conda-forge/traffic-feedstock#5
I can confirm it is now working. Thanks.