newbie question on python 2.4 and tkinter
Raymond L. Buvel
levub137 at wi.rr.com
Sat Feb 19 08:07:06 EST 2005
David Joyner wrote:
> Hi:
> I'm trying to compile python 2.4 with tkinter.
> (I'm trying to write a gui interface which
> calls a program called GAP - I'm hoping to use
> subprocess, a python 2.4 module, since I was getting
> deadlocks using popen).
>
> The instructions at the python web site said basically
> to edit the /Modules/Setup file and recompile.
> The edits consist of determining with location of various
> Tcl/Tk libraries, header files, etc. I was wondering if
> anyone could help out with how to determine these.
> I have a suse 9.1 box and a new debian laptop, both of which
> I would like to configure with python 2.4 and tkinter.
> - David Joyner
The problem is most likely missing header files for the Tcl/Tk
libraries. Most Linux distributions (including SuSE) package the
required files separately from the libraries. In Yast, look for
packages with the same name and a -dev suffix. Once you have installed
these, tkinter will be automatically built without any need to edit
/Modules/Setup.
If you are running Debian testing or unstable, you just need to install
the python2.4 and python2.4-tk modules. If you need to compile
extension modules, you will also need python2.4-dev.
Hope this helps.
Ray Buvel
More information about the Python-list
mailing list