Please see this thread: https://groups.google.com/g/weewx-user/c/JgwO68aMyMY/m/cpD6Xs4_AgAJ
On Thu, Sep 12, 2024 at 5:18 AM Stefan Gliessmann < [email protected]> wrote: > 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/7e3bbda4-addd-4ac4-b48b-f31808e42b7dn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/7e3bbda4-addd-4ac4-b48b-f31808e42b7dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zECfNeHR%2BRw-mtc3Nrg%2BwNETCMEfYaGOqoYKDh2_0wGGzw%40mail.gmail.com.
