Make Stand Alone W32 Installer Crash with tk
Gordon McMillan
gmcm at hypernet.com
Fri Oct 8 08:32:40 EDT 1999
Gordon Williams wrote,
>
> I have been trying to get Gordon McMillan's and Thomas Heller's
> win32 installer to work properly to make a stand alone .exe which
> uses tk.
> During making the stand alone with builder.py the following
> occurs: Traceback (innermost last):
...
> File "E:\Program
> Files\Python\Installer_b_03b\install\create\Builder.py",
> line 105, in buildTCLTKsupport
> tcllib = os.environ['TCL_LIBRARY']
That's the fallback - tcl/tk supports using environment
variables for non-standard installations.
> The Builder.log shows:
> <snip>
...
> found tcl80.dll
> lib not found: tcl80.dll dependency of found tk80.dll
> lib not found: tk80.dll dependency of found python15.dll
> lib not found: python15.dll dependency of found MSVCRT.dll
That says that these dlls are not on your PATH. I'm afraid I
don't emulate the entire search path for dlls; it's different
between NT & Win9x. To make matters worse, it appears that
one of the Win9xen has a case-preserving environment, and
some of the variables needed to determine where your system
directory is have changed names between versions.
The first step is to find the dlls, which means adding their
directory to your PATH.
Next comes finding the tcl and tk libs. If they're not ../lib/tclxx
and ../lib/tkxx relative to where the tclxx.dll is, then you'll need
to set TCL_LIBRARY and TK_LIBRARY in your environment
(pointing to those directories).
And, to nitpick, it didn't crash - it told you what went wrong
and it quit. Wait till you get the "non-sliceable object" crash!
(But hurry up, I've fixed that in the version I'm working on...).
- Gordon
More information about the Python-list
mailing list