py2exe, Inno Setup, and tkinter

Anthony Baxter anthony at interlink.com.au
Sat Jan 10 22:09:09 EST 2004


I'm trying to use py2exe and Inno Setup to build an installer for 
shtoom, which uses tkinter.

If I take the py2exe generated directory, and run the executable from
there, it works fine.

If I add all the files in the directory to an installer (including 
the tk-8.4 and tcl-8.4 directories), it builds an installer fine.

But when I run the installer, and install to, say c:/Program Files/Shtoom,
running the program fails with 
Traceback (most recent call last):
  File "<string>", line 78, in ?
  File "<string>", line 75, in main
  File "<string>", line 66, in findUserInterface
  File "<string>", line 33, in tryTkInterface
  File "shtoom\ui\tkshtoom.pyc", line 23, in main
  File "shtoom\ui\tkui\main.pyc", line 11, in __init__
  File "Tkinter.pyc", line 1564, in __init__
_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
    {c:/Program Files/lib/tcl8.4} {c:/Program Files/lib/tcl8.4} c:/lib/tcl8.4 {c:/Program Files/library} c:/library c:/../tcl8.4.3/library

This probably means that Tcl wasn't installed properly.

The init.tcl is actually in C:/Program Files/Shtoom/tcl8.4. Why is
it not looking in the correct location? How can I fix this? 

Thanks,
Anthony




More information about the Python-list mailing list