Traceback (most recent call last):


 "/usr/bin/mitmproxy", line 11, in <module>

load_entry_point('mitmproxy==4.0.4', 'console_scripts', 'mitmproxy')()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2843, in load_entry_point

return ep.load()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2434, in load

return self.resolve()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2440, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)


 "/usr/lib/python3/dist-packages/mitmproxy/tools/main.py", line 22, in <module>

from ._main import *
# noqa


 "/usr/lib/python3/dist-packages/mitmproxy/tools/_main.py", line 13, in <module>

from mitmproxy.tools import cmdline
# noqa


 "/usr/lib/python3/dist-packages/mitmproxy/tools/cmdline.py", line 3, in <module>

from mitmproxy.addons import core


 "/usr/lib/python3/dist-packages/mitmproxy/addons/__init__.py", line 11, in <module>

from mitmproxy.addons import onboarding


 "/usr/lib/python3/dist-packages/mitmproxy/addons/onboarding.py", line 2, in <module>

from mitmproxy.addons.onboardingapp import app


 "/usr/lib/python3/dist-packages/mitmproxy/addons/onboardingapp/app.py", line 13, in <module>

class Adapter(tornado.wsgi.WSGIAdapter):
AttributeError: module 'tornado.wsgi' has no attribute 'WSGIAdapter'

Traceback (most recent call last):


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/web.py", line 84, in <module>

from tornado.concurrent import Future, future_set_result_unless_cancelled


 "/usr/local/lib/python3.6/site-packages/tornado/concurrent.py", line 42, in <module>

from concurrent import futures


 "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/concurrent.py", line 59, in <module>

_GC_CYCLE_FINALIZERS = (platform.python_implementation() == 'CPython' and
AttributeError: module 'platform' has no attribute 'python_implementation'
