Something I don't understand: you did a Debian package install, right? If
so, why are you installing Cheetah? The installer should have done that for
you. Did you switch between Python 2 and Python 3?

The other area I would check is /etc/defaults/weewx. Matthew is the expert
on it, but make sure it's invoking Python 3, not 2. Post it here if you
need to.

On Thu, Jan 12, 2023 at 8:41 PM Kevin Key <[email protected]> wrote:

> I have quite a few other things configured on this Pi 4 - including Home
> Assistant (which is working fine). Can you think of anything else I should
> check?
>
> Thanks,
>
> Kevin
>
> On Thu, Jan 12, 2023 at 2:11 PM vince <[email protected]> wrote:
>
>> At some point your time is worth more than the few dollars for another SD
>> card.   Personally I'd start over with a new SD card and get the simulator
>> working, then add in the RTL stuff you're using and switch to that.
>>
>> Getting the os clean is the first step.  Make sure you 'apt-get update'
>> and 'apt-get upgrade' all your packages.  It's easy to get pieces
>> mismatched.
>>
>> On Thursday, January 12, 2023 at 1:46:32 PM UTC-8 [email protected]
>> wrote:
>>
>>> I tried that. Still the same problems. :(
>>>
>>> On Thu, Jan 12, 2023 at 12:19 PM vince <[email protected]> wrote:
>>>
>>>> Wow.  Seems like one from a 'make altinstall' of python, one from a
>>>> dpkg, and one from a 'pip3 install --user'.   You kinda only need one.
>>>> Personally I'd use the dpkg one.
>>>>
>>>> Maybe just for grins 'rename' the directories in /usr/local/lib and
>>>> /home/pi/.local and see if it works.  It's already broken anyway :-)
>>>>
>>>> [...Tom - for me on deb10 /bin is symlinked to /usr/bin, so that's why
>>>> the debug output shows /bin/python3 although I suspect it's a bug in weewx
>>>> figuring out where python is.  It's backwards in the debug output...]
>>>>
>>>> On Thursday, January 12, 2023 at 11:46:49 AM UTC-8 [email protected]
>>>> wrote:
>>>>
>>>>> Here's mine:
>>>>>
>>>>> pi@ubuntu:~ $ sudo find / -name Cheetah\* -print
>>>>> find: ‘/run/user/1000/gvfs’: Permission denied
>>>>>
>>>>> /root/.cache/pip/wheels/18/b6/c2/ebcb81dbc68a104b18b8b22e5e05a76836366779c816a32476/Cheetah3-3.2.6.post1-cp39-cp39-linux_aarch64.whl
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah3-3.2.6.post1.dist-info
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah/CheetahWrapper.py
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah/Tests/CheetahWrapper.py
>>>>>
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah/Tests/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>>
>>>>> /usr/local/lib/python3.9/dist-packages/Cheetah/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>> /usr/lib/python3/dist-packages/Cheetah3-3.2.6.egg-info
>>>>> /usr/lib/python3/dist-packages/Cheetah
>>>>> /usr/lib/python3/dist-packages/Cheetah/CheetahWrapper.py
>>>>> /usr/lib/python3/dist-packages/Cheetah/Tests/CheetahWrapper.py
>>>>>
>>>>> /usr/lib/python3/dist-packages/Cheetah/Tests/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>>
>>>>> /usr/lib/python3/dist-packages/Cheetah/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah/CheetahWrapper.py
>>>>>
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah/Tests/CheetahWrapper.py
>>>>>
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah/Tests/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>>
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>> /home/pi/.local/lib/python3.9/site-packages/Cheetah3-3.2.6.dist-info
>>>>> pi@ubuntu:~ $
>>>>>
>>>>> On Thu, Jan 12, 2023 at 10:45 AM vince <[email protected]> wrote:
>>>>>
>>>>>> Perhaps scan your filesystem at see where it is installed today.
>>>>>>
>>>>>> Here's mine from a pi4 running RaspiOS.  I know from the logs you're
>>>>>> running ubuntu 64 bit but it should be similar...
>>>>>>
>>>>>> pi@pi4:~ $ sudo find / -name Cheetah\* -print
>>>>>> /usr/lib/python3/dist-packages/Cheetah3-3.2.6.egg-info
>>>>>> /usr/lib/python3/dist-packages/Cheetah
>>>>>>
>>>>>> /usr/lib/python3/dist-packages/Cheetah/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>>>
>>>>>> /usr/lib/python3/dist-packages/Cheetah/Tests/__pycache__/CheetahWrapper.cpython-39.pyc
>>>>>> /usr/lib/python3/dist-packages/Cheetah/Tests/CheetahWrapper.py
>>>>>> /usr/lib/python3/dist-packages/Cheetah/CheetahWrapper.py
>>>>>>
>>>>>> pi@pi4:~ $ dpkg -l | grep -i cheetah
>>>>>> ii  python3-cheetah                      3.2.6-1+b1
>>>>>>     armhf        text-based template engine and Python code generator
>>>>>> (Python 3)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "weewx-user" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> https://groups.google.com/d/topic/weewx-user/uIMSw10r9JI/unsubscribe.
>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>> [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/weewx-user/40fe1fca-2d7f-473d-90e5-1420852573d2n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/weewx-user/40fe1fca-2d7f-473d-90e5-1420852573d2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "weewx-user" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/weewx-user/uIMSw10r9JI/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/779067cc-dade-4393-9f5b-9fdd40bcfd51n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/779067cc-dade-4393-9f5b-9fdd40bcfd51n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/weewx-user/uIMSw10r9JI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/06982aa3-95ac-4298-a578-1e389ea34b4en%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/06982aa3-95ac-4298-a578-1e389ea34b4en%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/CAK3LaRo5DUewSXvtMyviWHUYg3nf1igDu0vmnHUhV1uKaqA16w%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAK3LaRo5DUewSXvtMyviWHUYg3nf1igDu0vmnHUhV1uKaqA16w%40mail.gmail.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/CAPq0zEDjeXT8bXqGDZeCHeBSom%2B3uLvpKoThg60ZJnuS8FYYwQ%40mail.gmail.com.

Reply via email to