On Wednesday 27 August 2003 9:12 pm, Rob Andrews wrote:
I'm on a Red Hat 9 system, which has Python 2.2.2 installed, and I
installed 2.3 separately into /home/rob/Python-2.3/ (creating the symbolic
link "py23" to point to my 2.3 installation). Now I'm trying to work out
the kinks in the process.

Unable to run Idle using 2.3 the way I've got things set up, I created a
super simple Tkinter test program that just pops up a Label widget. I
pasted below an example of how the RH-provided 2.2 runs the script without
incident, but running the script with 2.3 produces a traceback. If someone
can help me see the error of my ways, I'll be most appreciative.

[Wed Aug 27][03:01 PM] ~/Python-2.3/test $ python -V
Python 2.2.2
[Wed Aug 27][03:04 PM] ~/Python-2.3/test $ py23 -V
Python 2.3
[Wed Aug 27][03:01 PM] ~/Python-2.3/test $ py23 test2.py
Traceback (most recent call last):
File "test2.py", line 1, in ?
from Tkinter import Label
File "/home/rob/Python-2.3/Lib/lib-tk/Tkinter.py", line 38, in ?
import _tkinter # If this fails your Python may not be configured for
Tk ImportError: No module named _tkinter
[Wed Aug 27][03:01 PM] ~/Python-2.3/test $ python test2.py

(mediocre with Python, incompetent with linux)

I just finished building python 2.3 on my redhat 9 laptop... the first time I
did the make it failed (near the end) because it couldn't find the Tk/Tcl

On my system they are in /usr/local/lib (because I built them myself)
on your's I guess they would be in /usr/lib. So to fix the build I set
LD_RUN_PATH to /usr/local/lib and them ran make again.


Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 8 | next ›
Discussion Overview
grouppython-list @
postedAug 27, '03 at 8:12p
activeSep 2, '03 at 9:41a



site design / logo © 2022 Grokbase