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

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AL06Ffo3837957
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 4AL06Ffo3837957
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=HoZtQIhx
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4494A3858415
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1732147573;
bh=Wh9RQiLu+9mSqdgXnJCWsu+lGUBqF/i+gfutd0f0tEo=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=HoZtQIhxvP+1mLk+BKu5Y38I/19hjyjcIdfBTbeQTCFmHBEKjotaaa1HscQTGazZI
v3OE5X8CwA/UWaEtzrodiPjRobS18JZrhaad7HvfZEC6ffVipXR71oDpEctbj6s4so
u/z7KYXYWxKLff4GOKXOrCoRHYUE6iALsX43Sw5s=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B782A3858D26
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B782A3858D26
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732147545; cv=none;
b=F2T0NbyPunS80yab2AgG6FX6ZpaOje20Gw/2X1CZgFCUSpCEejEzduCs3NbTmWWf0AEgb0eg6AQxC5a/YQ9o8jsKA38y1dZrdFhwN871bY3On+urLKCncIkadYBpjOHXPo++/YelqqMsJ75LUyAjgmv+FG+2/AkVflK5bTrRMh8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1732147545; c=relaxed/simple;
bh=G0W1+qlCYj3BES3fDzyCAusIkOHJKNOc5r41gAsjq2M=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To;
b=NeiL+KZlCntU1PzTCCVCLDotk6likPeECQMMqat5vVk+al4ZaxMePttBsA0TtSquXZwNFv3Yv8ADOJyU7OI7KWktf6HwOHF9lxHfVl+WLNBWAccRCKn6FG99XKu4uxVrwMaJWq9IYU9kvFsTpoWJVgS/rNYra65DoNxvL1RX9kI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B782A3858D26
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1732147545; x=1732752345;
h=content-transfer-encoding:in-reply-to:content-language:references
:to:from:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=NiNzX1j4oGcaqWDuuWptBy5BNzmAnrcoZkQ+s2pw6FI=;
b=SEBytMxjNx0tZqHmYnolq4nvbO3acAAgnaa3TLrazFU5RiHD8Oppxz0XOIFQlQJGLu
u0apMhMdSjzkLeS8E6B0xvYyDcKdwtWk4S0NBSTnOi6D2ZB0Ml2sPr7E6gMhURysNRMC
HvFJb/CQSpvkTJ+FZ9ExxU7kz1ZX7TdZ412BpRPLAdZOSBVVn4HbTvL3tITP8sddPE/w
2UzNVyJG21C/720J0lkaI+cDVKkSWEh3awaG8VrGIeg+TyG3jS4Dil0bMRg9WLwxgF/2
wWPfVkDSwaXekyPKDOTCRORxwYuJZPrWf/Id5Pe5j0LCEs7ZAF5t6vSSH0V/oDJhdx/R
q2WQ==
X-Gm-Message-State: AOJu0YzvYAX5qoQ0uiL4ZRMp5/PmlyBThmaIjJFz+WcxkG8E7TFW3MJf
/RlhHJnIjlB+qE3EIKJHfnTo7D1PltTbyEro9IdYbVeY88Eyb4Y0IJEsSXzEbMjnYG4sTOWvdw9
8
X-Google-Smtp-Source: AGHT+IFSURxwaDHQRANYFwUTVspXa41Q6JXxVU+ZdFIZIbxfn2jIGW5PYPzQuFljUjvp0Zw3UeEcMQ==
X-Received: by 2002:a05:620a:4048:b0:7af:ceed:1a38 with SMTP id
af79cd13be357-7b42ee856c7mr408403985a.39.1732147544665;
Wed, 20 Nov 2024 16:05:44 -0800 (PST)
Message-ID: <dfc161e6-ad0b-4466-8d73-deecd5f96bf4@cpi.com>
Date: Wed, 20 Nov 2024 19:05:42 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: PyImagingPhoto
To: cygwin AT cygwin DOT com
References: <2aa86a78-586d-4358-9197-44f06c6c80e6 AT cpi DOT com>
In-Reply-To: <2aa86a78-586d-4358-9197-44f06c6c80e6@cpi.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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin 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 4AL06Ffo3837957

Here is an update. At the following link, it says that the problem was 
fixed in Pillow version 9.0.0.dev0:
https://github.com/friedrichromstedt/bughunting-02/tree/v2021-11-05_2?tab=readme-ov-file#proposal-of-a-fix-from-upstream

My Pillow version is 8.4.0. I tried to upgrade to more recent versions 
of Pillow using pip, but it bombed.

Perhaps the problem is that cygwin's python tkinter package is using 
Pillow 8.4.0. I don't know how to upgrade it.

What I am really trying to do is to use the matplotlib plotting 
capability in python.

The following generates the error:

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])

I am not going to be able to use python through cygwin if this doesn't 
get solved.

As the URLs show, someone fixed it, but I don't know how to get the fix.

On 11/19/2024 8:30 PM, Hal Knight wrote:
> 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