Sorry, never mind. Error is with Gary's .stackedwindrose.StackedWindRoseImageGenerator'
Paul On Sun, Jul 2, 2023 at 12:32 PM Paul R Anderson <p...@pauland.net> wrote: > Two issues > 1. Looks like you forgot to update weewx.config version string, which is > why log shows 5.0.0b6 even though 5.0.0b7 is actually being run. > > (weewx-venv) panders@rpi4dev:~$ pip list > Package Version > ------------------ -------- > certifi 2023.5.7 > charset-normalizer 3.1.0 > configobj 5.0.8 > CT3 3.3.1 > ephem 4.1.4 > geojson 3.0.1 > idna 3.4 > jq 1.4.1 > paho-mqtt 1.6.1 > Pillow 10.0.0 > pip 23.1.2 > PyMySQL 1.1.0 > pyserial 3.5 > pyusb 1.2.1 > requests 2.31.0 > setuptools 66.1.1 > six 1.16.0 > tabulate 0.9.0 > urllib3 2.0.3 > weewx 5.0.0b7 > > 2. WeeWX Still dies > log: > Jul 02 12:15:52 rpi4dev python3[6011]: weewx[6011] INFO __main__: Starting > up weewx version 5.0.0b6 > Jul 02 12:15:52 rpi4dev python3[6011]: weewx[6011] INFO weewx.engine: > Clock error is -2.89 seconds (positive is fast) > Jul 02 12:15:52 rpi4dev python3[6011]: weewx[6011] INFO weewx.engine: > Using binding 'wx_binding' to database 'weewx.sdb' > Jul 02 12:15:52 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Starting backfill of daily summaries > Jul 02 12:15:52 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Daily summaries up to date > Jul 02 12:15:53 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Added record 2023-07-02 12:15:00 EDT (1688314500) to database 'weewx.sdb' > Jul 02 12:15:53 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Added record 2023-07-02 12:15:00 EDT (1688314500) to daily summary in > 'weewx.sdb' > Jul 02 12:15:53 rpi4dev python3[6011]: weewx[6011] INFO weewx.engine: > Starting main packet loop. > Jul 02 12:15:53 rpi4dev python3[6011]: weewx[6011] INFO user.mqtt: client > established for mqtt://192.168.1.5:1883/ > Jul 02 12:15:55 rpi4dev python3[6011]: weewx[6011] INFO user.gw1000: > Skipping lightning count of 0: no last count > Jul 02 12:20:17 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Added record 2023-07-02 12:20:00 EDT (1688314800) to database 'weewx.sdb' > Jul 02 12:20:17 rpi4dev python3[6011]: weewx[6011] INFO weewx.manager: > Added record 2023-07-02 12:20:00 EDT (1688314800) to daily summary in > 'weewx.sdb' > Jul 02 12:20:17 rpi4dev python3[6011]: weewx[6011] INFO > weewx.cheetahgenerator: Generated 1 files for report > TemperatureMapReport_BACKUP_NOAA_API_Format in 0.05 seconds > Jul 02 12:20:17 rpi4dev python3[6011]: weewx[6011] INFO > weewx.cheetahgenerator: Generated 2 files for report LocalReport in 0.25 > seconds > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] INFO > weewx.imagegenerator: Generated 9 images for report LocalReport in 0.91 > seconds > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: Caught unrecoverable exception in generator > 'user.stackedwindrose.StackedWindRoseImageGenerator' > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** type object 'ImageDraw' has no attribute > 'textsize' > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** Traceback (most recent call last): > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** File > "/home/panders/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", > line 196, in run > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** obj.start() > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** File > "/home/panders/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", > line 384, in start > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** self.run() > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** File > "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 231, in run > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** self.gen_images(self.gen_ts) > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** File > "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 452, in > gen_images > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** text_w, text_h = > self.draw.textsize("0 (100%)", > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** File > "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 840, in > textsize > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** return > ImageDraw.ImageDraw.textsize(self, string, **options) > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** AttributeError: type object 'ImageDraw' > has no attribute 'textsize' > Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR > weewx.reportengine: **** Generator terminated > Jul 02 12:20:23 rpi4dev python3[6011]: weewx[6011] INFO > weewx.cheetahgenerator: Generated 22 files for report PaulandReport in 4.24 > seconds > Jul 02 12:20:23 rpi4dev python3[6011]: weewx[6011] INFO > weewx.imagegenerator: Generated 12 images for report PaulandReport in 0.86 > seconds > Jul 02 12:20:23 rpi4dev python3[6011]: weewx[6011] INFO > weewx.reportengine: Copied 5 files to /var/www/html > > Paul > > On Sun, Jul 2, 2023 at 12:00 PM Tom Keffer <tkef...@gmail.com> wrote: > >> Fixed in commit 0d30285 >> <https://github.com/weewx/weewx/commit/0d30285c9b5a8e22056652c1aa649559c83fe038>, >> to appear in V5.0.0b7. >> >> -tk >> >> On Sat, Jul 1, 2023 at 3:25 PM Tom Keffer <tkef...@gmail.com> wrote: >> >>> >>> >>> On Sat, Jul 1, 2023 at 3:18 PM Joel Bion <jpb...@gmail.com> wrote: >>> >>>> Is it “PIL.ImageFont.Layout.BASIC” now? >>>> >>> >>> Yes and no. It would fix the problem with V10.0, but it would break for >>> older versions of Python. There are lots of Debian repositories out there >>> that are still on Pillow 8.x and even earlier! >>> >>> -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 weewx-development+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAOAVAedELj_d1dQK_%3D37geP10MujByK972kHE%3DuwAnR-gDgNHQ%40mail.gmail.com.