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
KarimA (2) [Avatar] Offline
#1
First of all I want to say what an amazing book this is.
Previously I had some trouble with another chapter but managed to sort it out.
Right now I am stuck on the ski free game. I decided to make sure it would work before I typed it all into IDLE, so I downloaded the code from your website and put it in. I then got this error.

Traceback (most recent call last):
File "/Users/KarimAhmed/Desktop/_Pystuff/skifree", line 94, in <module>
skier = SkierClass()
File "/Users/KarimAhmed/Desktop/_Pystuff/skifree?", line 19, in __init__
self.image = pygame.image.load("skier_down.png")
error: Couldn't open skier_down.png
>>>

I am going to create a new account for python but how do I fix this?
Where do I put the images?

Thanks,
Karim
CP123 (8) [Avatar] Offline
#2
Re: Mac Pygame Help
Save the images to the same folder you save skier.py
KarimA (2) [Avatar] Offline
#3
Re: Mac Pygame Help
Thanks!