Opened 3 years ago

Closed 17 months ago

#63487 closed defect (fixed)

py39-mitmproxy and py38-mitmproxy won't run after install

Reported by: CodingMarkus Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-mitmproxy

Description

py39-mitmproxy and py38-mitmproxy both don't run after installation because they both depend on pyOpenSSL >= 20.0 but the version that MacPorts installs is pyOpenSSL 19.1.0.

I can equally reproduce that on a M1 and on a Intel Mac.

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyOpenSSL 19.1.0 (/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages), Requirement.parse('pyOpenSSL>=20.0'), {'mitmproxy'})

Change History (3)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to petrrr
Port: py-mitmproxy added
Status: newassigned

comment:2 Changed 3 years ago by reneeotten (Renee Otten)

there was a PR doing (some) of the needed update, but was never finished to properly deal with the older Python subports. It might be a good starting point for you though and it would be great if you could finish up that PR.

comment:3 Changed 17 months ago by petrrr

Resolution: fixed
Status: assignedclosed

At this point py-openssl is now at version @22.1.0, so the described problem does not persist.

Note: See TracTickets for help on using tickets.