[Tutor] Help

CJ cjackt05 at gmail.com
Wed Aug 3 21:41:31 EDT 2016


Hi,
  I’m coding a game for fun and i keep trying to run it but this keeps showing up:
traceback (most recent call last):
  File "/Volumes/name/box move thing(wed).py", line 13, in <module>
    player_img = PhotoImage(file="astronaut.png")
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 3394, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 3350, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open "astronaut.png": no such file or directory

Even though I have a file named “astronaut.png” I’ve tried a lot of things if I could be helped that would be awesome.


                               Thanks,
                   Anonymous


More information about the Tutor mailing list