Problems installing Python 2.3 with Tkinter linked to Tcl/Tk 8.4

From: Adelein and Jeremy (adeleinandjeremy_at_yahoo.com)
Date: 04/29/04


Date: Wed, 28 Apr 2004 17:57:31 -0700 (PDT)
To: python-list@python.org

I have just installed Python 2.3.3, after first installing Tcl/Tk
8.4.6.

After successful installation of Tcl/Tk (including passing configure
the '--enable-shared' option), and testing both Tcl and Tk, I
unpacked Python2.3 and began a frustrating installation. After
standard configuration, make told me it was renaming module _tkinter
because the module was not found (sorry I am omitting the exact
warning message) - I don't understand that completely, but that was
what it said. So I then edited the Setup file in Python2.3/Modules/
so that it would 1) include _tkinter, 2) look for tkinter in
/usr/local/lib, 3) look for tk.h in /usr/local/include, 4) find X11,
and 5) look for libtk8.4 and libtcl8.4.

So I went through make and it told me that libtk8.4.so could not be
opened. The file existed with read and execute privileges for all in
/usr/local/lib, so I was perplexed.

I then found a single helpful explanation (among many completely
misleading ones) at
http://www.talkaboutprogramming.com/group/comp.lang.python/messages/290343.html
(which is for Fedora, but works well with RH 8.0.

However, upon having written the script that it suggests, and
deleting the /usr/local/bin/python, I realized that idle was broken.
Also, scripts could not be executed with the sh-bang line at top if
written for Python 2.3. So I moved python2.3 over to python again,
and realized that idle still wouldn't work because Python will not
look for Tcl/Tk where it installs by default.

Is there a better solution than the one I followed? If not, is there
a plan for generalizing the Python Tkinter installation so that it
will look for Tcl/Tk instead of assuming that it knows where it is? I
found it messy enough having to deal with multiple Python
installations due to RedHat's reliance on old versions, and this is
simply a show-stopper when it comes to recommending Python to others.

I have to wonder if I am doing something very wrong, but I have no
idea where my mistake would be. If nothing else, others with this
problem may see this post and at least have a temporary fix.

- Jeremy

        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover



Relevant Pages

  • Re: install Python-2.4.4 from source (parallel to existing Python-2.6)
    ... I wrote a GUI, based on Python, TkInter and Pmw. ... It runs perfectly fine with Python 2.4 (providing, TkInter ... installation is quit different under UNIX based systems ...
    (comp.lang.python)
  • Re: ActiveState Python v2.5 doesnt come with Tkinter or Tk installed.
    ... Now I would like to take up Tkinter. ... I'm using Active State Python ... For MacOS X this should not happen because Tcl/Tk is already available. ... But the best Python for MacOS X is the binary installer from python.org ...
    (comp.lang.python)
  • Re: ActiveState Python v2.5 doesnt come with Tkinter or Tk installed.
    ... Now I would like to take up Tkinter. ... I'm using Active State Python ... For MacOS X this should not happen because Tcl/Tk is already available. ... But the best Python for MacOS X is the binary installer from python.org ...
    (comp.lang.python)
  • Re: Finding installed package files
    ... for making installation information more easily accessible? ... >> somewhere where more information about the key parts of the package ... >> As an example I installed the latest Python on Fedora 3. ... what one would expect is a form of help documentation much more integrated ...
    (alt.os.linux.redhat)
  • Re: Looking for help getting tkinter to work.
    ... Cannot get tkinter to work after compiling & installing Tcl/Tk. ... "Python build finished, but the necessary bits to build these modules ...
    (comp.lang.python)