PiKaraoke won't launch on Pi 3 running Bullseye - Problem with chrome/chromedriver/selenium? #298
Replies: 12 comments 14 replies
-
Got pretty much the same error after doing a fresh install on a Pi4 and running ./pikaraoke.sh
|
Beta Was this translation helpful? Give feedback.
-
Did you run ./setup.sh first? That is a required step. What was the output
of that? Also make sure you’re NOT running these as sudo
There’s something unusual about this log output. “uebdriver.py” should be
“webdriver.py” “chronium” should be “chromium”. Did you use some kind of
image to text OCR to grab this text?
…On Wed, Dec 27, 2023 at 2:04 PM buckmasterj ***@***.***> wrote:
Got pretty much the same error after doing a fresh install on a Pi4 and
running ./pikaraoke.sh
Creating download path: /home/pi/pikaraoke-songs/ [2023-12-27 18:59:221
INFO: Fetching available songs in: /home/pi/pikaraoke-songs/
[27/Dec/2023:18:59:231 ENGINE Bus STARTING [2023-12-27 18:59:23) INFO:
[27/Dec/2023:18:59:231 ENGINE Bus STARTING [27/Dec/2023:18:59:231 ENGINE
Serving on http://0.0.0.0:5555 [2023-12-27 18:59:23) INFO:
[27/Dec/2023:18:59:231 ENGINE Serving on http://0.0.0.0:5555
[27/Dec/2023:18:59:23) ENGINE Bus STARTED [2023-12-27 18:59:231 INFO:
[27/Dec/2023:18:59:231 ENGINE Bus STARTED Traceback (nost recent call
last): File "/home/pl/pikaraoke/app.py", line 863, in <module> driver
webdriver.Chrome (service-service, options options) File
"/home/pl/pikaraoke/.venu/lib/python3.11/site-packages/selenium/webdriver/chrome/uebdriver.py",
line 45, in_init_ super().init__( File
"/home/pl/pikaraoke/.venu/lib/python3.11/site-packages/selenium/webdriver/chromiun/webdriver.py",
line 61, in __init_ super()._init_(command_executor executor,
options-options)
/home/pi/pikaranke/.venu/lib/python3.11/site-packages/seleniun/webdriver/remote/vebdriver.py",
line 209, in_init__ File " self.start session(capabilities) File
"/home/pl/pikaraoke/.venv/lib/python3.11/site-packages/seleniun/webdriver/remote/webdriver.py",
line 293, in start session response = self.execute(Command. NEM SESSION,
caps) ["value"] File
"/home/pi/pikaraoke/.venv/lib/python3.11/site-packages/seleniun/webdriver/renote/webdriver.py
", line 348, in execute self.error handler.check_response (response) File
"/home/pl/pikaraoke/.venv/lib/python3.11/site-packages/seleniun/webdriver/remote/errorhandler.py",
line 229, in check response raise exception_class(message, screen,
stacktrace) seleniun.common.exceptions.SessionHot CreatedException:
Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist) (The process
started fron chrome location /usr/bin/chronium-browser is no longer
running, so Chromedriver is assuming that Chrome has crashed.) Stacktrace:
10 0x0055901175f4 <unknown> #1 0x00558fe07264 <unknown> #2 0x00558fe39304
<unknown> #3 0x00558fe357cc <unknown> #4 0x00558fe7bade <unknown> #5
0x00558fe40aZc <unknown> #6 0x00558fe41c44 <unknown> #7 0x0055900e160c
<unknown> #8 0x0055900c49c0 <unknown> #9 0x0055900d1aec <unknown> #10
0x0055900c537c <unknown> #11 0x0055900b9eae <unknown> #12 0x005590195310
<unknown> #13 0x0055901055bc <unknown> #14 0x0055901167a8 <unknown> #15
0x007f9af9ee18 <unknown> #16 0x007f9af77e9c <unknown>
—
Reply to this email directly, view it on GitHub
<#298 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7KXNUDRM3H5CSFUATCLW3YLRWM5AVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSNJZGI4DI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yup you’re doing everything right. Hm I wonder if something has changed
with the latest version of chromium that might have broken something.
Try running ./pikaraoke.sh —headless
That will skip the selenium auto-launching launching part. Then manually
connect to the url it specifies. Does that work?
…On Wed, Dec 27, 2023 at 2:31 PM buckmasterj ***@***.***> wrote:
I've tried on fresh RasPi OS image using the Raspberry Pi imager.
After raspi-config to set up wifi, here are the steps I've been following:
Sudo apt-get update
git clone https://guthub.com/vicwomg/pikaraoke.git
cd pikaraoke
./setup.sh
./pikaraoke.sh
Also tried on a raspberry pi 5 with no luck. I must be missing some step?
—
Reply to this email directly, view it on GitHub
<#298 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7KXNU3XAYSTOG4ZCB4DR3YLRZR3AVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSNJZGQYTG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Also, are you stuck on bullseye? Can you try raspberry pi os bookworm? All
of the release testing occurred there, so I’m unsure if bullseye works.
Also, Are you running desktop? Note that desktop is required since
pikaraoke needs a web browser.
…On Wed, Dec 27, 2023 at 2:45 PM Vic Wong ***@***.***> wrote:
Yup you’re doing everything right. Hm I wonder if something has changed
with the latest version of chromium that might have broken something.
Try running ./pikaraoke.sh —headless
That will skip the selenium auto-launching launching part. Then manually
connect to the url it specifies. Does that work?
On Wed, Dec 27, 2023 at 2:31 PM buckmasterj ***@***.***>
wrote:
> I've tried on fresh RasPi OS image using the Raspberry Pi imager.
>
> After raspi-config to set up wifi, here are the steps I've been following:
>
> Sudo apt-get update
> git clone https://guthub.com/vicwomg/pikaraoke.git
> cd pikaraoke
> ./setup.sh
> ./pikaraoke.sh
>
> Also tried on a raspberry pi 5 with no luck. I must be missing some step?
>
> —
> Reply to this email directly, view it on GitHub
> <#298 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA7KXNU3XAYSTOG4ZCB4DR3YLRZR3AVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSNJZGQYTG>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Hi! Great project! Many thanks for it. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Here is the Chromium browser version and Chrome Driver
Raspbian OS version
|
Beta Was this translation helpful? Give feedback.
-
Hi @vicwomg Thanks in advance. -Larry |
Beta Was this translation helpful? Give feedback.
-
Prefer ip is now default. No need to specify it
…On Wed, Jan 17, 2024 at 1:37 AM lsibarra ***@***.***> wrote:
Hi @vicwomg <https://github.com/vicwomg>
I had to reinstall my the pikaraoke on my rapsberry pi 3 because I needed
a larger microsd card. I followed all the same steps. but now if I launch ./pikaraoke.sh
--prefer-ip it is no longer working. Looking at the Usage documented on
github, it does not look like --prefer-ip is available? Is this no longer
available? How do you recommend me launching ./pikaraoke.sh?
Thanks in advance.
-Larry
—
Reply to this email directly, view it on GitHub
<#298 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7KXNWXSH7TZTAIOHDFLLTYO5WSBAVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNJSG42DI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Include Output of the setup command please
…On Wed, Jan 17, 2024 at 3:41 PM lsibarra ***@***.***> wrote:
HI @vicwomg <https://github.com/vicwomg>
Thanks for your reply. Was there a recent update after 01/05/2024 to the
1.2 version? I tried to install this and somehow the chromedriver is not
getting installed in the raspberry pi after running ./setup.sh Therefore
the selenium is failing.
—
Reply to this email directly, view it on GitHub
<#298 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7KXNR37KPYKFPJ3GBFU4TYPAZQZAVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRRGY2TM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @vicwomg , Here is the log output after running `pi@pikaraoke:~/pikaraoke $ ./setup.sh *** CREATING PYTHON VIRTUAL ENVIRONMENT *** *** INSTALLING PYTHON DEPENDENCIES *** *** DONE *** pi@pikaraoke:~/pikaraoke $`
After the setup, running ./pikaraoke.sh I get this output
|
Beta Was this translation helpful? Give feedback.
-
Hmm, it looks like my last update broke debian detection on the pi.
Therefore, it is skipping the setup steps that would install chromedriver.
Can you run this command and let me know the output?
cat /etc/os-release
…On Thu, Jan 18, 2024 at 1:09 AM lsibarra ***@***.***> wrote:
Hi @vicwomg <https://github.com/vicwomg> ,
Here is the log output after running ./setup.sh
***@***.***:~/pikaraoke $ ./setup.sh
Are you sure you want to setup PiKaraoke? (y/n): y
Client is not Debian-based. Skipping binary installation. Please install
ffmpeg and chrome manually.
*** CREATING PYTHON VIRTUAL ENVIRONMENT ***
*** INSTALLING PYTHON DEPENDENCIES ***
Looking in indexes: https://pypi.org/simple,
https://www.piwheels.org/simple
Collecting CherryPy
Using cached
https://www.piwheels.org/simple/cherrypy/CherryPy-18.9.0-py3-none-any.whl
(348 kB)
Collecting Flask==2.2.5
Using cached
https://www.piwheels.org/simple/flask/Flask-2.2.5-py3-none-any.whl (101
kB)
Collecting qrcode
Using cached
https://www.piwheels.org/simple/qrcode/qrcode-7.4.2-py3-none-any.whl (46
kB)
Collecting psutil
Using cached
https://www.piwheels.org/simple/psutil/psutil-5.9.7-cp311-abi3-linux_armv7l.whl
(280 kB)
Collecting unidecode
Using cached
https://www.piwheels.org/simple/unidecode/Unidecode-1.3.8-py3-none-any.whl
(235 kB)
Collecting requests
Using cached
https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl
(62 kB)
Collecting flask-paginate==2021.10.29
Using cached
https://www.piwheels.org/simple/flask-paginate/flask_paginate-2021.10.29-py2.py3-none-any.whl
(7.3 kB)
Collecting jinja2==3.0.3
Using cached
https://www.piwheels.org/simple/jinja2/Jinja2-3.0.3-py3-none-any.whl (133
kB)
Collecting Babel==2.9.1
Using cached
https://www.piwheels.org/simple/babel/Babel-2.9.1-py2.py3-none-any.whl
(8.8 MB)
Collecting Flask-Babel==2.0.0
Using cached
https://www.piwheels.org/simple/flask-babel/Flask_Babel-2.0.0-py3-none-any.whl
(9.3 kB)
Collecting selenium
Using cached
https://www.piwheels.org/simple/selenium/selenium-4.16.0-py3-none-any.whl
(1.1 MB)
Collecting ffmpeg-python
Using cached
https://www.piwheels.org/simple/ffmpeg-python/ffmpeg_python-0.2.0-py3-none-any.whl
(25 kB)
Collecting yt-dlp
Using cached
https://www.piwheels.org/simple/yt-dlp/yt_dlp-2023.12.30-py2.py3-none-any.whl
(3.0 MB)
Collecting Werkzeug>=2.2.2
Using cached
https://www.piwheels.org/simple/werkzeug/werkzeug-3.0.1-py3-none-any.whl
(226 kB)
Collecting itsdangerous>=2.0
Using cached
https://www.piwheels.org/simple/itsdangerous/itsdangerous-2.1.2-py3-none-any.whl
(15 kB)
Collecting click>=8.0
Using cached
https://www.piwheels.org/simple/click/click-8.1.7-py3-none-any.whl (97 kB)
Collecting MarkupSafe>=2.0
Using cached
https://www.piwheels.org/simple/markupsafe/MarkupSafe-2.1.3-cp311-cp311-linux_armv7l.whl
(26 kB)
Collecting pytz>=2015.7
Using cached
https://www.piwheels.org/simple/pytz/pytz-2023.3.post1-py3-none-any.whl
(502 kB)
Collecting cheroot>=8.2.1
Using cached
https://www.piwheels.org/simple/cheroot/cheroot-10.0.0-py3-none-any.whl
(101 kB)
Collecting portend>=2.1.1
Using cached
https://www.piwheels.org/simple/portend/portend-3.2.0-py3-none-any.whl
(5.3 kB)
Collecting more-itertools
Using cached
https://www.piwheels.org/simple/more-itertools/more_itertools-10.2.0-py3-none-any.whl
(57 kB)
Collecting zc.lockfile
Using cached
https://www.piwheels.org/simple/zc-lockfile/zc.lockfile-3.0.post1-py3-none-any.whl
(9.8 kB)
Collecting jaraco.collections
Using cached
https://www.piwheels.org/simple/jaraco-collections/jaraco.collections-5.0.0-py3-none-any.whl
(10 kB)
Collecting typing-extensions
Using cached
https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.9.0-py3-none-any.whl
(32 kB)
Collecting pypng
Using cached
https://www.piwheels.org/simple/pypng/pypng-0.20220715.0-py3-none-any.whl
(58 kB)
Collecting charset-normalizer<4,>=2
Using cached
https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.3.2-py3-none-any.whl
(48 kB)
Collecting idna<4,>=2.5
Using cached
https://www.piwheels.org/simple/idna/idna-3.6-py3-none-any.whl (61 kB)
Collecting urllib3<3,>=1.21.1
Using cached
https://www.piwheels.org/simple/urllib3/urllib3-2.1.0-py3-none-any.whl
(104 kB)
Collecting certifi>=2017.4.17
Using cached
https://www.piwheels.org/simple/certifi/certifi-2023.11.17-py3-none-any.whl
(162 kB)
Collecting trio~=0.17
Using cached
https://www.piwheels.org/simple/trio/trio-0.24.0-py3-none-any.whl (460 kB)
Collecting trio-websocket~=0.9
Using cached
https://www.piwheels.org/simple/trio-websocket/trio_websocket-0.11.1-py3-none-any.whl
(17 kB)
Collecting future
Using cached
https://www.piwheels.org/simple/future/future-0.18.3-py3-none-any.whl
(492 kB)
Collecting mutagen
Using cached
https://www.piwheels.org/simple/mutagen/mutagen-1.47.0-py3-none-any.whl
(194 kB)
Collecting pycryptodomex
Using cached
https://www.piwheels.org/simple/pycryptodomex/pycryptodomex-3.20.0-cp35-abi3-linux_armv7l.whl
(1.8 MB)
Collecting websockets>=12.0
Using cached
https://www.piwheels.org/simple/websockets/websockets-12.0-cp311-cp311-linux_armv7l.whl
(129 kB)
Collecting brotli
Using cached
https://www.piwheels.org/simple/brotli/Brotli-1.1.0-cp311-cp311-linux_armv7l.whl
(2.8 MB)
Collecting jaraco.functools
Using cached
https://www.piwheels.org/simple/jaraco-functools/jaraco.functools-4.0.0-py3-none-any.whl
(9.8 kB)
Collecting tempora>=1.8
Using cached
https://www.piwheels.org/simple/tempora/tempora-5.5.0-py3-none-any.whl
(13 kB)
Collecting attrs>=20.1.0
Using cached
https://www.piwheels.org/simple/attrs/attrs-23.2.0-py3-none-any.whl (60
kB)
Collecting sortedcontainers
Using cached
https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-2.4.0-py2.py3-none-any.whl
(29 kB)
Collecting outcome
Using cached
https://www.piwheels.org/simple/outcome/outcome-1.3.0.post0-py2.py3-none-any.whl
(10 kB)
Collecting sniffio>=1.3.0
Using cached
https://www.piwheels.org/simple/sniffio/sniffio-1.3.0-py3-none-any.whl
(10 kB)
Collecting wsproto>=0.14
Using cached
https://www.piwheels.org/simple/wsproto/wsproto-1.2.0-py3-none-any.whl
(24 kB)
Collecting pysocks!=1.5.7,<2.0,>=1.5.6
Using cached
https://www.piwheels.org/simple/pysocks/PySocks-1.7.1-py3-none-any.whl
(16 kB)
Collecting jaraco.text
Using cached
https://www.piwheels.org/simple/jaraco-text/jaraco.text-3.12.0-py3-none-any.whl
(11 kB)
Requirement already satisfied: setuptools in
./.venv/lib/python3.11/site-packages (from zc.lockfile->CherryPy->-r
requirements.txt (line 1)) (66.1.1)
Collecting h11<1,>=0.9.0
Using cached
https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
Collecting jaraco.context>=4.1
Using cached
https://www.piwheels.org/simple/jaraco-context/jaraco.context-4.3.0-py3-none-any.whl
(5.3 kB)
Collecting autocommand
Using cached
https://www.piwheels.org/simple/autocommand/autocommand-2.2.2-py3-none-any.whl
(19 kB)
Collecting inflect
Using cached
https://www.piwheels.org/simple/inflect/inflect-7.0.0-py3-none-any.whl
(34 kB)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ProtocolError('Connection
aborted.', RemoteDisconnected('Remote end closed connection without
response'))': /simple/pydantic/
Collecting pydantic>=1.9.1
Using cached
https://www.piwheels.org/simple/pydantic/pydantic-2.5.3-py3-none-any.whl
(381 kB)
Collecting annotated-types>=0.4.0
Using cached
https://www.piwheels.org/simple/annotated-types/annotated_types-0.6.0-py3-none-any.whl
(12 kB)
Collecting pydantic-core==2.14.6
Using cached
pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
(1.9 MB)
Installing collected packages: sortedcontainers, pytz, pypng, brotli,
zc.lockfile, websockets, urllib3, unidecode, typing-extensions, sniffio,
pysocks, pycryptodomex, psutil, mutagen, more-itertools, MarkupSafe,
jaraco.context, itsdangerous, idna, h11, future, click, charset-normalizer,
certifi, Babel, autocommand, attrs, annotated-types, wsproto, Werkzeug,
requests, qrcode, pydantic-core, outcome, jinja2, jaraco.functools,
ffmpeg-python, yt-dlp, trio, tempora, pydantic, Flask, cheroot,
trio-websocket, portend, inflect, flask-paginate, Flask-Babel, selenium,
jaraco.text, jaraco.collections, CherryPy
Successfully installed Babel-2.9.1 CherryPy-18.9.0 Flask-2.2.5
Flask-Babel-2.0.0 MarkupSafe-2.1.3 Werkzeug-3.0.1 annotated-types-0.6.0
attrs-23.2.0 autocommand-2.2.2 brotli-1.1.0 certifi-2023.11.17
charset-normalizer-3.3.2 cheroot-10.0.0 click-8.1.7 ffmpeg-python-0.2.0
flask-paginate-2021.10.29 future-0.18.3 h11-0.14.0 idna-3.6 inflect-7.0.0
itsdangerous-2.1.2 jaraco.collections-5.0.0 jaraco.context-4.3.0
jaraco.functools-4.0.0 jaraco.text-3.12.0 jinja2-3.0.3
more-itertools-10.2.0 mutagen-1.47.0 outcome-1.3.0.post0 portend-3.2.0
psutil-5.9.7 pycryptodomex-3.20.0 pydantic-2.5.3 pydantic-core-2.14.6
pypng-0.20220715.0 pysocks-1.7.1 pytz-2023.3.post1 qrcode-7.4.2
requests-2.31.0 selenium-4.16.0 sniffio-1.3.0 sortedcontainers-2.4.0
tempora-5.5.0 trio-0.24.0 trio-websocket-0.11.1 typing-extensions-4.9.0
unidecode-1.3.8 urllib3-2.1.0 websockets-12.0 wsproto-1.2.0
yt-dlp-2023.12.30 zc.lockfile-3.0.post1
*** DONE ***
Run PiKaraoke with: ./pikaraoke.sh
***@***.***:~/pikaraoke $`
—
Reply to this email directly, view it on GitHub
<#298 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7KXNS62YLFWMHZI5ZMS2DYPC373AVCNFSM6AAAAABBEUISDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRVGIYDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, pi@pikaraoke:~/pikaraoke $ ./pikaraoke.sh Cheers |
Beta Was this translation helpful? Give feedback.
-
After following the readme for a fresh install on a raspberry pi 3 and then running ./pikaraoke.sh I keep getting the following errors:
I've been pulling my hair out trying to figure out what I did wrong?
I'm running Bullseye 32bit OS on a Pi3 model A+
Beta Was this translation helpful? Give feedback.
All reactions