Skip to content

Instantly share code, notes, and snippets.

@michael-slx
Created September 6, 2023 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-slx/4bae07306069618344728fe46969751d to your computer and use it in GitHub Desktop.
Save michael-slx/4bae07306069618344728fe46969751d to your computer and use it in GitHub Desktop.
weewx pillow-10
Traceback (most recent call last):
File "/usr/lib/weewx/weewx/reportengine.py", line 197, in run
obj.start()
File "/usr/lib/weewx/weewx/reportengine.py", line 385, in start
self.run()
File "/usr/lib/weewx/weewx/imagegenerator.py", line 42, in run
self.gen_images(self.gen_ts)
File "/usr/lib/weewx/weewx/imagegenerator.py", line 114, in gen_images
image = plot.render()
^^^^^^^^^^^^^
File "/usr/lib/weewx/weeplot/genplot.py", line 212, in render
self._renderBottom(draw)
File "/usr/lib/weewx/weeplot/genplot.py", line 406, in _renderBottom
bottom_label_size = draw.textsize(self.bottom_label, font=bottom_label_font)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/weewx/weeplot/genplot.py", line 648, in textsize
return ImageDraw.ImageDraw.textsize(self, string, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'ImageDraw' has no attribute 'textsize'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment