tobykurien / rpi_lcars

Star Trek LCARS interface for Raspberry Pi using Pygame
MIT License
654 stars 146 forks source link

pygame.error: Surface has no palette #45

Open 6Norfolk opened 1 year ago

6Norfolk commented 1 year ago

Hi, Firstly thanks for creating the LCARS interface. Its a great piece of software! I've had the software working for some time on my raspberry pi 4 with no issues. However recently i've come to fire it up and get the following errors when its trying to launch the ScreenAuthorize. Unable to set the palette. I've not changed any of the original software so i'm thinking i've updated something in the background and its broken it. If anyone has any ideas how to fix that would be great :) Cheers

File "/home/pi/Documents/Python_Projects/rpi_lcars-master_original/app/ui/utils/gif_image.py", line 95, in get_frames pi.set_palette(palette) pygame.error: Surface has no palette

DansDesigns commented 1 year ago

Im having the same issue with a fresh clone from git and trying to launch from command line..

jonfitt commented 1 year ago

I'm getting an error on the same command but it is:

File "/home/pi/rpi_lcars/app/ui/utils/gif_image.py", line 90, in get_frames pi.set_palette(palette) pygame.error: Surface colors are not indexed

Silverfire9 commented 1 year ago

I just came back to the development of my application of this and also ran into this problem. As far as I can tell, it's from an update of the pygame module since the last update of the git (3 years ago) it only seems to affect GIF images, so my workaround has been to just comment out the rotating logo for now. There is some good documentation for the module if you want to try fixing it, but I haven't gotten around to it - had other priorities for my development path.