-
Notifications
You must be signed in to change notification settings - Fork 121
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
[BUG] Fails to run after install on Raspbian, no module named 'websocket' #345
Comments
Just adding, if i install websocket-client manually
then if i run ./pikaraoke.sh i will get this error instead.
|
Your issue seems very similar to several variants within this Discussion thread, begun (and OP resolved) last December: Regards |
I got this too on my 3b+ after installing onto an SSD, running off the SD card it worked just fine, so I assumed there was some issue with the virtual Python environment when run off the SSD, I'm just leaving it on the SD card for now. |
Seeing a lot of reports of errors of this nature. It's starting to look like the latest chromedriver (or related package) broke stuff. Curious: does it work in headless mode? |
I believe Selenium broke this. This ticket coincides when we started seeing this issue (2 weeks ago) |
I don't have my pi handy, but might be worth trying reverting to the previous version of selenium: Edit: |
I was having the same issue and can confirm that changing from "selenium" to "selenium==4.21.0" fixed the websockets issue for me. |
Thanks for confirmation. I have committed the selenium version designation to the main branch. A git pull and rerun of |
Describe the bug
PLEASE FILL THIS FORM OUT ENTIRELY for a response.
Is this a bug or a question? Questions and tech support inquiries should be directed to the "Discussions" section where your question may already be answered. If it's a bug, provide a clear and concise description of what the bug is here.
To Reproduce
Steps to reproduce the behavior:
pi@Karaoke:~/pikaraoke $ ./pikaraoke.sh Traceback (most recent call last): File "/home/pi/pikaraoke/app.py", line 20, in <module> from selenium import webdriver File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/__init__.py", line 20, in <module> from .chrome.webdriver import WebDriver as Chrome # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 18, in <module> from selenium.webdriver.chromium.webdriver import ChromiumDriver File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 22, in <module> from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 67, in <module> from .websocket_connection import WebSocketConnection File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/websocket_connection.py", line 23, in <module> from websocket import WebSocketApp ModuleNotFoundError: No module named 'websocket'
Expected behavior
Should have installed and ran, but instead errors with websocket
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: