Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62791 - [mitmproxy] Incompatible with community-testing/python-tornado

Attached to Project: Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Saturday, 01 June 2019, 08:02 GMT
Task Type Bug Report
Category Packages: Testing
Status Assigned
Assigned To Felix Yan (felixonmars)
Filipe Laíns (FFY00)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



mitmproxy does not run on up-to-date systems with testing repositories enabled.

$ mitmproxy
Traceback (most recent call last):
File "/usr/bin/mitmproxy", line 11, in <module>
load_entry_point('mitmproxy==4.0.4', 'console_scripts', 'mitmproxy')()
File "/usr/lib/python3.7/site-packages/pkg_resources/", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.7/site-packages/pkg_resources/", line 2843, in load_entry_point
return ep.load()
File "/usr/lib/python3.7/site-packages/pkg_resources/", line 2434, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/", line 22, in <module>
from ._main import * # noqa
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/", line 13, in <module>
from import cmdline # noqa
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/", line 3, in <module>
from mitmproxy.addons import core
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/", line 11, in <module>
from mitmproxy.addons import onboarding
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/", line 2, in <module>
from mitmproxy.addons.onboardingapp import app
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/onboardingapp/", line 13, in <module>
class Adapter(tornado.wsgi.WSGIAdapter):
AttributeError: module 'tornado.wsgi' has no attribute 'WSGIAdapter'

Additional info:
community/mitmproxy 4.0.4-3
community/python-tornado 6.0.2-1

FWIW, at MacPorts, the onboardingapp addon is disabled by default to allow running mitmproxy with tornado 6.x:

Steps to reproduce:
1. Run mitmproxy
This task depends upon

Comment by Chih-Hsuan Yen (yan12125) - Saturday, 01 June 2019, 08:38 GMT
Sorry forgot to say, upstream developer prefers not to disable the onboardingapp addon
Comment by Filipe Laíns (FFY00) - Friday, 14 June 2019, 21:38 GMT
This is fixed in 106948d996d74bf5ff7e3511f35eefea0a90561f. It doesn't cleanly backport so we will need to wait for a new release.
Comment by Chih-Hsuan Yen (yan12125) - Monday, 17 June 2019, 12:06 GMT
Filipe Laíns: I think you were referring That commit fixes compatibility with wsproto 0.13, not tornaod 6.x.