The file /etc/default/weewx controls which version of Python to use. Look
in there.

However, it will not work unless the Python 3 prerequisites have been
installed. If they have not, then you are better off following the
instructions in the WeeWX Debian guide
<http://www.weewx.com/docs/debian.htm>:

wget -qO - https://weewx.com/apt/weewx-python3.list | sudo tee
/etc/apt/sources.list.d/weewx.list
sudo apt-get update
sudo apt-get install weewx



On Wed, Jan 20, 2021 at 3:59 AM 'Rene' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Just to add that Python 3 works:
>
> root@brix:~# python3 --version
> Python 3.6.9
>
> Rene schrieb am Mittwoch, 20. Januar 2021 um 12:56:27 UTC+1:
>
>> Hi all,
>> I'm running weewx 4.3.0 and it still uses Python 2.7 although I have
>> installed Python 3 and /usr/bin/weewxd contains:
>>
>> #!/bin/sh
>> app=weewxd
>>
>> # Get the weewx location and interpreter.  Default to something sane, but
>> # look for overrides from the system defaults.
>> WEEWX_BINDIR=/home/weewx/bin
>> WEEWX_PYTHON=python3
>> [ -r /etc/default/weewx ] && . /etc/default/weewx
>> $WEEWX_PYTHON $WEEWX_BINDIR/$app $*
>>
>> From syslog:
>>
>> Jan 20 12:47:42 brix systemd[1]: Starting weewx weather system...
>> Jan 20 12:47:42 brix weewx[26249] INFO __main__: Initializing weewx
>> version 4.3.0
>> Jan 20 12:47:42 brix weewx[26249] INFO __main__: Using Python 2.7.17
>> (default, Sep 30 2020, 13:38:04) #012[GCC 7.5.0]
>> Jan 20 12:47:42 brix weewx[26249] INFO __main__: Platform
>> Linux-4.15.0-130-generic-x86_64-with-Ubuntu-18.04-bionic
>> Jan 20 12:47:42 brix weewx[26249] INFO __main__: Locale is 'de_DE.UTF-8'
>> Jan 20 12:47:42 brix weewx[26249] INFO __main__: PID file is
>> /var/run/weewx.pid
>> Jan 20 12:47:42 brix weewx[26257] INFO __main__: Using configuration file
>> /etc/weewx/weewx.conf
>> Jan 20 12:47:42 brix weewx[26257] INFO __main__: Debug is 0
>>
>> I was looking into the logs because on January 5th weewx stopped
>> generating reports. It runs fine otherwise, uploads data to WU and sends
>> data with MQTT but no more reports. I think it was the day when I upgraded
>> weewx from 4.2.0 to 4.3.0 and wanted to try now if Python 3 fixes the
>> issue. There are no errors from weewx in the log.
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/8982f04c-da2d-4c3f-9686-f06bde9fe16an%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/8982f04c-da2d-4c3f-9686-f06bde9fe16an%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDTTGHUkr62W2AnT5J9pTaaVEWUey2gz_6EQYQha%2Bwy-Q%40mail.gmail.com.

Reply via email to