just a guess.  entry missing in units section of weewx.conf.  Check locale 
setting in raspi-config on RPI. ???

On Sunday, August 27, 2023 at 7:17:25 p.m. UTC-4 vince wrote:

> That's ok.  Thanks for trying.  There is definitely something going on 
> with locale/cheetah since Jacques had odd results too, but this one might 
> just not be readily solvable.
>
> On Sunday, August 27, 2023 at 3:47:08 PM UTC-7 Tom Keffer wrote:
>
>> I have tried Python 3.7.10, 3.10.5, and 3.11.4, with Cheetah 3.2.6, 
>> 3.3.1, and 3.3.2. I even tried Python 3.9.2 with Cheetah 3.3.1 (your 
>> combination). All gave the expected results.
>>
>> Unfortunately, I am unable to reproduce what you're seeing.
>>
>> On Sun, Aug 27, 2023 at 3:18 PM vince <[email protected]> wrote:
>>
>>> Garbled pi4:
>>> (weewx-venv) pi@pi4:~$ python3 -V
>>> python3 -c "import Cheetah;print(Cheetah.Version)"
>>> Python 3.9.2
>>> 3.3.1
>>>
>>> Working mac mini:
>>> python3 -c "import Cheetah;print(Cheetah.Version)"
>>> Python 3.10.9
>>> 3.3.2
>>>
>>> Working AWS lightsail ubuntu:
>>> $ python3 -V
>>> python3 -c "import Cheetah;print(Cheetah.Version)"
>>> Python 3.10.12
>>> 3.3.2
>>>
>>>
>>> On Sunday, August 27, 2023 at 2:59:27 PM UTC-7 Tom Keffer wrote:
>>>
>>>> I guess the next question is what version of Python and Cheetah?
>>>>
>>>> *python3 -V*
>>>> *python3 -c "import Cheetah;print(Cheetah.Version)"*
>>>>
>>>> Mine is Python 3.7.16 and Cheetah V3.3.2
>>>>
>>>> -tk
>>>>
>>>> On Sun, Aug 27, 2023 at 2:50 PM vince <[email protected]> wrote:
>>>>
>>>>> Tom - my lightsail VM works fine.  Ubuntu 22.04.3 LTS all patched up.  
>>>>> Note the diagnostic results differ from the (garbled) pi.
>>>>>
>>>>> $ echo $LANG
>>>>> python3 -c "import locale;print(locale.setlocale(locale.LC_ALL))"
>>>>> python3 -c "import 
>>>>> locale;locale.setlocale(locale.LC_ALL,'');print(locale.setlocale(locale.LC_ALL))"
>>>>>
>>>>> C.UTF-8
>>>>>
>>>>> LC_CTYPE=C.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C
>>>>> C.UTF-8
>>>>>
>>>>>
>>>>> On Sunday, August 27, 2023 at 2:37:05 PM UTC-7 vince wrote:
>>>>>
>>>>> My m1 mini running latest MacOS worked fine with the test.html.tmpl 
>>>>> template.
>>>>> Here are the python diagnostics.
>>>>>
>>>>> $ echo $LANG
>>>>>
>>>>> python3 -c "import locale;print(locale.setlocale(locale.LC_ALL))"
>>>>> python3 -c "import 
>>>>> locale;locale.setlocale(locale.LC_ALL,'');print(locale.setlocale(locale.LC_ALL))"
>>>>>
>>>>> en_US.UTF-8
>>>>> C/en_US.UTF-8/C/C/C/C
>>>>> en_US.UTF-8
>>>>>
>>>>>
>>>>> My pi4 has the issue still.  Here are the diagnostics for the pi.
>>>>> I got the same command results below without activating the venv too.
>>>>>
>>>>> pi@pi4:~$ source ~/weewx-venv/bin/activate
>>>>> (weewx-venv) pi@pi4:~$ echo $LANG
>>>>>
>>>>> python3 -c "import locale;print(locale.setlocale(locale.LC_ALL))"
>>>>> python3 -c "import 
>>>>> locale;locale.setlocale(locale.LC_ALL,'');print(locale.setlocale(locale.LC_ALL))"
>>>>> en_US.UTF-8
>>>>>
>>>>> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C
>>>>> en_US.UTF-8
>>>>>
>>>>>
>>>>> -- 
>>>>> 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/9752dfa4-6be1-4509-8049-5fe348653496n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/9752dfa4-6be1-4509-8049-5fe348653496n%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/b04e8c8f-99f7-442a-be91-63d0518c241cn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/b04e8c8f-99f7-442a-be91-63d0518c241cn%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/fe259f1e-d493-4160-8289-efceafe83fecn%40googlegroups.com.

Reply via email to