Recent dev-python/idna upgrade caused docker-compose to fail at runtime. Got this message: pkg_resources.DistributionNotFound: The 'idna<2.8,>=2.5' distribution was not found and is required by requests Whole stack: Traceback (most recent call last): File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 574, in _build_master ws.require(__requires__) File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 783, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (paramiko 2.0.8 (/home/paxal/.local/lib64/python3.6/site-packages), Requirement.parse('paramiko>=2.4.2'), {'docker'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/docker-compose", line 6, in <module> from pkg_resources import load_entry_point File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3086, in <module> @_call_aside File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside f(*args, **kwargs) File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3099, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 576, in _build_master return cls._build_from_requirements(__requires__) File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/home/paxal/.local/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'idna<2.8,>=2.5' distribution was not found and is required by requests Reproducible: Always As expected, emerge '<dev-python/idna-2.8' -av1 made docker-compose work again.
Sounds like it's dev-python/requests that depends on idna<2.8 gentoo /usr/lib64/python3.6 # rg idna'.*'2\.8 site-packages/requests-2.20.1-py3.6.egg-info/requires.txt 2:idna<2.8,>=2.5 gentoo /usr/lib64/python3.6 # equery belongs $PWD/site-packages/requests * Searching for /usr/lib64/python3.6/site-packages/requests ... dev-python/requests-2.20.1-r1 (/usr/lib64/python3.6/site-packages/requests)
Hi! There is only two versions of requests left in the Gentoo main tree as of now: - 2.21.0-r1 - 2.22.0 Both enforce idna>=2.5,<2.9 in setup.py and in the ebuild. So once you update to a supported version of dev-python/requests this bugs should be fixed. Please re-open if that assumption turns out wrong. Thank you!
Thanks! Had a lot of trouble with dev-python/requests some time ago, so I had next versions masked manually. Unmask them && emerge fixed this. Sorry for the noise, you're the best 👍