[MacPorts] #50991: mitmproxy-2.7 is not working, due to netlib version mismatch
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch -------------------------------------+-------------------------------- Reporter: th-macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: mitmproxy-2.7 py-netlib | Port: mitmproxy-2.7 -------------------------------------+-------------------------------- After doing a port upgrade, mitmproxy-2.7 now complains: $ mitmproxy-2.7 Traceback (most recent call last): File "/opt/local/bin/mitmproxy-2.7", line 5, 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 3138, in <module> @_call_aside File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 3124, 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 3151, 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 663, 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 676, 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 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netlib<0.14,>=0.13' distribution was not found and is required by mitmproxy $ sudo port installed|grep mitm py-mitmproxy @0.13_0 (active) py27-mitmproxy @0.13_0 (active) $ sudo port installed|grep netlib py-netlib @0.13.1_0 py-netlib @0.16_0 (active) py27-netlib @0.13.1_0 py27-netlib @0.16_0 (active) -- Ticket URL: <https://trac.macports.org/ticket/50991> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+------------------------------------- Reporter: th-macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: mitmproxy-2.7 py-netlib Port: mitmproxy-2.7 | ----------------------------+------------------------------------- Comment (by th-macports@…): Of course, activating the old netlib port will solve this for now. $ sudo port activate py27-netlib@0.13.1_0 ---> Computing dependencies for py27-netlib ---> Deactivating py27-netlib @0.16_0 ---> Cleaning py27-netlib ---> Activating py27-netlib @0.13.1_0 ---> Cleaning py27-netlib $ mitmproxy-2.7 -v |head -1 usage: mitmproxy-2.7 [options] -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+------------------------ Reporter: th-macports@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-mitmproxy | ----------------------------+------------------------ Changes (by mf2k@…): * keywords: mitmproxy-2.7 py-netlib => * owner: macports-tickets@… => macports@… * port: mitmproxy-2.7 => py-mitmproxy * cc: petr@… (added) Comment: In the future, please use WikiFormatting, fill in the Port field with the actual name of the port and Cc the port maintainers ({{{port info --maintainers py-mitmproxy}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+------------------------ Reporter: th-macports@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-mitmproxy | ----------------------------+------------------------ Description changed by petr@…: Old description:
After doing a port upgrade, mitmproxy-2.7 now complains:
$ mitmproxy-2.7 Traceback (most recent call last): File "/opt/local/bin/mitmproxy-2.7", line 5, 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 3138, in <module> @_call_aside File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 3124, 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 3151, 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 663, 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 676, 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 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netlib<0.14,>=0.13' distribution was not found and is required by mitmproxy
$ sudo port installed|grep mitm py-mitmproxy @0.13_0 (active) py27-mitmproxy @0.13_0 (active) $ sudo port installed|grep netlib py-netlib @0.13.1_0 py-netlib @0.16_0 (active) py27-netlib @0.13.1_0 py27-netlib @0.16_0 (active)
New description: After doing a port upgrade, mitmproxy-2.7 now complains: {{{ $ mitmproxy-2.7 Traceback (most recent call last): File "/opt/local/bin/mitmproxy-2.7", line 5, 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 3138, in <module> @_call_aside File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/pkg_resources/__init__.py", line 3124, 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 3151, 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 663, 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 676, 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 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netlib<0.14,>=0.13' distribution was not found and is required by mitmproxy $ sudo port installed|grep mitm py-mitmproxy @0.13_0 (active) py27-mitmproxy @0.13_0 (active) $ sudo port installed|grep netlib py-netlib @0.13.1_0 py-netlib @0.16_0 (active) py27-netlib @0.13.1_0 py27-netlib @0.16_0 (active) }}} -- -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+------------------------ Reporter: th-macports@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-mitmproxy | ----------------------------+------------------------ Comment (by petr@…): py-netlib was updated in r146178, and probably updating py-mitmproxy as well should solve this issue. #50611 is requesting the update. -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+------------------------ Reporter: th-macports@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-mitmproxy | ----------------------------+------------------------ Comment (by petr@…): `py-mitmproxy` pins the version to exactly the same minor version as py- netlib (see https://github.com/mitmproxy/mitmproxy/blob/v0.15/setup.py#L17), so we would need to update to 0.16. Ticket #50611, provides only an update to 0.15, which will not solve this problem. At the same time the `tar.gz` tarball for version 0.16 is not published on PyPI, which is currently used by this port. So either, we 1. use the tarball from GitHub, 2. try to use the wheel file on PyPI, 3. wait until netlib and mitmproxy merge (expected to happen for version
0.16)
I filed this [https://github.com/mitmproxy/mitmproxy/issues/1064 issue] understand better, why the `tar.gz` file is no longer available on PyPI and what to expect in future. -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+-------------------- Reporter: th-macports@… | Owner: petr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: py-mitmproxy | ----------------------------+-------------------- Changes (by petr@…): * owner: macports@… => petr@… Comment: r147514 updates `mitmproxy` to 0.16 and should fix this issue. -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50991: mitmproxy-2.7 is not working, due to netlib version mismatch ----------------------------+-------------------- Reporter: th-macports@… | Owner: petr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: py-mitmproxy | ----------------------------+-------------------- Changes (by petr@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/50991#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts