The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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?