Problem with Tk on Windows
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Mon Oct 27 22:21:31 EST 2003
On Mon, 27 Oct 2003 00:46:26 GMT, rumours say that
simon at uggs.demon.co.uk (Simon Foster) might have written:
>Hi all,
>
>Has anyone seen the follwoing message on the Windows platform
>when tring to use Tk?
>
>---
>
>>>> import Tkinter
>>>> root = Tkinter.Tk()
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "c:\python23\lib\lib-tk\Tkinter.py", line 1564, in __init__
> self.tk = _tkinter.create(screenName, baseName, className)
>_tkinter.TclError: Can't find a usable init.tcl in the following
>directories:
> c:/python23/lib/tcl8.4 c:/lib/tcl8.4 c:/library
Rhetorical: why is it searching in c:/python23/lib/tcl8.4 and not in
c:/python23/tcl/tcl8.4, where it should be?
Simon, please send the environment variables (import os; print
os.environ) you have, and search for all init.tcl files in your hard
drives for possible other installations. Also: which version of Python
did you install? Or did you build it your self?
Try to improvise in giving us more info, cause I can't think anything
else now :)
--
TZOTZIOY, I speak England very best,
Ils sont fous ces Redmontains! --Harddix
More information about the Python-list
mailing list