need help getting tk to work with python
Eide
nickliz at t-online.de
Wed Dec 29 05:03:00 EST 1999
I too have been having this problem. Tk once worked, but does no longer.
I run W98 with python at C:\program files\python
and tcl at C:\program files\tcl
I tried the autoexec.bat fix as suggested at python.org to no avail. Here
is what I get when trying the Tkinter._test()
--------------------------------------------------
Traceback (innermost last):
File "<stdin>", line1, in ?
File "C:\PROGRA~1\PYTHON\LIB\LIB-TK\Tkinter.py", line 1947, in _test
root = Tk()
File "C:\PROGRA~1\PYTHON\LIB\LIB-TK\Tkinter.py", line 886, in __init__
self.tk = _tkinter.create(screenName, baseName, className)
TclError: Can't find a usable init.tcl in the following directories:
{} ./lib/tcl8.0 C:/tcl8.0/library {C:/Program Files/library}
This probably means that Tcl wasn't installed properly.
--------------------------------------------------
My autoexec.bat reads:
PATH
C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1PYTHON;C:\PROGRA~1\PYTHON\LIB;C:\PR
OGRA~\TCL\BIN
and I have tried every possible combination of "..\tcl\lib\" or
"..\tcl\lib\tcl8.0" etc and again, to no avail. I also uninstalled it all,
cleaned my registry and reinstalled it. I have no clue at this point.
Please advise.
Nick
More information about the Python-list
mailing list