For whatever reason, your copy of Pillow was compiled without freetype (that's what the "ft" stands for in _imagingft).
Try updating pip, then remove pillow, then reinstall. If that doesn't work, try installing the freetype library first: *sudo apt install libfreetype6-dev* Then remove pillow, then reinstall. If one of these works, let me know and I'll add it to our pip troubleshooting guide <https://github.com/weewx/weewx/wiki/pip-troubleshooting>. -tk On Thu, Feb 22, 2024 at 9:54 AM Chris Richmond <crich...@pobox.com> wrote: > Finally trying out weewx 5, and running into python issues. This is on a > pi3 running > Devuan daedalus (Debian bookworm sans systemd). I'd previously set up my > own > stuff to run in a pyvenv, so that basic stuff worked OK. Following the > weewx install steps failed because I forgot about activating > with activate.csh since I run tcsh. > Next, pillow failed to build because libjpeg headers were missing. Fixed > with: > apt install libjpeg-dev > Also, the instructions here: > https://pillow.readthedocs.io/en/latest/installation.html > warned about having PIL and pillow installed, so I removed PIL from the > non-pyvenv and started over (bcm2709_/root# apt remove python3-pil) > Not 100% sure now, but had to install wheel once sourced into the pyvenv: > (weewx) crichmon@bcm2709> python3 -m pip install wheel > Proceeded with: (weewx) crichmon@bcm2709> python3 -m pip install weewx > which ended with: > Successfully built Pillow > Installing collected packages: pyserial, ephem, six, pyusb, PyMySQL, > Pillow, CT3, configobj, weewx > Successfully installed CT3-3.3.3 Pillow-10.2.0 PyMySQL-1.1.0 > configobj-5.0.8 ephem-4.1.5 pyserial-3.5 pyusb-1.2.1 six-1.16.0 weewx-5.0.2 > Created a Simulator station > Created the init.d script and weewxd was off to the races until it came > time to make graphs. Got this is the logs: > File > "/usr/local/py.venv/weewx/lib/python3.11/site-packages/PIL/ImageFont.py", > line 52, in <module> > from PIL import _imagingft as core > I'd modified that import line from: "from . import" to "from PIL import" > with no change. > From the pyvenv command line, this works: > bcm2709_/home/crichmon> source weewx/bin/activate.csh > (weewx) crichmon@bcm2709> python3 > Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> from PIL import ImageFont > >>> ImageFont > <module 'PIL.ImageFont' from > '/usr/local/py.venv/weewx/lib/python3.11/site-packages/PIL/ImageFont.py'> > >>> > Bug with newer python version or something I'm missing? > syslog attached. > Thx, Chris > > -- > 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 weewx-development+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/bd9fc7d0-9bc6-4d0b-96c2-042674d04632n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/bd9fc7d0-9bc6-4d0b-96c2-042674d04632n%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 weewx-development+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEBNDy65v%3DNqB_8DsgM%2Bm%2BG-3DdS1EPY_rZAZF8qYJNTxw%40mail.gmail.com.