Skip to content

ModuleNotFoundError - websockets #21

@haxjakt

Description

@haxjakt

Problem on Windows 11, python version 3.12

Encounter the following error:

[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava - [13:12:32.253] Loading script C:\Users\Horia\AppData\Local\Temp\mitmproxy-python-plugin1517772022857169551.py
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava - [13:12:32.263] error in script C:\Users\Horia\AppData\Local\Temp\mitmproxy-python-plugin1517772022857169551.py
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava - Traceback (most recent call last):
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava -   File "C:\Users\Horia\AppData\Local\Temp\mitmproxy-python-plugin1517772022857169551.py", line 16, in <module>
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava -     import websockets
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava - ModuleNotFoundError: No module named 'websockets'
[Thread-18] INFO io.appium.mitmproxy.MitmproxyJava - [13:12:32.264] HTTP(S) proxy listening at *:8080.

I have seen this issue, and it seems I need to install mitmproxy via pip? I just don't understand how will that work, since pip install mitmproxy will download a python module, and I need the mitmdump.exe path when instatiating MitmproxyJava class.

I have also tried to install mitmproxy using:

  • the windows installer, same error as above
  • pipx, as hinted in here, same error as above
  • pip, but I cannot find the path to the mitmdump executable

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions