pikaraoke icon indicating copy to clipboard operation
pikaraoke copied to clipboard

Pygame Error in karaoke.py when trying to start "video system not initialized"

Open Romeo1984 opened this issue 1 year ago • 2 comments

Setup: Pi4 Bullseye 64 non-desktop OS (updated) Miniconda 4.9.2 ARCH 64 (not updated - I did update it in an earlier install, but it broke the HTTP packet retrieval, so I re-stalled it) Running from SSH:

 (base) pi@pikaraoke:~/pikaraoke $ sudo env PATH=~/miniconda3/bin:$PATH python3 app.py
pygame 2.3.0 (SDL 2.24.2, Python 3.9.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Creating download path: /root/pikaraoke-songs/
[2023-04-15 20:08:47] INFO: Fetching available songs in: /root/pikaraoke-songs/
[2023-04-15 20:08:48] INFO: VLC command base: /usr/bin/cvlc --fullscreen --play-and-exit --extraintf http --http-port 5002 --http-password 0SnYjziR6aK5EWxYsT39SNaftkQQ4DBq --no-embedded-video --no-keyboard-events --no-mouse-events --video-on-top --volume-save --no-video-title --no-loop --no-repeat --mouse-hide-timeout 0 --intf dummy
Traceback (most recent call last):
  File "/home/pi/pikaraoke/app.py", line 967, in <module>
    K = karaoke.Karaoke(args)
  File "/home/pi/pikaraoke/karaoke.py", line 189, in __init__
    self.initialize_screen(not args.windowed)
  File "/home/pi/pikaraoke/karaoke.py", line 278, in initialize_screen
    pygame.mouse.set_visible(0)
pygame.error: video system not initialized

I did a search and didn't find any obvious fixes.

Romeo1984 avatar Apr 15 '23 20:04 Romeo1984