Well, shoot. Now I remember why I required Pillow >=8.2. You get a
mysterious segfault with earlier versions. The problem was fixed in Pillow
8.2.

See https://github.com/python-pillow/Pillow/issues/3066

However, there is a workaround, provided no one is trying to use a font
that requires a vertical layout. I think we're safe there. v5.0.0a20 uses
the workaround.


On Tue, Feb 21, 2023 at 1:01 PM Vince Skahan <[email protected]> wrote:

> This one might be a pi oddity.   If you install the python3-willow dpkg,
> it will install a dpkg variant of Pillow 8.1.2 and the pip --user
> installation works ok.
>
> FWIW, this issue does not appear on vagrant/virtualbox debian-11 or
> fedora-37.
>
> On Tue, Feb 21, 2023 at 11:45 AM Tom Keffer <[email protected]> wrote:
>
>> One other comment. It's super easy to recreate the problem. No need to
>> install WeeWX. Just do
>>
>> *python3 -c "from PIL import Image"*
>>
>>
>>
>>
>> On Tue, Feb 21, 2023 at 11:42 AM Tom Keffer <[email protected]> wrote:
>>
>>> Same conclusions here. The mystery is why Pillow didn't install an
>>> appropriate version of libopenjp2.
>>>
>>> It seems like a fundamental problem, yet if I search the web I can only
>>> find solutions that are inappropriate or don't work. For example, one
>>> suggested removing PIL first, then installing Pillow, which I did. No
>>> relief.
>>>
>>> On Tue, Feb 21, 2023 at 11:38 AM Vince Skahan <[email protected]>
>>> wrote:
>>>
>>>> On a current RaspiOS both 'pip' and 'pip3' are installed by the
>>>> python3-pip dpkg according to "dpkg -S /usr/bin/pip3 /usr/bin/pip"
>>>>
>>>> I reflashed a SD to current RaspiOS and installed 5.0.0a18 via pip
>>>> --user and also recreated the issue.   Adding the libopenjp2-7 package
>>>> fixed it here too.
>>>>
>>>> FWIW, I had an old debian_version 11.2 pi3 SD card with Pillow 8.1 that
>>>> did work ok with the v5 software, but I previously had an old v4 setup.py
>>>> installation there.  My 'guess' is that old Pillow version was current at
>>>> that point in time many months ago so that's why it was there.  Regardless,
>>>> installing v5 on the ancient SD didn't upgrade Pillow from 8.x to 9.x if
>>>> that was what was supposed to happen.
>>>>
>>>> A clean RaspiOS and clean weewx os installs and runs ok, once that
>>>> libopenjp2-7 package is installed on a pi3.
>>>>
>>>> On Tuesday, February 21, 2023 at 11:03:03 AM UTC-8 Tom Keffer wrote:
>>>> On Tue, Feb 21, 2023 at 10:55 AM Lucas Heijst <[email protected]>
>>>> wrote:
>>>> Vince, I noticed on my system pip is not in directory site-packages
>>>>
>>>> How did you install pip? It does not come with bullseye. If you did
>>>> "sudo apt install python3-pip" it will go into
>>>> /usr/lib/python3/dist-packages, not /root/.local, nor /usr/local/lib.
>>>>
>>>> -tk
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "weewx-development" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-development/227ddb6e-657f-4839-80dd-7ac48724ef12n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-development/227ddb6e-657f-4839-80dd-7ac48724ef12n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>
> --
> -----  [email protected] ----
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEAJ6uBiCm_UK%3DPEQ1z9dq1NSXkPuG15Fcmfp3XkJZWDtg%40mail.gmail.com.

Reply via email to