Tkinter problems

Rich Somerfield rich_somerfield at tertio.com
Thu Feb 22 10:00:52 EST 2001


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