i downloaded mitmproxy from: https://github.com/cortesi/mitmproxy and installed mitmproxy with the following command:
sudo python setup.py install
If I try to run mitmproxy with:
./mitmproxy -p 8899
I get the following errors:
Traceback (most recent call last): File "./mitmproxy", line 19, in <module> from libmproxy import proxy, console, cmdline File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/proxy.py", line 24, in <module> import utils, flow, certutils File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/certutils.py", line 2, in <module> from pyasn1.type import univ, constraint, char, namedtype, tag ImportError: No module named pyasn1.type
How can I fix the errors?
thanks
Update:
ok i fixed it on
installation of the current version
by installing urwid, downloading from the current version and copy the urwid folder (located in the downloaded urwid-XXX folder) to the mitmproxy folder
install pyasn1 and pyopenssl with:
pip install pyasn1 or (sudo) easy_install pyasn1
pip install pyopenssl or (sudo) easy_install pyopenssl
Run the mitmproxy installation with: sudo python setup.py install
- Finally, run mitmproxy with:
mitmproxy -p 8888
CarlJ
source share