Liz Dodd
unread,Jan 2, 2024, 2:56:33 PM1/2/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to weewx-user
On 1/1/24 I updated my Debian server to trixie, finishing the update
about 1620.
My last images on my Weewx web page are dated 1/1/24 1700.
I found a few errors in my logs, and looked for previous posts
concerning these but didn't find anything that fixed my errors.
Weewx v4.10.2
Debian Testing "Trixie" kernel 6.5.0-5-amd64
Davis weather station
Personalised skin in use - made from the standard skin 'some time' back
Error in Image Generator reported as follows in logs
2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR
weewx.reportengine: Caught unrecoverable exception in generator
'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00
boronia weewx[1184] ERROR weewx.reportengine: **** type object
'ImageDraw' has no attribute 'textsize'
2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** Traceback (most recent call last):
2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weewx/reportengine.py", line 197, in run
2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** obj.start()
2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weewx/reportengine.py", line 385, in start
2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** self.run()
2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** self.gen_images(self.gen_ts)
2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images
2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** image = plot.render()
2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** ^^^^^^^^^^^^^
2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weeplot/genplot.py", line 212, in render
2024-01-03T06:10:17.268429+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** self._renderBottom(draw)
2024-01-03T06:10:17.268498+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weeplot/genplot.py", line 404, in _renderBottom
2024-01-03T06:10:17.268589+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** bottom_label_size =
draw.textsize(self.bottom_label, font=bottom_label_font)
2024-01-03T06:10:17.268667+11:00 boronia weewx[1184] ERROR
weewx.reportengine: ****
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-03T06:10:17.268746+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** File
"/usr/share/weewx/weeplot/genplot.py", line 646, in textsize
2024-01-03T06:10:17.268827+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** return
ImageDraw.ImageDraw.textsize(self, string, **options)
2024-01-03T06:10:17.268912+11:00 boronia weewx[1184] ERROR
weewx.reportengine: ****
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-01-03T06:10:17.268988+11:00 boronia
weewx[1184] ERROR weewx.reportengine: **** AttributeError:
type object 'ImageDraw' has no attribute 'textsize'
2024-01-03T06:10:17.269066+11:00 boronia weewx[1184] ERROR
weewx.reportengine: **** Generator terminated
I thought I would try reinstalling the package as I had not examined
the diffs for any of the conf files when updating the server.
This was unsuccessful
Setting up weewx (4.10.2-1) ...
using debconf configuration values from previous install
Traceback (most recent call last):
File "/usr/share/weewx/wee_config", line 128, in <module>
main()
File "/usr/share/weewx/wee_config", line 122, in main
config_mgr.run(args, options)
File "/usr/share/weewx/weecfg/config.py", line 125, in run
weecfg.modify_config(config_dict, stn_info, self.logger,
options.debug) File "/usr/share/weewx/weecfg/__init__.py", line 313, in
modify_config config_dict['StdReport']['Defaults']['unit_system'] =
stn_info['unit_system'] ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/configobj/__init__.py", line
554, in __getitem__ val = dict.__getitem__(self, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'Defaults'
dpkg: error processing package weewx (--configure):
installed weewx package post-installation script subprocess returned
error exit status 1 Errors were encountered while processing:
weewx
This leaves me with the error
AttributeError: type object 'ImageDraw' has no attribute 'textsize'
Can someone advise where I can specify 'textsize' ?
Liz