trouble with Tkinter installation

Frederic LAURENT frederic.laurent at sxb.bsf.alcatel.fr
Fri Jun 23 02:42:54 EDT 2000


Hi all,

I compiled Python 1.5.2 with the tcl/tk module and when I start the
python interpreter
to test my installation I'have the following problem :

Python 1.5.2 (#2, Jun 22 2000, 10:49:11)  [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _tkinter
>>> import Tkinter
>>> Tkinter._test()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File
"/users/public_w3p/share/python/Python-1.5.2/lib/python1.5/lib-tk/Tkinter.py",
line 1947, in _test
    root = Tk()
  File
"/users/public_w3p/share/python/Python-1.5.2/lib/python1.5/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: 
    



This probably means that Tcl wasn't installed properly.

>>> 


Where is the location in which the interpreter tries to find init.tcl
The list is empty.
In fact, I had used tkinter before recompiling and installing a new
python version,
and all was fine !

(I followed the tests defined here :
http://www.pythonlabs.com/pub/www.python.org/topics/tkinter/trouble.html#checking
)


Any idea ?

Cheers,

-- 
Frédéric LAURENT
mailto:frederic.laurent at sxb.bsf.alcatel.fr
Tél : (33) 03 88 55 70 00  poste 57228



More information about the Python-list mailing list