-
Notifications
You must be signed in to change notification settings - Fork 136
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] pikaraoke fails to start if new yt-dlp is released and --break-system-packages is used to install pikaraoke #402
Comments
I decided to tackle the systemd service to start the pikaraoke in the python venv. I created a new instance based on the Linux Python venv instructions on the Readme page - no longer using the --break-system-packages option. Notice that you don't need to stipulate the yt-dlp path anymore. I verify that yt-dlp automatic upgrade works. [Unit] [Service] [Install] |
Same exact issue and I will use your fix of using venv to setup Pi Karaoke. I assume anyone else using the --break-system-packages option will experience the same issue the next time they need an update. I don't have this issue on my second Pi where I installed yt-dlp system-wide, it updates fine, even though I installed Pi Karaoke using --break-system-packages. I am wondering though, with your fix of |
Obviously the app should launch regardless, and we should handle the error properly. But I'm a bit torn on the options: simply tacking on
|
I have confirmed that running |
After too much deliberation, I don't see a problem with the simplest option: adding the --break-system-packages flag in. For venv users, no ill effect. For global python users, it will fix the issue. They installed it one way or the other |
Describe the bug
I have this system running well using a systemd service to start pikaraoke in kiosk mode. To do this, I had to install with --break-system-packages. Today when I turned the system on, pikaraoke failed to start because there is a new version of yt-dlp release three days ago.
To Reproduce
Steps to reproduce the behavior:
pip install --upgrade yt-dlp==2024.08.06
Sep 30 16:24:56 pikaraoke pikaraoke[978]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sep 30 16:24:56 pikaraoke pikaraoke[978]: File "/usr/lib/python3.11/subprocess.py", line 466, in check_output Sep 30 16:24:56 pikaraoke pikaraoke[978]: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, Sep 30 16:24:56 pikaraoke pikaraoke[978]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sep 30 16:24:56 pikaraoke pikaraoke[978]: File "/usr/lib/python3.11/subprocess.py", line 571, in run Sep 30 16:24:56 pikaraoke pikaraoke[978]: raise CalledProcessError(retcode, process.args, Sep 30 16:24:56 pikaraoke pikaraoke[978]: subprocess.CalledProcessError: Command '['pip3', 'install', '--upgrade', 'yt-dlp']' returned non-zero exit status 1.
I had to run
pip3 install --upgrade yt-dlp --break-system-packages
to fix. Then rebooted the system to bring back pikaraoke.Expected behavior
yt-dlp would be upgraded normally. OR pikaraoke would start normally and let me upgrade yt-dlp on my own. The old version still works (this time).
Screenshots
None.
Platform (please complete the following information):
Platform: Raspberry Pi 4 Model B Rev 1.5
OS Version: #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07)
Youtube-dl (yt-dlp) version: 2024.08.06
FFmpeg version: 5.1.6-0+deb12u1+rpt1
Pikaraoke version: 1.5.0
Additional context
None,
The text was updated successfully, but these errors were encountered: