Newbie question- Tkinter

blues-l at cyberus.ca blues-l at cyberus.ca
Mon May 15 15:25:03 EDT 2000


I'm having a real problem getting Tkinter to go on Win95.

Here is my "PATH":

C:\WINDOWS>path
PATH=Y:.;C:\MAGICSQL\SQLANY50\WIN;C:\PROGRA~1\MICROS~1\OFFICE;C:\NOVELL\CLIENT32

;D:\PYTHON;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BIN;C:\ETC;D:\PERL5\BIN;D:\TCL\BIN;D

:\TCL\LIB\TCL8.0;D:\TCL\LIB\TK8.0;D:\PGP;Z:.

Here is the contents of the Tcl\lib\tcl8.0 directory:

D:\Tcl\lib\tcl8.0>dir

 Volume in drive D has no label
 Volume Serial Number is 3F2D-11F8
 Directory of D:\Tcl\lib\tcl8.0

.              <DIR>        05-11-00 11:54a .
..             <DIR>        05-11-00 11:54a ..
OPT0     1     <DIR>        05-11-00 11:54a opt0.1
HTTP2    0     <DIR>        05-11-00 11:54a http2.0
SAFE     TCL        26,754  11-10-98  6:39p safe.tcl
HISTORY  TCL         8,989  09-14-98 11:40a history.tcl
HTTP1    0     <DIR>        05-11-00 11:54a http1.0
REG1     0     <DIR>        05-11-00 11:54a reg1.0
TCLINDEX             1,485  07-24-98  8:06a tclIndex
INIT     TCL        47,407  02-10-99  7:06p init.tcl
PARRAY   TCL           882  09-14-98 11:40a parray.tcl
WORD     TCL         4,470  09-14-98 11:40a word.tcl
         6 file(s)         89,987 bytes
         6 dir(s)     511,803,392 bytes free

This is what I end upwith when I test Tkinter after it loads in python:

>>> Tkinter._test()
"Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "D:\Python\Lib\lib-tk\Tkinter.py", line 1947, in _test
    root = Tk()
  File "D:\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:
    {d:\Tcl\lib\tcl8.0} {} ./lib/tcl8.0 C:/tcl8.0a2/library C:/library
This probably means that Tcl wasn't installed properly."

What's going on???? I don't know where "{} ./lib/tcl8.0
C:/tcl8.0a2/library C:/library" is coming from. Its not in autoexec.bat
- which does have :

set PYTHONPATH=.;d:\python\lib;d:\python\lib\tkinter
set TCL_LIBRARY=d:\Tcl\lib\tcl8.0
set TK_LIBRARY=d:\Tcl\lib\tk8.0

I have re-installed twice.




More information about the Python-list mailing list