Fwd: Re: homebrew 2.3 install on RedHat9 not playing nice with Tkinter

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Thu Aug 28 04:45:29 EDT 2003


----------  Forwarded Message  ----------

Subject: Re: homebrew 2.3 install on RedHat9 not playing nice with Tkinter
Date: Thursday 28 August 2003 9:20 am
From: "U. N. Owen" <electricity at uymail.com>
To: Martin Franklin <mfranklin1 at gatwick.westerngeco.slb.com>

I had also some problems with 2.3 on a debian,
with an 2.1 initially installed. If I remember
well, you must add the path to tk libs to
yous LD_LIBRARY_PATH  (not LD_RUN_PATH ??? I don't
know this variable anyway). Since I am rather
paranoid with paths I have lots of environ. variables
that point to all libs and progs in my system,
and I put all that stuff in PATH, LD_LIBRARY_PATH,
C_INCLUDE_PATH and MANPATH... I modify PYTHONPATH too.

Then you'll probably
have to rerun configure then make, because
the configure script looks for installed
libs (and tk !). I think it should work on
a Redhat 9. I have also installed Python on a
Redhat 8 some day, and I had many problems
with libraries not installed, but if you have
already Python 2.2, you won't have this problem.

Good luck !



----- Original Message -----
From: Martin Franklin <mfranklin1 at gatwick.westerngeco.slb.com>
Date: Thu, 28 Aug 2003 08:42:51 +0100
To: python-list at python.org
Subject: Re: homebrew 2.3 install on RedHat9 not playing nice with Tkinter

Re: On Wednesday 27 August 2003 9:12 pm, Rob Andrews wrote:
Re: > I'm on a Red Hat 9 system, which has Python 2.2.2 installed, and I
Re: > installed 2.3 separately into /home/rob/Python-2.3/ (creating the
 symbolic Re: > link "py23" to point to my 2.3 installation). Now I'm trying
 to work out Re: > the kinks in the process.
Re: >
Re: > Unable to run Idle using 2.3 the way I've got things set up, I created
 a Re: > super simple Tkinter test program that just pops up a Label widget.
 I Re: > pasted below an example of how the RH-provided 2.2 runs the script
 without Re: > incident, but running the script with 2.3 produces a
 traceback. If someone Re: > can help me see the error of my ways, I'll be
 most appreciative. Re: >
Re: > [Wed Aug 27][03:01 PM] ~/Python-2.3/test $ python -V
Re: > Python 2.2.2
Re: > [Wed Aug 27][03:04 PM] ~/Python-2.3/test $ py23 -V
Re: > Python 2.3
Re: > [Wed Aug 27][03:01 PM] ~/Python-2.3/test $ py23 test2.py
Re: > Traceback (most recent call last):
Re: >   File "test2.py", line 1, in ?
Re: >     from Tkinter import Label
Re: >   File "/home/rob/Python-2.3/Lib/lib-tk/Tkinter.py", line 38, in ?
Re: >     import _tkinter # If this fails your Python may not be configured
 for Re: > Tk ImportError: No module named _tkinter
Re: > [Wed Aug 27][03:01 PM] ~/Python-2.3/test $ python test2.py
Re: >
Re: > -Rob
Re: > (mediocre with Python, incompetent with linux)
Re:
Re: Rob,
Re:
Re: I just finished building python 2.3 on my redhat 9 laptop...  the first
 time I Re: did the make it failed (near the end) because it couldn't find
 the Tk/Tcl Re: libs.
Re:
Re:  On my system they are in /usr/local/lib (because I built them myself)
Re: on your's I guess they would be in /usr/lib.  So to fix the build I set
Re: LD_RUN_PATH to /usr/local/lib and them ran make again.
Re:
Re:
Re: HTH
Re: Martin
Re:
Re:
Re:
Re:
Re:
Re:
Re: --
Re: http://mail.python.org/mailman/listinfo/python-list

--
_______________________________________________
Get your free email from http://www.uymail.com

Powered by Outblaze

-------------------------------------------------------






More information about the Python-list mailing list