question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mitmproxy is not working on Kali Linux (no attribute 'WSGIAdapter')

See original GitHub issue

Hi guys,

I am on Kali Linux (4.19.0-kali5-amd64 #1 SMP Debian x86_64 GNU/Linux) and I never used mitmproxy before, it was pre-installed by default.

Steps to reproduce the problem:
  1. Running mitmproxy from command line
System information

This is the output of the console :

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

Thanks in advance

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:8

github_iconTop GitHub Comments

8reactions
MarSoftcommented, Sep 13, 2019

For Arch Linux, you can install python-tornado5 from AUR.

8reactions
cserbcommented, Aug 20, 2019

same here on arch linux

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'module' object has no attribute 'WSGIAdapter'
I've verified tornado/wsgi.py defines the WSGIAdapter class but based on my limited understanding of python I don't know what the problem is with...
Read more >
Mitmproxy does not working on Kali Linux - help
Hi,. Did you take a look at http://docs.mitmproxy.org/en/stable/install.html? I'd recommend just using the prebuilt binaries, or installing ...
Read more >
FS#62791 : [mitmproxy] Incompatible with python-tornado 6.x
mitmproxy does not run on up-to-date systems. $ mitmproxy ... AttributeError: module 'tornado.wsgi' has no attribute 'WSGIAdapter' Additional info:
Read more >
mitmproxy | Kali Linux Tools
mitmproxy. mitmproxy is an interactive man-in-the-middle proxy for HTTP and HTTPS. It provides a console interface that allows traffic flows ...
Read more >
How To: Use mitmproxy to read and modify HTTPS traffic
This option did not work for me when I tried it. While it did listen on the given port, no requests were intercepted....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found