PyImagingPhoto
Hal Knight
knight@cpi.com
Wed Nov 20 01:30:42 GMT 2024
I get the following error in python run from a cygwin xterm window:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/PIL/ImageTk.py", line 176, in
paste
tk.call("PyImagingPhoto", self.__photo, block.id)
_tkinter.TclError: invalid command name "PyImagingPhoto"
I just installed the following:
python38 3.8.16-1
python38-imaging-tk 8.1.2-1
python38-matplotlib 3.5.1-1
I get the same error that was discussed earlier here:
https://github.com/python-pillow/Pillow/issues/5795
There, the following python code was said to cause the error:
import tkinter
from PIL import Image, ImageTk
image = Image.new('RGB', (100, 100))
tk = tkinter.Tk()
canvas = tkinter.Canvas(tk)
canvas.pack()
photoimage = ImageTk.PhotoImage(image)
I get the same error from this. The above #5795 page seems to say that
the problem was fixed here:
https://github.com/python-pillow/Pillow/pull/5807
I don't see how the above #5807 link helps me, however.
I am running python from an XTerm window obtained using startxwin.
It appears that something that was fixed in the past (i.e., the error
reported at the above 5795 URL) is broken again. Could someone check to
see whether they get the above error? Would it help to update other
cygwin packages besides the ones listed above? Most of my cygwin
packages are from late 2021.
Thanks.
More information about the Cygwin
mailing list