[MacPorts] #69810: trying to run py39-mitmproxy
MacPorts
noreply at macports.org
Wed Apr 24 04:46:54 UTC 2024
#69810: trying to run py39-mitmproxy
--------------------+----------------------------
Reporter: boby51 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py39-mitmproxy
--------------------+----------------------------
Hi, I get the following when /opt/local/bin/mitmdump-3.9
/opt/local/bin/mitmproxy-3.9
/opt/local/bin/mitmweb-3.9
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 600, 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 937, 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 798, in resolve
dist = self._resolve_dist(
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 844, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 42.0.5
(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages),
Requirement.parse('cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0'),
{'pyOpenSSL'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/local/bin/mitmweb-3.9", line 33, in <module>
sys.exit(load_entry_point('mitmproxy==7.0.4', 'console_scripts',
'mitmweb')())
File "/opt/local/bin/mitmweb-3.9", line 25, in
importlib_load_entry_point
return next(matches).load()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py",
line 86, in load
module = import_module(match.group('module'))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in
_call_with_frames_removed
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/tools/main.py", line 8, in <module>
from mitmproxy import exceptions, master
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/master.py", line 10, in <module>
from mitmproxy import eventsequence
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/eventsequence.py", line 8, in <module>
from mitmproxy.proxy import layers
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/proxy/layers/__init__.py", line 1, in <module>
from . import modes
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/proxy/layers/modes.py", line 9, in <module>
from mitmproxy.proxy.layers import tls
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/proxy/layers/tls.py", line 8, in <module>
from mitmproxy.net import tls as net_tls
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/net/tls.py", line 18, in <module>
from mitmproxy.contrib.kaitaistruct import tls_client_hello
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/mitmproxy/contrib/kaitaistruct/tls_client_hello.py", line
7, in <module>
from pkg_resources import parse_version
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3292, in <module>
def _initialize_master_working_set():
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3266, in _call_aside
f(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3304, in
_initialize_master_working_set
working_set = WorkingSet._build_master()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 602, in _build_master
return cls._build_from_requirements(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 615, in
_build_from_requirements
dists = ws.resolve(reqs, Environment())
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 798, in resolve
dist = self._resolve_dist(
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 844, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 42.0.5
(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages),
Requirement.parse('cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0'),
{'pyOpenSSL'})
Please advise... Thanks
--
Ticket URL: <https://trac.macports.org/ticket/69810>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list