# mitmproxy Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2991, in <module> @_call_aside File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2977, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3004, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 664, in _build_master return cls._build_from_requirements(__requires__) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 677, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 856, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'lxml==3.4.4' distribution was not found and is required by mitmproxy This problem is fixed in mitmproxy version 0.17 for reference see https://trac.macports.org/ticket/51562
+1 In addition, it seems it's missing some deps. I manually edited /usr/local/lib/python2.7/site-packages/mitmproxy-0.15-py2.7.egg-info/requires.txt to try to get it working, and the following deps where not installed at all: py27-watchdog py27-pyperclip py27-netlib is version 0.10, requires.txt says >0.15 Did this ever work?
This port is BROKEN and should be marked as such. Obviously maintainer is not responding.
Add myself to Cc: list to monitor for progress. Maintainer has previously been notified.
Hmm....I'm working on a new PR of mitmproxy 2.0.1. And, yes, right now there are some missing dependencies. I'll also send PRs for that.
Thank you for finally giving a feedback here ;)
I didn't see you were working on this. I have in fact added the new required dependencies to the tree just now and submitted updates for devel/py-ruamel.yaml and devel/py-construct. Once those two ports are up to date, the attached patch should fix this port.
Created attachment 181708 [details] Update to latest version.
A commit references this bug: Author: shaun Date: Fri Apr 28 21:47:58 UTC 2017 New revision: 439695 URL: https://svnweb.freebsd.org/changeset/ports/439695 Log: Update to 2.0.1, bringing the port back from complete brokenness. PR: 213806 Submitted by: shaun Reported by: p5B2E9A8F@t-online.de Approved by: maintainer timeout (2 weeks) Changes: head/www/mitmproxy/Makefile head/www/mitmproxy/distinfo