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

Missing module "websockets" #45

Open
perqa opened this issue Jun 11, 2019 · 3 comments
Open

Missing module "websockets" #45

perqa opened this issue Jun 11, 2019 · 3 comments

Comments

@perqa
Copy link

perqa commented Jun 11, 2019

After having followed the installation instructions and created a simple config file, trying to run
bleak run --config BLeak-config.js --out build/
results in the following error message:
in script /Users/xxxx/.nvm/versions/node/v10.15.3/lib/node_modules/bleak-detector/node_modules/mitmproxy/scripts/proxy.py: No module named 'websockets'

Not sure what to do about this...?

  • bleak --version 1.2.2
  • Node v10.15.3
  • pip3 --version pip 19.0.3
  • Mitmproxy: 4.0.1
  • Python: 3.7.3
  • OpenSSL: OpenSSL 1.1.0h 27 Mar 2018
  • Platform: Darwin-16.7.0-x86_64-i386-64bit
@perqa perqa changed the title Missing module websockets Missing module "websockets" Jun 11, 2019
@perqa
Copy link
Author

perqa commented Jun 12, 2019

Seems like the postinstall script failed to run. I tried
cd .nvm/versions/node/v10.15.3/lib/node_modules/bleak-detector/node_modules/mitmproxy/
scripts/install_python_deps.py
which resulted in
['4', '0', '1'] Collecting websockets==6.0.0 (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/da/0b/c8fce17000873c1927ba4855ad9f5b558bfcded1dace638e8911ce83d6d0/websockets-6.0-cp37-cp37m-macosx_10_6_intel.whl (81kB) 100% |████████████████████████████████| 81kB 7.0MB/s Installing collected packages: websockets Successfully installed websockets-6.0

@deaneturner
Copy link

After experiencing similar difficulties, I found that the mitmproxy version 4.0.1 was critical as well as running the install with a python3 switch.

Start with a clean install:
pip3 install mitmproxy==4.0.1
npm install -g bleak-detector --python=python3

@joncarr
Copy link

joncarr commented Mar 21, 2023

have tried (pip|pip3) install websockets?

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

3 participants