py2exe, Inno Setup, and tkinter
Thomas Heller
theller at python.net
Mon Jan 12 16:27:28 EST 2004
Anthony Baxter <anthony at interlink.com.au> writes:
> 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?
Are you sure your installer reproduces the same directory structure as
the dist directory has?
I would expect the init.tcl in this directory:
c:/Program Files/shtoom/tcl/tcl8.4/init.tcl
Thomas
More information about the Python-list
mailing list