pygame.error: File is not a Windows BMP file
See original GitHub issueRaspberry Pi 4 running Raspbian Buster Slim using the Adafruit 7" Touchscreen display.
Using ./run.sh gets me to this error message:
Traceback (most recent call last):
File "lcars.py", line 8, in <module>
config.SOUND)
File "/home/pi/rpi_lcars/app/ui/ui.py", line 30, in __init__
self.screen.setup(self.all_sprites)
File "/home/pi/rpi_lcars/app/screens/authorize.py", line 16, in setup
all_sprites.add(LcarsBackgroundImage("assets/lcars_screen_2.png"),
File "/home/pi/rpi_lcars/app/ui/widgets/background.py", line 14, in __init__
self.image = pygame.image.load(image).convert()
pygame.error: File is not a Windows BMP file
I’ve verified that Pillow is installed and all needed libraries are installed. Any assistance would be appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Pygame Error: File is not a windows BMP file - Stack Overflow
Pygame Error : File is not a windows BMP file · Delete Python 3 and reinstall Python 2.7 32-bit version (using the .dmg)...
Read more >m1 Mac pygame.error: File is not a Windows BMP file #2458
If possible add a simple test program that shows the problem described in this report. import pygame pygame.image.load('chessboard.png').
Read more >pygame.error: File is not a Windows BMP file - Reddit
pygame.error: File is not a Windows BMP file. I am on a mac and keep getting this error when trying to launch pyzero...
Read more >pygame error: file is not a windows bmp file - Google Groups
Hello, all! "pygame error: file is not a windows bmp file". I couldn't found a solution for this problem. My python script run...
Read more >[Solved]-File is not a Windows BMP File-eclipse - appsloveworld
I'm not on a mac, but I have two thoughts: First: I see no pygame.init(), which i learned should allways come first. Second:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just had the same issue after dist-upgrade to Buster.
the resolution was the fact the SDL libraries were not installed.
The easiest way, will be install using the command line