Tkinter problems

Dave LeBlanc whisper at oz.net
Fri Feb 23 14:09:19 EST 2001


Oh, it's just a guess, but i'd say the version of tkinter you're
trying to use is incompatible with the version of python you're trying
to use.

Possible causes:
	Python 2.0 is finding an older version of tkinter (perhaps
associated with a Python 1.5.2 or 1.6.0 install?).

	You downloaded tkinter and python at different times.

	You recompiled Python but not tkinter.

My suggestion would be to get a standard python 2.0 distro with
tkinter included (does it actually come any other way?) and build and
install the whole mass at once.

BTW, Tcl 8.0.4 is _hopelessly_ out of date, having been superceded by
Tcl 8.0.5 long ago (not to mention many further versions not used with
the Python 1.5.2 version of tkinter).  AFAIK from reading, tkinter for
Python 2.0 now uses Tcl 8.3.2 which, as always, is available through
www.scriptics.com at sourceforge.

HTH

On Thu, 22 Feb 2001 15:00:52 -0000, "Rich Somerfield"
<rich_somerfield at tertio.com> wrote:

>I get the following exception when trying to load a jpeg image.
>
>My system is Linux SuSE6.4 (however I have downloaded and recompiled Python
>and PIL - the original versions had the same problem, i thought it would go
>away if i upgraded, it didnt.) Python 2.0 / Pil 1.1.1 / Tk 8.0.4
>
>I have been using my code successfully using the py15 installation from
>PythonWare.
>
>BTW, what is the problem with my Python interpreter?? The Warning msg about
>the API version.
>
>
>Regards
>Rich
>
>
>rsomerfield at FullCycle:~/SGE/sge > python sge_2.0.1.py
>WARNING: Python C API version mismatch for module _tkinter:
>  This Python has API version 1009, module _tkinter has version 1007.
>WARNING: Python C API version mismatch for module _imaging:
>  This Python has API version 1009, module _imaging has version 1007.
>Traceback (most recent call last):
>  File "sge_2.0.1.py", line 4585, in ?
>    sge = SimpleGameEngine()
>  File "sge_2.0.1.py", line 141, in __init__
>    exec("self.main_function()")
>  File "<string>", line 1, in ?
>  File "sge_2.0.1.py", line 123, in main_function
>    self.TG.produce_board_locations()
>  File "sge_2.0.1.py", line 1807, in produce_board_locations
>    self.vars.boardlocationimages[i] = self.DI.process_individual_image(i,
>self.vars.theimageblank1)
>  File "sge_2.0.1.py", line 1870, in process_individual_image
>    theimagetemp = ImageTk.PhotoImage(theimagetemp)
>  File "/usr/lib/python/site-packages/PIL/ImageTk.py", line 83, in __init__
>    self.paste(image)
>  File "/usr/lib/python/site-packages/PIL/ImageTk.py", line 113, in paste
>    self.__photo.tk.call("PyImagingPhoto", self.__photo, block.id)
>TclError: invalid command name "PyImagingPhoto"
>rsomerfield at FullCycle:~/SGE/sge >
>
>




More information about the Python-list mailing list