pikaraoke icon indicating copy to clipboard operation
pikaraoke copied to clipboard

requirements.txt issue re: python 3.9.7 and pygame===1.9.6

Open marzukia opened this issue 3 years ago • 10 comments

ERROR: Could not find a version that satisfies the requirement pygame==1.9.6 (from versions: 1.9.2rc1, 1.9.2, 1.9.3, 1.9.4.dev0, 1.9.4rc1, 1.9.4, 1.9.5rc1, 1.9.5rc2, 1.9.5, 1.9.6rc1, 1.9.6rc2, 1.9.6, 2.0.0.dev1, 2.0.0.dev2, 2.0.0.dev3, 2.0.0.dev4, 2.0.0.dev6, 2.0.0.dev8, 2.0.0.dev10, 2.0.0.dev12, 2.0.0.dev14, 2.0.0.dev16, 2.0.0.dev18, 2.0.0.dev20, 2.0.0.dev22, 2.0.0.dev24, 2.0.0, 2.0.1.dev1, 2.0.1, 2.0.2.dev2)
ERROR: No matching distribution found for pygame==1.9.6

When installing using requirements.txt. I had to remove the explicit version in requirements.

Using Fedora 34.

marzukia avatar Sep 23 '21 20:09 marzukia

It seems odd that the error message quotes the exact version string ("1.9.6") in the searched list that it says it can't find. Is there something wrong with Fedora's version search, or is there more than one kind of '.' (or 1 or 9 or 6) that the search distinguishes?

Hartebee5t avatar Sep 25 '21 21:09 Hartebee5t

I noticed that too, ideally pikaraoke should move to use the latest version pygame, but last I checked it had issues with displaying image files (QR code, specifcally) on the pi. @marzukia are you on the latest version of 2.X pygame now? If so, does it seem to work as expected?

vicwomg avatar Sep 27 '21 18:09 vicwomg

I also ran into this, and had to update to get it working on my dev machine, but I don't have my pi right now, and wasn't able to test the splash screen.

tbelaire avatar Dec 14 '21 17:12 tbelaire

There was definitely some distinct reason we went with 1.9.6, some kind of display issue with more recent pygame versions (I believe mainly around rendering the qr code bitmap), but if we can get confirmation that the latest works ok, happy to proceed with merging this.

On Tue, Dec 14, 2021, 9:17 AM Theo Belaire @.***> wrote:

I also ran into this, and had to update to get it working on my dev machine, but I don't have my pi right now, and wasn't able to test the splash screen.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vicwomg/pikaraoke/issues/147#issuecomment-993801960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7KXNTQUFQKWVXOMQURCBDUQ534PANCNFSM5EUQ2PGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

vicwomg avatar Dec 14 '21 17:12 vicwomg

Yeah I have my pi back and it's "* Failed to add service - already in use?" From pygame display init. Which looks like they are complaining about the SDL version which ships in raspbian and it's a mess to fix. Uhg.

tbelaire avatar Dec 28 '21 03:12 tbelaire

I recently poked around getting the latest pygame working on the 160 branch. As it turns out, Rpi Bullseye broke lots of stuff. Here's what I added to the setup-pi script to get it working:

sudo apt-get install libjpeg-dev libsdl2-image-2.0-0 vlc python3-pip ffmpeg libsdl2-ttf-dev -y

These might be of particular importance: libsdl2-ttf-dev libjpeg-dev libsdl2-image-2.0-0

I kind of hate pygame at this point. Wondering lately if it makes sense to just have a HTML splash screen endpoint and show that in a kiosk-mode browser. Unfortunately that would require X11 to be installed, so the pi image would be less minimal than I'd like.

vicwomg avatar Dec 28 '21 19:12 vicwomg

Or, it could use this to display the QR Code https://askubuntu.com/a/755357/9744 And stay in terminal mode? Or curses or something? I feel your pain.

I was just trying to get SDL2 working on the pi, but that basically means compiling SDL on the pi, and I'm not sure if that's going to work for you and how that's going to be distributable and all that.

Or perhaps load up a single frame video and display that using the same player as the youtube videos? Then you can re-use that.

On Tue, Dec 28, 2021 at 2:24 PM Vicwomg @.***> wrote:

I recently poked around getting the latest pygame working on the 160 branch. As it turns out, Rpi Bullseye broke lots of stuff. Here's what I added to the setup-pi script to get it working:

sudo apt-get install libjpeg-dev libsdl2-image-2.0-0 vlc python3-pip ffmpeg libsdl2-ttf-dev -y

These might be of particular importance: libsdl2-ttf-dev libjpeg-dev libsdl2-image-2.0-0

I kind of hate pygame at this point. Wondering lately if it makes sense to just have a HTML splash screen endpoint and show that in a kiosk-mode browser. Unfortunately that would require X11 to be installed, so the pi image would be less minimal than I'd like.

— Reply to this email directly, view it on GitHub https://github.com/vicwomg/pikaraoke/issues/147#issuecomment-1002249656, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIJZ34Y3KQR3GVAKHKTNTUTIFGNANCNFSM5EUQ2PGA . You are receiving this because you commented.Message ID: @.***>

tbelaire avatar Dec 28 '21 20:12 tbelaire

OK I spent a good 4 hours today messing with configure scripts and such with SDL and man, it's not happy. I finally got it working, but I think I need to reconfigure pygame. If we can avoid messing with SDL for a release version, that's a huge plus.

tbelaire avatar Jan 02 '22 03:01 tbelaire

This looks good

https://superuser.com/a/1558898/15735

qrencode program. Now lets see how to just output to the tty1. I want this to happen on boot, and I have a mostly working systemd service to launching it, so I'm going to mess about with that a bit more.

tbelaire avatar Jan 02 '22 03:01 tbelaire

Did you try the apt installs I mentioned above? Pretty sure I fixed the latest pygame in this branch:

160-fix_pi_setup_and_requirements

Seems to be working with pygame 2.1.0 for me right now.

You do need to re-run setup-pi.shto get those SDL libraries

vicwomg avatar Jan 02 '22 04:01 vicwomg

@vicwomg can you help me out with this? Screenshot (1)

takoyaki17 avatar Jan 13 '23 06:01 takoyaki17

pygame removed in Pikaraoke 1.2

vicwomg avatar Dec 24 '23 08:12 vicwomg