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.

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.