This topic is READ ONLY
JRamey (3) [Avatar] Offline
#1
Hi there, I am using a macbook running 10.9.2 and whenever I try to run the program in listing 16.10 it says:
Traceback (most recent call last):
File "/Users/lewisramey/Documents/bigname.py/Python Code/Beachball Try2.py", line 5, in <module>
my_ball = pygame.image.load("beach_ball.png") # load the image from a file
error: Unsupported image format
I tried putting the copying the image from the example code file to where I save my python files but it did not help. However, when I run the program from the example code file it does work. I tried copying and pasting the code from that file, but I still got the same error message. Can you help?