[Tutor] Problem with converting Python to EXE using py2exe
Chris Lee
i-scream_cones at hotmail.com
Fri Apr 10 23:22:19 CEST 2009
Hi tutors,
So I finally made my program. When I run it with python, it works perfectly!
But when I convert it to an executable using py2exe (correctly), I get an error:
Traceback (most recent call last):
File "oentry.py", line 52, in <module>
File "Tkinter.pyc", line 3270, in __init__
File "Tkinter.pyc", line 3226, in __init__
_tkinter.TclError: Couldn't open "base.gif": no such file or directory
alright,, I know what you're talking about, Mr.Python... I linked an image to the python file, but the exe can't find it.. (right?)
anyways, here's the snippet of my code which uses the "base.gif"
pic = tkinter.PhotoImage
base = pic(file="base.gif")
Now, I'm just wondering... for the "base.gif" part, would it be better to write out the whole directory?
any help would be appreciated. Thanks a bunch!
-Christopher "script teeny" Leeeeee
_________________________________________________________________
Share photos with friends on Windows Live Messenger
http://go.microsoft.com/?linkid=9650734
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090410/72ae4977/attachment-0001.htm>
More information about the Tutor
mailing list