Opened 5 years ago

Closed 5 years ago

#57747 closed defect (fixed)

py-requests 2.20.1: Requirement.parse issue with py-idna

Reported by: Schamschula (Marius Schamschula) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: stromnov (Andrey Stromnov)
Port: certbot py-requests

Description (last modified by Schamschula (Marius Schamschula))

Apparently, there is an upstream issue with the certbot 0.29.1 Python stack due to py-requests 2.20.1 requiring py-idna < 2.8:

marius$ certbot
Traceback (most recent call last):
  File "/opt/local/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3126, in <module>
    @_call_aside
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3110, in _call_aside
    f(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 789, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (idna 2.8 (/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages), Requirement.parse('idna<2.8,>=2.5'), set(['requests']))

Also see: https://community.letsencrypt.org/t/unable-to-issue-certificate/79411/4

Change History (3)

comment:1 Changed 5 years ago by Schamschula (Marius Schamschula)

The current workaround is to reactivate pyXX-idna @2.7_1.

Last edited 5 years ago by Schamschula (Marius Schamschula) (previous) (diff)

comment:2 Changed 5 years ago by Schamschula (Marius Schamschula)

Cc: stromnov added
Description: modified (diff)
Port: py-requests added
Summary: certbot 0.29.1: Requirement.parse issuepy-requests 2.20.1: Requirement.parse issue with py-idna

comment:3 Changed 5 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In 3b0397be807da210c0fb2101e2b9f63f8a14d4e5/macports-ports (master):

py-requests: update to 2.21.0

Closes: #57747

Note: See TracTickets for help on using tickets.