[Image-SIG] TclError: invalid command name "PyImagingPhoto"

Mark Zimmerman mzimmer@hacstx.com
Thu, 4 Mar 1999 14:35:11 -0700


Greetings:

I just downloaded and compiled Imaging-1.0b1 and I am unable to run the
sample scripts. The full text of the error is:

bach$ python Scripts/painter.py ~/loop/19990631930.jpeg
Traceback (innermost last):
  File "Scripts/painter.py", line 70, in ?
    PaintCanvas(root, im).pack()
  File "Scripts/painter.py", line 29, in __init__
    tile = ImageTk.PhotoImage(image.crop(box))
  File "./PIL/ImageTk.py", line 83, in __init__
    self.paste(image)
  File "./PIL/ImageTk.py", line 113, in paste
    self.__photo.tk.call("PyImagingPhoto", self.__photo, block.id)
TclError: invalid command name "PyImagingPhoto"

I verified, based on access time, that _tkinter.so was found:

bach$ ls -slut
total 4940
   2 drwxr-xr-x   2 root     other       1024 Mar  4 13:59 ./
3040 -r-xr-xr-x   1 root     other    1542396 Mar  4 13:59 _tkinter.so*
 100 -r-xr-xr-x   1 root     other      51172 Mar  4 13:59 arraymodule.so*
  66 -r-xr-xr-x   1 root     other      33520 Mar  4 13:59 operator.so*
  98 -r-xr-xr-x   1 root     other      49292 Mar  4 13:59 stropmodule.so*
  18 drwxrwxr-x   9 root     other       9216 Mar  4 13:58 ../
 272 -r-xr-xr-x   1 root     other     126100 Mar  4 13:56 cPickle.so*
 224 -r-xr-xr-x   1 root     other     101380 Mar  4 13:56 zlibmodule.so*
.
.
.

Also, _tkinter.so does contain PyImagingPhoto:

bach$ nm _tkinter.so | grep PyImagingPhoto
[94]    |    199252|     692|FUNC |LOCL |0    |8      |PyImagingPhoto


Has anyone else run into this problem?

--
Mark Zimmerman
Raytheon ITSS Corporation
mzimmer@hacstx.com