Every time I try to run some code with a .png file or .jpg file in Thonny, I get an error:
pygame.error: File is not a Windows BMP file
I tried installing Pygame again with the Unix Debian version (sudo apt-get install python3-pygame), because I think that's what TwisterOS is based on, but I get the message that I am already on the latest version. When I then try to run the test to see if Pygame is correctly installed:
python3 -m pygame.examples.aliens
I get this message: Sorry, extended image module required
So that's why I came to the conclusion that something is missing with my image module of Pygame. Which makes sense, because Pygame can only run .bmp files for now. Every time when I have converted images to a .bmp, the code works.
How can I get the extended image module of pygame installed?
I am completely new when it comes to using Linux, Raspian or Debian. So even with installing or uninstalling I need some instructions. I am running this on a Raspberry Pi 400.
If you need any more info, let me know. Thanks in advance!