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

Michele Simionato mis6 at pitt.edu
Thu Jan 2 10:15:12 EST 2003


support @ internetdiscovery.com (Mike Clarkson) wrote in message news:<3e133101.1597569 at news.look.ca>...
> On 12 Dec 2002 09:33:58 -0800, mis6 at pitt.edu (Michele Simionato)
> wrote:
> 
> >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 
> .../lib/python2.2:.../libpython2.2/lib-tk:.../libpython2.2/lib-dynload
> etc.
> 
> 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,
> 
> Mike.

You may want to look at the thread "Tix/Tk Module frustrations HELP!"
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=2259b0e2.0208221115.244b6744%40posting.google.com&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3Dsimionato%2Btix%26btnG%3DGoogle%2BSearch%26meta%3Dgroup%253Dcomp.lang.python.*

You will see how many people run on this trouble and some (partial)
solution.
I use bash, not csh and tixwish works properly, I checked the example
in the standard distribution. Tix was preinstalled in my system, I did
not compile
from sources. The preinstalled Python (version 2.2) works well with
Tix,
but if I install 2.2.1 or 2.2.2 from the binary rpm's (or even
compiling
by source) Tix doesn't work.




More information about the Python-list mailing list