well - I just did another:

sudo wget 
https://github.com/poblabs/weewx-belchertown/raw/master/bin/user/belchertown.py

and now, it works ....

Thank you, again, Tom!
On Thursday, September 12, 2024 at 2:50:36 PM UTC+2 Stefan Gliessmann wrote:

> Actually, the updated belchertown.py (three months ago) is already in 
> place on my server.
> Please notice that this is Ubuntu 24.04.01
>
> Before the upgrade, it was running just fine on Ubuntu 24.04.
>
> I did re-install "locales" already:
>
> sudo apt-get update
> sudo apt-get install --reinstall locales
>
> A little test script return the correct format, too:
>
> import locale
> locale.setlocale(locale.LC_ALL, '')
> print(locale.format_string("%g", 12345.6789, grouping=True))
>
>  Hmm ...
>
> On Thursday, September 12, 2024 at 2:43:54 PM UTC+2 Stefan Gliessmann 
> wrote:
>
>> Thank you Tom!
>>
>> I need to improve my search skills in this group!
>>
>> Cheers,
>> Stefan
>>
>>
>> On Thursday, September 12, 2024 at 2:30:20 PM UTC+2 Karen K wrote:
>>
>>> 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/98525b46-29e4-430f-9094-bd4c002c0f51n%40googlegroups.com.

Reply via email to