weewx 4.10.2 on openSuse Tumbleweed with Vantage Pro II
Python 3.11.5
pillow 10.0.1-1.1
It seems weewx broke with Pillow 3.10+
Since my system has python3 managed I can't roll back to an earlier version
of pillow using
*python3 -m pip install Pillow==9.5.0*
which is supposed to fix the problem.
Please see the attached errors when running wee_reports
Is there a patch file i can apply to genplot.py to fix this?
Or is there some other fix i can do?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/417247db-1f88-4516-92d4-730facac7665n%40googlegroups.com.
./wee_reports
Generating as of last timestamp in the database.
Using configuration file /usr/local/bin/weewx/weewx.conf
Traceback (most recent call last):
File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 197, in run
obj.start()
File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 385, in start
self.run()
File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 42, in run
self.gen_images(self.gen_ts)
File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 114, in
gen_images
image = plot.render()
^^^^^^^^^^^^^
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 212, in render
self._renderBottom(draw)
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 404, in _renderBottom
bottom_label_size = draw.textsize(self.bottom_label, font=bottom_label_font)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 646, in textsize
return ImageDraw.ImageDraw.textsize(self, string, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'ImageDraw' has no attribute 'textsize'
Traceback (most recent call last):
File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 197, in run
obj.start()
File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 385, in start
self.run()
File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 42, in run
self.gen_images(self.gen_ts)
File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 114, in
gen_images
image = plot.render()
^^^^^^^^^^^^^
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 212, in render
self._renderBottom(draw)
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 404, in _renderBottom
bottom_label_size = draw.textsize(self.bottom_label, font=bottom_label_font)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 646, in textsize
return ImageDraw.ImageDraw.textsize(self, string, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'ImageDraw' has no attribute 'textsize'