Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701754 - dev-python/requests-2.20.1-r1 makes app-emulation/docker-compose runtime crash because it should depend on <dev-python/idna-2.8
Summary: dev-python/requests-2.20.1-r1 makes app-emulation/docker-compose runtime cras...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-02 13:31 UTC by Cyril Pascal
Modified: 2019-12-03 08:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril Pascal 2019-12-02 13:31:30 UTC
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.
Comment 1 Cyril Pascal 2019-12-02 16:48:17 UTC
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)
Comment 2 Sebastian Pipping gentoo-dev 2019-12-02 20:35:43 UTC
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!
Comment 3 Cyril Pascal 2019-12-03 08:29:19 UTC
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 👍