I would guess that you're missing the underlying JPEG library
*sudo apt install libopenjp2-7* -tk On Mon, May 29, 2023 at 5:56 AM Lucas Heijst <[email protected]> wrote: > 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/simple > Requirement 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/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. > ----- > > The current version of Pillow meets the condition >= 8.2 however: > pip3 show Pillow > Name: Pillow > *Version: 9.5.0* > Summary: Python Imaging Library (Fork) > Home-page: https://python-pillow.org > Author: Jeffrey A. Clark (Alex) > Author-email: [email protected] > License: HPND > Location: /root/.local/lib/python3.7/site-packages > Requires: > Required-by: weewx > > So, what's wrong this time? > > -- > 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/67d36316-aef8-4230-9df4-da2bd9acfad8n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/67d36316-aef8-4230-9df4-da2bd9acfad8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEBGO%2BQ-_vtp9NE6tF65V382Ox4XUsMoO%2BXKWE-4Q-twyA%40mail.gmail.com.
