tk8.0 vs tk8.1 Re: Tkinter configuration on Digital Unix

Frederic Giacometti frederic.giacometti at arakne.com
Mon May 10 04:09:07 EDT 1999


I installed 8.0 instead, and it's working. Seems there's a problem with
8.1.

The test code that was causing the error I described  is the simplest:
-----------
from Tkinter import *

widget = Label( None, text='Hello')
widget.pack()
widget.mainloop()
------------

FG

Frederic Giacometti wrote:

> I'm trying to run Tkinter on Digital Unix 4.0e, and I'm getting the
> following problem:
>
> - when building _tkinter.so with the the tcl and tk libs provided with
> DU 4.0 (unknown version?): --> unsatisfied symbol Tcl_free
>
> - when build _tkinter.so with tck8.1 and tk8.1 libs, that compiled from
> the sources (tcl and tk tests are OK), I'm getting this:
> --------------------------
> Traceback (innermost last):
>   File "/home/fred/gui1.py", line 3, in ?
>     widget = Label( None, text='Hello')
>   File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 1412, in
> __init__
>     Widget.__init__(self, master, 'label', cnf, kw)
>   File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 1080, in
> __init__
>     BaseWidget._setup(self, master, cnf)
>   File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 1057, in
> _setup
>     _default_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.
>
> ----------------------
>
> Setting up the TCL_LIBRARY and TCLLIBPATH to /usr/local/lib/tcl8.1 does
> not alter to the course of events, of course...
>
> Any help ?  Is Tkinter validated with tcl8.1 ?
>
> Thanks,
>
> Frederic Giacometti,
> Arakné







More information about the Python-list mailing list