Hi, I have python 2.7 & python 3 installed on ubuntu. I just installed pygame and have it working so far in python 3 which is what I want to be doing. However I can only load bmp images in python 3. When I try to load a jpg I get this message:

pygame.error: File is not a Windows BMP file

if I run it in python 2.7, not a problem. I spent so much time in the terminal downloading packages which was a nightmare since Im a total newbie to ubuntu, programming, and python. If anyone can spare me some of my suffering it would be greatly appreciated. Thanks.

4 Years
Discussion Span
Last Post by slate

Pygame uses the SDL library (written in C++). Looks like one of your SDL files is corrupt or missing. On my Windows box the image handling file is called SDL_image.dll
There should be a Unix/Linux equivalent.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.