Date: Thu, 26 May 2022 22:15:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264266] www/mitmproxy: Fails to run: pkg_resources.DistributionNotFound: The 'wsproto<1.1,>=1.0' distribution was not found and is required by mitmproxy Message-ID: <bug-264266-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264266 Bug ID: 264266 Summary: www/mitmproxy: Fails to run: pkg_resources.DistributionNotFound: The 'wsproto<1.1,>=3D1.0' distribution was not found and is required by mitmproxy Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org CC: bofh@freebsd.org, gaod@hychen.org Flags: maintainer-feedback?(gaod@hychen.org) CC: gaod@hychen.org Flags: maintainer-feedback?(gaod@hychen.org) When I try to run mitmproxy I get the following error message: --- Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 568, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 886, in require needed =3D self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (wsproto 1.1.0 (/usr/local/lib/python3.8/site-packages), Requirement.parse('wsproto<1.1,>=3D1.0'), {'mitmproxy'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 33, in <module> sys.exit(load_entry_point('mitmproxy=3D=3D7.0.4', 'console_scripts', 'mitmproxy')()) File "/usr/local/bin/mitmproxy", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load module =3D import_module(match.group('module')) File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 843, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_remo= ved File "/usr/local/lib/python3.8/site-packages/mitmproxy/tools/main.py", li= ne 8, in <module> from mitmproxy import exceptions, master File "/usr/local/lib/python3.8/site-packages/mitmproxy/master.py", line 1= 0, in <module> from mitmproxy import eventsequence File "/usr/local/lib/python3.8/site-packages/mitmproxy/eventsequence.py", line 8, in <module> from mitmproxy.proxy import layers File "/usr/local/lib/python3.8/site-packages/mitmproxy/proxy/layers/__init__.py", line 1, in <module> from . import modes File "/usr/local/lib/python3.8/site-packages/mitmproxy/proxy/layers/modes.py", l= ine 9, in <module> from mitmproxy.proxy.layers import tls File "/usr/local/lib/python3.8/site-packages/mitmproxy/proxy/layers/tls.p= y", line 8, in <module> from mitmproxy.net import tls as net_tls File "/usr/local/lib/python3.8/site-packages/mitmproxy/net/tls.py", line = 18, in <module> from mitmproxy.contrib.kaitaistruct import tls_client_hello File "/usr/local/lib/python3.8/site-packages/mitmproxy/contrib/kaitaistruct/tls_= client_hello.py", line 7, in <module> from pkg_resources import parse_version File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 3243, in <module> def _initialize_master_working_set(): File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 3226, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 3255, in _initialize_master_working_set working_set =3D WorkingSet._build_master() File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 570, in _build_master return cls._build_from_requirements(__requires__) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 583, in _build_from_requirements dists =3D ws.resolve(reqs, Environment()) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", = line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'wsproto<1.1,>=3D1.0' distribution = was not found and is required by mitmproxy --- On my system I have py38-wsproto version 1.1.0 installed. I think the the problem is that wsproto<1.1 is required. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264266-7788>