Sorry if this has been discussed before, but tldr: the tip of master seems incompatible with Pillow 10 while declaring that it is compatible.
I'm doing the usual quarterly updating of packages. I now have py311-Pillow-10.0.1 which is consistent with requirements.txt. My weewx sources are at commit 26bbcc56b5939d3e7e102ba21e9e656074714f67 (origin/master, origin/HEAD) Merge: 548bf5ec 8b3e628c Author: Tom Keffer <tkef...@gmail.com> Date: Sun Jul 16 16:08:00 2023 -0700 Running wee_reports: Generating as of last timestamp in the database. Using configuration file /usr/weewx/weewx.conf Traceback (most recent call last): File "/usr/weewx/bin/weewx/reportengine.py", line 197, in run obj.start() File "/usr/weewx/bin/weewx/reportengine.py", line 385, in start self.run() File "/usr/weewx/bin/weewx/imagegenerator.py", line 42, in run self.gen_images(self.gen_ts) File "/usr/weewx/bin/weewx/imagegenerator.py", line 114, in gen_images image = plot.render() ^^^^^^^^^^^^^ File "/usr/weewx/bin/weeplot/genplot.py", line 212, in render self._renderBottom(draw) File "/usr/weewx/bin/weeplot/genplot.py", line 404, in _renderBottom bottom_label_size = draw.textsize(self.bottom_label, font=bottom_label_font) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/weewx/bin/weeplot/genplot.py", line 646, in textsize return ImageDraw.ImageDraw.textsize(self, string, **options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'ImageDraw' has no attribute 'textsize' and the Internet more or less says that Pillow has changed this to textlength. Pillow says this removal is a feature rather than a bug: https://github.com/python-pillow/Pillow/issues/7277 https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#font-size-and-offset-methods Replaying textsize with textlength in bin/weeplot/genplot.py results in further errors, because apparently textsize returns a tuple but textlength is only length and you need rows * height, but now I'm really fuzzy. So other than "it would be better not to depend on upstreams that withdraw things people use", I wonder what the status is. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/rmiy1fs6ugk.fsf%40s1.lexort.com.