[HELP] TKinter could not run in Python!

Mark Wu wuhy at tcts.seed.net.tw
Fri Nov 12 23:58:54 CET 1999


Dear Sir:

    This is my first time to use Python, I tried to active the Tkinter, but
the interpreter always tell me:

error message:
----------------------------------------------------------------------------
--------------------

  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:\progra~1\tcl\lib\tcl8.1} {} ./lib/tcl8.0 D:/Python/tcl8.0/library
D:/Pyt
hon/Tools/library

d:/progra~1/tcl/lib/tcl8.1/init.tcl: version conflict for package "Tcl":
have 8.
0, need 8.1
version conflict for package "Tcl": have 8.0, need 8.1
    while executing
"package require -exact Tcl 8.1"
    (file "d:/progra~1/tcl/lib/tcl8.1/init.tcl" line 19)
    invoked from within
"source d:/progra~1/tcl/lib/tcl8.1/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.
----------------------------------------------------------------------------
--------------------

My system is window NT, with TCL/TK 8.1 (already installled before install
python)...

Any suggestion and help is very appreciate :)

Best Regards, Mark






More information about the Python-list mailing list