Mailing List Archive

Tkinter problem in Python 1.5.2 on Solaris 2.5.1
Hello,

I have the following problem with Tkinter in Python 1.5.2.
Python 1.5.2 (#6, Jun 4 1999, 09:42:04) [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 "./Lib/lib-tk/Tkinter.py", line 1947, in _test
root = Tk()
File "./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:




This probably means that Tcl wasn't installed properly.

Note the whitespace between the two last test lines. The installation
is as follows:
Tcl/Tk 8.1 with --enable-shared so we have libraries
/usr/local/lib/libtcl8.1.so and /usr/local/lib/libtk8.1.so
Python 1.5.2 without any configure options but using *shared*
in the Modules/Setup (and some extra modules, including Tk).

Setting TCL_LIBRARY and TK_LIBRARY doesn't change anything.

Any suggestions ?

Kind regards,
Jan
--
===================================================================
Jan Zegers === Easics ===
General Manager === VHDL-based ASIC design services ===
Tel: +32-16-395 601 ===================================
Fax: +32-16-395 619 Interleuvenlaan 86, B-3001 Leuven, BELGIUM
mailto:janz@easics.be http://www.easics.com
Tkinter problem in Python 1.5.2 on Solaris 2.5.1 [ In reply to ]
Gordon McMillan wrote:
>
> Jan Zegers wrote:
> >
> > I have the following problem with Tkinter in Python 1.5.2.
> /snip/
> > This probably means that Tcl wasn't installed properly.
> >
> > Note the whitespace between the two last test lines. The
> > installation is as follows:
> > Tcl/Tk 8.1 with --enable-shared so we have libraries
> > /usr/local/lib/libtcl8.1.so and /usr/local/lib/libtk8.1.so
>
> Tcl / Tk 8.0 is still the official version for Python.
>
> On Jun 1, Dieter Maurer posted patches to use 8.1 ("Tkinter-patch for
> use with Tk8.1...").
>
> - Gordon
Thank you. I applied the patches and it worked!
Kind regards,
Jan
--
===================================================================
Jan Zegers === Easics ===
General Manager === VHDL-based ASIC design services ===
Tel: +32-16-395 601 ===================================
Fax: +32-16-395 619 Interleuvenlaan 86, B-3001 Leuven, BELGIUM
mailto:janz@easics.be http://www.easics.com
Tkinter problem in Python 1.5.2 on Solaris 2.5.1 [ In reply to ]
Jan Zegers wrote:
>
> I have the following problem with Tkinter in Python 1.5.2.
/snip/
> This probably means that Tcl wasn't installed properly.
>
> Note the whitespace between the two last test lines. The
> installation is as follows:
> Tcl/Tk 8.1 with --enable-shared so we have libraries
> /usr/local/lib/libtcl8.1.so and /usr/local/lib/libtk8.1.so

Tcl / Tk 8.0 is still the official version for Python.

On Jun 1, Dieter Maurer posted patches to use 8.1 ("Tkinter-patch for
use with Tk8.1...").

- Gordon
Tkinter problem in Python 1.5.2 on Solaris 2.5.1 [ In reply to ]
I seem to be having the same problem. Where and how do I find these
patches??

Thanks Thanks



Jan Zegers <janz@easics.be> wrote in message
news:3757CE4B.B8B70983@easics.be...
> Gordon McMillan wrote:
> >
> > Jan Zegers wrote:
> > >
> > > I have the following problem with Tkinter in Python 1.5.2.
> > /snip/
> > > This probably means that Tcl wasn't installed properly.
> > >
> > > Note the whitespace between the two last test lines. The
> > > installation is as follows:
> > > Tcl/Tk 8.1 with --enable-shared so we have libraries
> > > /usr/local/lib/libtcl8.1.so and /usr/local/lib/libtk8.1.so
> >
> > Tcl / Tk 8.0 is still the official version for Python.
> >
> > On Jun 1, Dieter Maurer posted patches to use 8.1 ("Tkinter-patch for
> > use with Tk8.1...").
> >
> > - Gordon
> Thank you. I applied the patches and it worked!
> Kind regards,
> Jan
> --
> ===================================================================
> Jan Zegers === Easics ===
> General Manager === VHDL-based ASIC design services ===
> Tel: +32-16-395 601 ===================================
> Fax: +32-16-395 619 Interleuvenlaan 86, B-3001 Leuven, BELGIUM
> mailto:janz@easics.be http://www.easics.com
Tkinter problem in Python 1.5.2 on Solaris 2.5.1 [ In reply to ]
Gordon Vinther wrote:

> I seem to be having the same problem. Where and how do I find these
> patches??

> > Gordon McMillan wrote:
> > >
> > > Jan Zegers wrote:
> > > >
> > > > I have the following problem with Tkinter in Python 1.5.2.
> > > /snip/
> > > > This probably means that Tcl wasn't installed properly.
> > > >
> > > > Note the whitespace between the two last test lines. The
> > > > installation is as follows:
> > > > Tcl/Tk 8.1 with --enable-shared so we have libraries
> > > > /usr/local/lib/libtcl8.1.so and /usr/local/lib/libtk8.1.so
> > >
> > > Tcl / Tk 8.0 is still the official version for Python.
> > >
> > > On Jun 1, Dieter Maurer posted patches to use 8.1 ("Tkinter-patch for
> > > use with Tk8.1...").
> > >
> > > - Gordon
> > Thank you. I applied the patches and it worked!
> > Kind regards,
> > Jan

You go to www.python.org.

You click the "Search" link.

You use "Search the Python Newsgroups" and type in the article title
I quoted.

You click the link for the article written by Dieter Maurer.

Now you never need ask this question again.

but-give-a-man-a-fishing-pole-and
-he'll-never-get-any-work-done-again-ly y'rs

- Gordon