Tkinter on IRIX and Linux
Heiko Wundram
heikowu at ceosg.de
Tue Aug 21 04:52:53 EDT 2001
On Tuesday 21 August 2001 06:39, you wrote:
> I compiled Python 2.0 on IRIX and Linux. Neither of them supports
> tkinter. When I import Tkinter:
>
> [error message removed...]
>
What you are seeing is that when you compiled Python 2.0 you didn't have Tk
installed in a place where it is found (that means in --include-dir) by the
module when that one was compiled by make.
What you have to do is:
1. check whether you have Tk installed (by trying to run 'wish' as
superuser). If that doesn't work (gives file not found), get both Tcl and Tk
from http://sourceforge.net/project/showfiles.php?group_id=10894 and compile
them without threads support enabled! This is important, as Tk crashes often
under Linux when thread-support is used. Install Tcl and Tk in /usr (by using
--prefix=/usr), so that you won't have to specify an additional --include-dir
for Python.
2. Recompile Python, but remove /usr/lib/python2.0 (or
/usr/local/lib/python2.0 or whatever) before by rm -r. And then do a make
install, and you're off. :)
Hope this helps!
--
Yours sincerely,
Heiko Wundram
More information about the Python-list
mailing list