Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError - websockets #21

Open
haxjakt opened this issue Mar 17, 2024 · 0 comments
Open

ModuleNotFoundError - websockets #21

haxjakt opened this issue Mar 17, 2024 · 0 comments

Comments

@haxjakt
Copy link

haxjakt commented Mar 17, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant