Unresolved Problem with Tix-install (Tclerror :Couldn/t load file tix[version].so )

Mike Clarkson support at internetdiscovery.com
Wed Jan 1 19:55:52 CET 2003

On 12 Dec 2002 09:33:58 -0800, mis6 at pitt.edu (Michele Simionato)

>bachhx at mail.ru (Bach) wrote in message news:<34e4328e.0212120235.6efb02b4 at posting.google.com>...
>> Original message
>> I am trying to install Tix on a linux machine. I don't have access
>> privilege to write above my user directory.
>> There is already a python1.5 on the machine.
>> I installed  tcl8.3, tk8.3, tix8.1 and python2.2 with  --prefix =
>> /usr/people/erict/bin
>> It was 'succefull'
>> I included the following line in my .cshrc:
>> setenv PYTHONHOME /usr/people/erict/bin
>> setenv PYTHONPATH /usr/people/erict/bin/lib
>> setenv TIX_LIBRARY /usr/people/erict/bin/lib
>> setenv TCL_LIBRARY /usr/people/erict/bin/lib
>> setenv TK_LIBRARY /usr/people/erict/bin/lib
>> now here what I am getting:
>> erict_fairlop > python
>> Python 2.2.1 (#3, Apr 25 2002, 15:25:49)
>> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import Tix
>> >>> root = Tix.Tk()
>> /usr/people/erict/bin/lib/libtix8.1.8.3.so     ## print out that I had
>> to see what it was trying to load
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>>   File "/usr/people/erict/bin/lib/python2.2/lib-tk/Tix.py", line 213, in
>> __init__
>>     self.tk.eval('package require Tix')
>> TclError: couldn't load file "/usr/lib/libtix": /usr/lib/libtix.so:
>> undefined symbol: XLowerWindow
>> >>>
>> Any Idea
>> Thanks
>It seems everybody trying to use Tix on RedHat gets in this trouble.
>I never understood what is its origin and how to fix it. Nevertheless, I
>discovered that everything works fine if I use python 2.2 instead of 2.2.1 
>or 2.2.2 (only RedHat knows why).
>I hope somebody will be more helpful than me. Cheers,

Your .cshrc is wrong and may be leading you to pick up some
other libtix on the system (try a find / -name libtix\* to be sure).
At least the tcl part of the .cshrc should be
 setenv TIX_LIBRARY /usr/people/erict/bin/lib/tix8.1
 setenv TCL_LIBRARY /usr/people/erict/bin/lib/tcl8.3
 setenv TK_LIBRARY /usr/people/erict/bin/lib/tk8.3

and I suspect the PHYTHONPATH should be 

I don't know what the cause of this is - you never get this error
building Tix from sources (http://tix.souceforge.net/). It sounds
to me like the Tix and the Tk were linked against different X11
libraries, but I don't know why the version of Python would effect
this. Does the tixwish start Ok? Do the tixwish demos run Ok?

When you say "I installed  tcl8.3, tk8.3, tix8.1 and python2.2 "
do you mean that you built and installed from sources or from 
binary rpms? Do you have other binary tcltk rpms installed (rpm -qa)?

RedHat had legacy patches in their build of Tix that were unnecessary
and have now been removed for tix 8.1.4.  They have been very helpfull
in fixing their builds of Tix, so if this problem persists after
fixing the setenv, could I ask you both to open a RedHat bugzilla
report so we can get this identified and resolved, especially if you
think that "It seems everybody trying to use Tix on RedHat gets in
this trouble."

Happy New Year,


More information about the Python-list mailing list