[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Help with pygame



Zack Baker wrote:

Traceback (most recent call last):
  File "green-car-test.py", line 10, in <module>
    car=pygame.image.load('green-car.png')
pygame.error: File is not a Windows BMP file

It looks to me as though your PyGame installation doesn't have
support for PNG files. It seems to fall back to assuming BMP
if it can't find a handler for the file it's given.

How did you install PyGame? If you're compiling it from source,
the build process should tell you which optional libraries it
found. If PNG support is missing, you might need to install
libpng and recompile PyGame.

--
Greg