I needed to do one modification to change locale to be like your eaxmple: Modified by changing LC_All="en_US.UTF-8" into LC_ALL=
This had no effect Then, using the hint from your note to Pat (issue #2), I edited /home/weewx/bin/user/belchertown.py line 26 and commented out locale.setlocale(locale.LC_ALL, "") This stopped any noticeable exceptions, Belchertown script is running any without issues that I can detect and expected out is generated. Thank you for you help Thomas! G400 ________________________ On Saturday, March 23, 2019 at 7:00:42 PM UTC+1, G400 wrote: > > reportengine: Caught unrecoverable exception in generator > 'weewx.cheetahgenerator.CheetahGenerator' > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** unsupported > locale setting > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** Traceback > (most recent call last): > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 204, in run > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** > obj.start() > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 300, in start > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** self.run() > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 157, in run > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** > self.initExtensions(gen_dict[section_name]) > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 199, in initExtensions > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** class_ = > weeutil.weeutil._get_object(x) > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/weeutil/weeutil.py", line 1130, in _get_object > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** mod = > __import__(module) > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/home/weewx/bin/user/belchertown.py", line 26, in <module> > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** > locale.setlocale(locale.LC_ALL, "") > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** File > "/usr/lib/python2.7/locale.py", line 581, in setlocale > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** return > _setlocale(category, locale) > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** Error: > unsupported locale setting > Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: **** Generator > terminated > > My locale settings are as follows: > locale -a > C > C.UTF-8 > en_US.utf8 > POSIX > > Content of /etc/default/locale > # File generated by update-locale > LANG=en_US.UTF-8 > > What else do I need to check to fix this error? > -- 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.