Tkinter installation in Python-1.6b1

Fredrik Lundh effbot at telia.com
Thu Sep 28 17:42:00 EDT 2000


Fred Clare wrote:
> I installed Python-1.6b1

you really want Python 2.0b2 (www.pythonlabs.com).

> and then, as per the instructions
> on www.python.org, in order to complete installation of
> Tkinter, I went to http://dev.scriptics.com/ and
> downloaded Tcl/Tk.  The only version available on that 
> page is Tcl/Tk 8.3.2 .

and 8.4, of course.  and you can find older versions
via Software => Tcl/Tk Core:
http://dev.scriptics.com/resource/software/tcltk/

> After installing Tcl/Tk 8.3.2, I imported Tkinter into
> a python execution (which went fine), but when I tried
> executing Tkinter functions, I got from python:
> 
>   RuntimeError: tk.h version (8.2) doesn't match libtk.a version (8.3)
> 
> Any suggestions as to the best way to resolve this would
> be appreciated?

you have an old Tk installation somewhere on your box, and
that the compiler picked up the wrong header files when you
built Tkinter.

to fix this, check your Modules/Setup file, and rebuild _tkinter.

</F>




More information about the Python-list mailing list