No module named ''

I’m trying to follow this example and I’m having issues with the cookie import. I am getting the following error
"Script error: Traceback (most recent call last):
File “…/mitm_scripts/”, line 3, in
from import cookies
ImportError: No module named ‘’"

My imports:
import sys
from mitmproxy import ctx
from import cookies

There is no issue with the import ctx, meaning it finds mitmproxy, however it can’t seem to find the .net module.

Any ideas on what’s going on here? Thanks!

You are most likely using a very outdated version of mitmproxy. Can you update and try again?

Oh duh! I missed the releases at the end of December, sorry about that.

Thanks for the super fast response!

1 Like