I guess you may want to re-install some Python modules. The error message 
reports an error regarding the "locale" module. I see no connection to the 
Belchertown skin itself.

Stefan Gliessmann schrieb am Donnerstag, 12. September 2024 um 14:18:37 
UTC+2:

> Dear All -
>
> I just finished upgrading my weewx server's OS from Ubuntu 24.04. to 
> Ubuntu 24.04.01 LTS.
>
> After the reboot, things booted up just fine.
> But no new reports were generated.
> Going to the logfile, I found:
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****  module 'locale' has no attribute 'format'*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****  Traceback (most recent call last):*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 248, in run*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      obj.start()*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 465, in start*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      self.run()*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 166, in run*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      ngen = self.generate(gen_dict[section_name], section_name, 
> self.gen_ts)*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****             
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in 
> generate*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      ngen += self.generate(section[subsection], subsection, gen_ts)*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in 
> generate*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      ngen += self.generate(section[subsection], subsection, gen_ts)*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 309, in 
> generate*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      searchList = self._getSearchList(encoding, timespan,*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 401, in 
> _getSearchList*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      search_list += obj.get_extension_list(timespan, db_lookup)*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****    File "/etc/weewx/bin/user/belchertown.py", line 612, in 
> get_extension_list*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      locale.format("%g", float(year_outTemp_max_range_total)),*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****      ^^^^^^^^^^^^^*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****  AttributeError: module 'locale' has no attribute 'format'. Did you 
> mean: '_format'?*
>
> Sep 12 13:52:49 WXvm weectl[7581]: *ERROR weewx.reportengine:         
> ****  Generator terminated*
>
>
> I read that the upgrade might have changed the installed modules of 
> python3.
>
> Is this really the root cause of this error message? And if so,  how do I 
> fix it? Re-install the belchertown skin?
>
>
> Anybodyelse did the Ubuntu upgrade recently?
>

-- 
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/7327a109-3033-4a33-b0c8-97212ba904cbn%40googlegroups.com.

Reply via email to