Skip to content

Commit

Permalink
[BUG] Fails to run after install on Raspbian, no module named 'websoc…
Browse files Browse the repository at this point in the history
…ket' #345
  • Loading branch information
vicwomg committed Jul 13, 2024
1 parent 48b4383 commit 9f6e695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ flask-paginate==2021.10.29
jinja2==3.0.3 # Avoid escape issue: https://github.com/sphinx-doc/sphinx/issues/10289
Babel==2.9.1
Flask-Babel==2.0.0
selenium
selenium==4.21.0
ffmpeg-python
yt-dlp

5 comments on commit 9f6e695

@BentWrench
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Vic,

Can I just re-install over an existing install? I'm running 1.2 but not getting the downloads to work. Youtube-dl won't seem to update. I'm guessing I need to update and then also run Chromium. I just want to know the proper method to update. Thanks!

@vicwomg
Copy link
Owner Author

@vicwomg vicwomg commented on 9f6e695 Jul 13, 2024 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BentWrench
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for the info, much appreciated. I'll be trying it out tonight.

@BentWrench
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Vic,

Pi Karaoke on my Pi 5 was playing local videos, but not downloading new videos. running the update of youtube dl wouldn't work. I tried running the commands above, no luck. So I deleted pikaraoke and downloaded from git and reinstalled. Now it won't run at all. Not sure what I am doing wrong here but something is broken. I can't figure out how to read the pikaraoke log, but when I try launching it from a terminal, I get the errors below, then CTRL-c to exit and it shuts down. Apologies is this is the wrong discussion area to have this thread posted.

pi@pikaraoke:~/pikaraoke $ ./pikaraoke.sh
[2024-07-13 17:56:47] INFO: Fetching available songs in: /home/pi/pikaraoke-songs/
[13/Jul/2024:17:56:48] ENGINE Bus STARTING
[2024-07-13 17:56:48] INFO: [13/Jul/2024:17:56:48] ENGINE Bus STARTING
[13/Jul/2024:17:56:48] ENGINE Serving on http://0.0.0.0:5555
[2024-07-13 17:56:48] INFO: [13/Jul/2024:17:56:48] ENGINE Serving on http://0.0.0.0:5555
[13/Jul/2024:17:56:48] ENGINE Bus STARTED
[2024-07-13 17:56:48] INFO: [13/Jul/2024:17:56:48] ENGINE Bus STARTED
Traceback (most recent call last):
File "/home/pi/pikaraoke/app.py", line 899, in
driver = webdriver.Chrome(service=service, options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init
super().init(command_executor=executor, options=options)
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in init
self.start_session(capabilities)
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x555651a8da44
#1 0x5556517baac0
#2 0x5556517e9700
#3 0x5556517e63ac
#4 0x55565182572c
#5 0x5556517f154c
#6 0x5556517f1f38
#7 0x555651a5918c
#8 0x555651a5c7d8
#9 0x555651a48d3c
#10 0x555651a5ce6c
#11 0x555651a314bc
#12 0x555651a7d5b4
#13 0x555651a7d784
#14 0x555651a8cb8c
#15 0x7ffeeb95ee58
#16 0x7ffeeb9c7f9c

^CException ignored in: <module 'threading' from '/usr/lib/python3.11/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1583, in _shutdown
lock.acquire()
KeyboardInterrupt:
/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/cherrypy/process/wspbus.py:253: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
warnings.warn(
[13/Jul/2024:17:57:20] ENGINE Bus STOPPING
[2024-07-13 17:57:20] INFO: [13/Jul/2024:17:57:20] ENGINE Bus STOPPING
[13/Jul/2024:17:57:20] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[2024-07-13 17:57:20] INFO: [13/Jul/2024:17:57:20] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[13/Jul/2024:17:57:20] ENGINE Bus STOPPED
[2024-07-13 17:57:20] INFO: [13/Jul/2024:17:57:20] ENGINE Bus STOPPED
[13/Jul/2024:17:57:20] ENGINE Bus EXITING
[2024-07-13 17:57:20] INFO: [13/Jul/2024:17:57:20] ENGINE Bus EXITING
[13/Jul/2024:17:57:20] ENGINE Bus EXITED
[2024-07-13 17:57:20] INFO: [13/Jul/2024:17:57:20] ENGINE Bus EXITED

@BentWrench
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vic,

Disregard the above error. I was able to get it working. I ran chromium manually one time and then rebooted and now it is working fine, and Youtube-dl is up-to-date (7-9-2024 version).

Thanks!

Please sign in to comment.