MobSF / httptools

httptools helps you to capture, repeat and live intercept HTTP requests with scripting capabilities. It is built on top of mitmproxy
GNU Lesser General Public License v2.1
72 stars 24 forks source link

Fix `ModuleNotFoundError: No module named 'mitmproxy.tools._main'` #4

Closed Edu4rdSHL closed 3 years ago

Edu4rdSHL commented 3 years ago

Hello,

It's causing python-http-tools to fail because a typo.

ajinabraham commented 3 years ago

Works fine for me. You are probably on the wrong version mitmproxy. It should be 5.3.0

https://github.com/MobSF/httptools/blob/master/setup.py#L46

>>> version.VERSION
'5.3.0'
>>> from mitmproxy.tools._main import run
>>>
Edu4rdSHL commented 3 years ago

Hello, @ajinabraham. Correct, I'm using the latest mitmproxy version, I'm specially packaging it for the BlackArch Linux distro, changing that string makes the library works again still using the latest version of mitmproxy so I will keep the patch for now. Do you have planned a new httptools release that's compatible with the new version of mitmproxy?

ajinabraham commented 3 years ago

I will need some time to test and validate that all the features works with the latest mitmproxy as it's a major version change. If it works fine, I will try updating httptools. Should take maximum two weeks.

Edu4rdSHL commented 3 years ago

Thank you a lot, I'll stay tuned!

ajinabraham commented 3 years ago

https://pypi.org/project/http-tools/2.1.0/ is now available.

Edu4rdSHL commented 3 years ago

Thank you a lot!