You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
[Python 3.13] ModuleNotFoundError: No module named 'imghdr' #24
Traceback (most recent call last):
File "/Users/john.doe/.local/bin/mitmproxy", line 8, in<module>sys.exit(mitmproxy())
~~~~~~~~~^^
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/tools/main.py", line 124, in mitmproxy
from mitmproxy.tools import console
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/tools/console/__init__.py", line 1, in<module>
from mitmproxy.tools.console import master
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/tools/console/master.py", line 27, in<module>
from mitmproxy.tools.console import consoleaddons
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/tools/console/consoleaddons.py", line 7, in<module>
from mitmproxy import contentviews
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/contentviews/__init__.py", line 21, in<module>
from . import (
...<17 lines>...
)
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/contentviews/image/__init__.py", line 1, in<module>
from .view import ViewImage
File "/Users/john.doe/.local/pipx/venvs/mitmproxy/lib/python3.13/site-packages/mitmproxy/contentviews/image/view.py", line 1, in<module>
import imghdr
ModuleNotFoundError: No module named 'imghdr'
Expected Result:
mitmproxy should start as usual in interactive mode from terminal and starts capturing the network traffic if proxy is set correctly, or it should display the version as it displays when downgraded python to 3.11.8
Activity