[Tutor] pygame error

Vipul Sharma vipul.sharma20 at gmail.com
Wed Nov 27 20:13:17 CET 2013


Hello ! I am a beginner in pygame, i was just trying a simple pygame
program where I wanted to load an image (.png) from the same directory
where my actual source code was.
I wrote this line in my source code to load the image :

Img = pygame.image.load('cat.png')

But I got a traceback :

pygame.error: File is not a Windows BMP file

Can anyone pls tell what is the problem with the code, why this error
arises ?
I am using python 2.7.4 on Ubuntu

Thanks for the help in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131128/57134098/attachment.html>


More information about the Tutor mailing list