[Pythonmac-SIG] Tkinter strikes again

Christian Ebert blacktrash@gmx.net
Sat, 12 Jan 2002 11:33:27 +0100


Hi,

Jack Jansen at 0:50 on Saturday, January 12, 2002:

> Unfortunately if you *don't* install Tcl/Tk, you get the error message
> at a rather late stage: not when you're importing Tkinter but when you
> first try to use it. And the message is rather cryptic, something like
> "Cannot load init.tcl, maybe you need to install Tcl or set TCL_PATH".

Traceback (most recent call last):
  File "Christians PB HD:Applications (Mac OS 9):Scripting:Python 2.2:Scripts:tk_test.py", line 4, in ?
    tk = Tkinter.Tk()
  File "Christians PB HD:Applications (Mac OS 9):Scripting:Python 2.2:Lib:lib-tk:Tkinter.py", line 1487, in __init__
    self.tk = _tkinter.create(screenName, baseName, className)
TclError: can't find Init resource or a usable Init.tcl file
in the following directories:
    {Christians PB HD:Systemordner:Systemerweiterungen:Tool Command Language:tcl8.3}
 perhaps you need to install Tcl or set your 
TCL_LIBRARY environment variable?

Folder listing for

Systemerweiterungen:Tool Command Language:
	tcl8.3
	Tcl8.3.shlb
	Tclapplescript.shlb
	tk8.3
	Tk8.3.shlb

all alias. Should I replace some of these with copies of the
originals? Same as I did with PythonCore to make my applets
run after restart?

Or how do I set my TCL_LIBRARY environment variable?

Have a nice weekend.

Christian
-- 
I would prefer not to.
(Herman Melville, Bartleby)