delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/19/20:31:48

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AK1VmQt3400262
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4AK1VmQt3400262
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Q6FC1/ku
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F9843858D34
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1732066306;
bh=bhQdph1YXLhtUjcWrxCQe9Ky0BrhCzNhICFUIDr0LPA=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=Q6FC1/kuJdRAxdZPubAsT1WqmewW/OEnWtY+gSMiv7m1io1lRiKx+3x3Kj+bPTMSj
P3b8qB0d5k9O5tm/9c/uKMMh7riy9q/w91PX+4QzS1G2jw7C+bZfCzXqaESbeiz0mi
qhEF/rgaqqAJCRKtxN1n4R/pfT/nnInqPXvKiGpk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B5543858D34
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B5543858D34
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732066245; cv=none;
b=IyOBxhWygFVP2vxpreSJ93wOxpf2BSEUgDcVAirTlbJf/FimI+BUfm4peswtbpMOKYplZ/rhNRvwFefgmyzYcCDfwPi+z4mZNYpjNLfxb4b95w7Wy06ym7N+AbP3sYO6AOns5AE3ku0Nqv/Z7Hi697degoGfZ4OuocblJH4l3Ks=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1732066245; c=relaxed/simple;
bh=zb+fwW38Ue6pFKXpblLqeS/TQomfsY0afzWPu8yjS/4=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To;
b=pVkb9OofDeVmN0fDlQ2psuCn0N0J30M5YhF06sjx4QSZlZWq5YQUbza1+Ih7jaImdWwPTBqp7wQlOO6XAieWrHYzus/0GTnEy/DHj4edzPmrkssOGkNvgkBF15vbfNoQkGz5Lb+EE5XujfoS0XZzOdl/wp7I2LzML4p7vgrw2i8=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B5543858D34
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1732066244; x=1732671044;
h=content-transfer-encoding:content-language:to:subject:from
:user-agent:mime-version:date:message-id:x-gm-message-state:from:to
:cc:subject:date:message-id:reply-to;
bh=bfnDAUrXJu2+NDTVDbC0JKT2tTY+FKwQUBkDsM/RyPU=;
b=SRFwR06dW80v8HAi9J4BxBz9t1i9ZQ4XmhXY1IDUhebYHH17Ou11Hh6+V6Y8NuTY/d
sqTo9bRaPh9Yhh0Q+oI2C+pmhjk7ceyiKVoD51Bde7EwMWlKLWUeSXZNq7fe+BZ0o8Rw
4YW1YgoA9ueiz+H0GgJjFbHbwaU8cRLfQ85iLOP3v7esVfBa8PFdPZOHi4ZqvKlIHAGB
D61vGlRuKeDLcnyft3rkiw4iC/LEkx8Ok+YScyTJnwgwRnPVwJ1I9ILLnkWAoxpl/VnN
qDO8u/5vogj7ga3Klx5sp3FjdQvXOm8r70kvsGEGY6Iqbixx6xTGTmaRmUHQUceYOAkG
bitw==
X-Gm-Message-State: AOJu0YxisxVvPn7J7hZodWyVsxp6TtJdxpdNwiantX9J/opm8E7TnJ0U
yKf/AHYGfspEmkfSPDg0nDTtdRO3WDSub0y53sOQbId176CB21YeRBU/uM4tIotBEHeSY4nRlvM
L
X-Gm-Gg: ASbGnctYBtK5wOITzu8RKlwrxORYNM7eMD+k+uOM1yAuyn92O4rbnJhYb/cyHv5MpGY
Abh27PJV2XmgcobcisBwXldO603boJbgsxmrHvREOT68STSVhyiC+a5kfIpqXY2KM3OqCTaNiRJ
rn+ABoYd/XcxdMDfAhrURmap5b+bw72Txi2E69FLYO9k2XYYNJXAokoG34ZiNUEEl8nWQ5mpq9F
aRwU20EvsEWmmVDrjHdfWe2XYGHiCXslpDg8RRoocaT+ipCDEcutDrOSB/xexTJ5M8UU+/XhBUw
4s0jKC8eGRfahZoqZGzM89Ad
X-Google-Smtp-Source: AGHT+IH48v/Fyp9TuOdNCuIoftJZCWktlQkjZ5hj/uc2CD8o+5Xv8YwZXbH6I3ag96uSHQtkjSbb4A==
X-Received: by 2002:a05:6830:4707:b0:715:3f20:bd2c with SMTP id
46e09a7af769-71ab31744e8mr995513a34.10.1732066244033;
Tue, 19 Nov 2024 17:30:44 -0800 (PST)
Message-ID: <2aa86a78-586d-4358-9197-44f06c6c80e6@cpi.com>
Date: Tue, 19 Nov 2024 20:30:42 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: PyImagingPhoto
To: cygwin AT cygwin DOT com
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Hal Knight via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Hal Knight <knight AT cpi DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4AK1VmQt3400262

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.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019