Started with a fresh install of debian buster light on my rpi model 2
Followed by a fresh install of weewx via:
pip3 install weewx --user
/root/.local/bin/weectl station create --no-prompt
I got the following error:
Traceback (most recent call last):
File "/root/.local/lib/python3.7/site-packages/weewx/reportengine.py", line 179, in run
obj = weeutil.weeutil.get_object(generator)(
File "/root/.local/lib/python3.7/site-packages/weeutil/weeutil.py", line 1352, in get_object
mod = __import__(module)
File "/root/.local/lib/python3.7/site-packages/weewx/imagegenerator.py", line 14, in <module>
import weeplot.genplot
File "/root/.local/lib/python3.7/site-packages/weeplot/genplot.py", line 13, in <module>
from PIL import Image, ImageDraw, ImageFont
File "/root/.local/lib/python3.7/site-packages/PIL/Image.py", line 103, in <module>
from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
pip3 install weewx --upgrade reports:
Looking in indexes:
https://pypi.org/simple,
https://www.piwheels.org/simpleRequirement already up-to-date: weewx in /root/.local/lib/python3.7/site-packages (5.0.0b3)
Requirement already satisfied, skipping upgrade: configobj<6.0,>=5.0 in /root/.local/lib/python3.7/site-packages (from weewx) (5.0.8)
Requirement already satisfied, skipping upgrade:
Pillow>=5.2 in /root/.local/lib/python3.7/site-packages (from weewx) (9.5.0)
Requirement already satisfied, skipping upgrade: pyusb<2.0.0,>=1.0.2 in /root/.local/lib/python3.7/site-packages (from weewx) (1.2.1)
Requirement already satisfied, skipping upgrade: ephem<5.0,>=4.1 in /root/.local/lib/python3.7/site-packages (from weewx) (4.1.4)
Requirement already satisfied, skipping upgrade: six<2,>=1 in /usr/lib/python3/dist-packages (from weewx) (1.12.0)
Requirement already satisfied, skipping upgrade: pyserial<4.0,>=3.4 in /root/.local/lib/python3.7/site-packages (from weewx) (3.5)
Requirement already satisfied, skipping upgrade: PyMySQL[rsa]<2.0,>=1.0 in /root/.local/lib/python3.7/site-packages (from weewx) (1.0.3)
Requirement already satisfied, skipping upgrade: CT3<4.0,>=3.1 in /root/.local/lib/python3.7/site-packages (from weewx) (3.3.1)
Requirement already satisfied, skipping upgrade: cryptography; extra == "rsa" in /usr/lib/python3/dist-packages (from PyMySQL[rsa]<2.0,>=1.0->weewx) (2.6.1)
Tom,
on feb 21, 2023 you wrote:
-----
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/3066However, 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.
-----
The current version of Pillow meets the condition >= 8.2 however:
pip3 show Pillow
Name: Pillow
Version: 9.5.0Summary: Python Imaging Library (Fork)
Home-page:
https://python-pillow.orgAuthor: Jeffrey A. Clark (Alex)
Author-email:
acl...@aclark.netLicense: HPND
Location: /root/.local/lib/python3.7/site-packages
Requires:
Required-by: weewx
So, what's wrong this time?