Python & Tkinter problems...

Michael P. Reilly arcege at shore.net
Thu Jun 24 16:29:14 EDT 1999


alltube at netscape.net wrote:
: Hi there,

: I am trying to run Tkinter (tcl/tk 8.1 I compiled and installed it..)
: on Solaris 2.6.  Python version 1.5.2.  The tcl/tk seems to work
: fine, I was able to run a couple of demos, the TCL_LIBRARY is also set
: ok, my environment stuff:

: /usr/local/lib/tcl8.1 $ls
: auto.tcl      http2.0       msgcat1.0     safe.tcl
: encoding      init.tcl      opt0.4        tclAppInit.c
: history.tcl   ldAix         package.tcl   tclIndex
: http1.0       ldAout.tcl    parray.tcl    word.tcl
: /usr/local/lib/tcl8.1 $echo $TCL_LIBRARY
: /usr/local/lib/tcl8.1
: /usr/local/lib/tcl8.1 $

: The error I get from Python is:

: /usr/local/lib/tcl8.1 $python
: Python 1.5.2 (#5, Jun 24 1999, 14:52:16)  [GCC 2.8.1] on sunos5
: Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
:>>> import Tkinter
:>>> Tkinter._test()
: Traceback (innermost last):
:   File "<stdin>", line 1, in ?
:   File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 1947, in _test
:     root = Tk()
:   File "/usr/local/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.

:>>>


: The init.tcl is in fact in /usr/local/lib/tcl8.1 and it appears to be
: ok, I have run a number of tk demo programs...

: Thanks for any help...

: Alex.
: Toronto

There are some incompatibilities to Tcl 8.1, which came out after Python
1.5.2.

Dieter Maurer published some patches to this newsgroup about a month ago.

The URL on DejaNews for that thread is:
  http://www.deja.com/viewthread.xp?search=thread&svcclass=dncurrent&ST=PS&group=comp.lang.python&recnum=%3cx7g14g9a37.fsf@lindm.dm%3e%231/1

  -Arcege





More information about the Python-list mailing list