py2exe install script problem

Croteam vedran at v-programs.com
Fri Dec 8 11:43:15 EST 2006


Hello,

I using py2exe for my script installing,and I have one problem about
it,actually the real problem is
tkinter window iconbitmap:

  import Tkinter
  root=Tkinter.Tk()
  root.iconbitmap('myicon.ico')  # I was try and with myicon.bmp


Then after I install myscript in .exe,and when I run it I got error in
some strange window:

window title: Error occurred
window message:  See the logfile
'c:\Python24\Lib\site-packages\dist\myscript.exe' for details

and tad and in that error "make" in install directory one log file, and
that file I run with notepad and
in that  notepad file
write error:

   Traceback (most recent call last):
  File "myscript.py", line 3, in ?
  File "Tkinter.pyc", line 1448, in wm_iconbitmap
_tkinter.TclError: bitmap "myicon.ico" not defined


       Thanks!!!!!!!!!




More information about the Python-list mailing list