Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

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!
Tasklist

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

Details

Description:

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/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/main.py", line 22, in <module>
from ._main import * # noqa
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/_main.py", line 13, in <module>
from mitmproxy.tools import cmdline # noqa
File "/usr/lib/python3.7/site-packages/mitmproxy/tools/cmdline.py", line 3, in <module>
from mitmproxy.addons import core
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/__init__.py", line 11, in <module>
from mitmproxy.addons import onboarding
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/onboarding.py", line 2, in <module>
from mitmproxy.addons.onboardingapp import app
File "/usr/lib/python3.7/site-packages/mitmproxy/addons/onboardingapp/app.py", 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: https://github.com/macports/macports-ports/blob/master/python/py-mitmproxy/files/no-onboarding.patch

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 https://github.com/mitmproxy/mitmproxy/issues/3513
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 https://github.com/mitmproxy/mitmproxy/commit/106948d996d74bf5ff7e3511f35eefea0a90561f? That commit fixes compatibility with wsproto 0.13, not tornaod 6.x.

Loading...