I remember I had to change /etc/default/weewx it to tell Weewx to start
with Python3

WEEWX_PYTHON=python2    <== change to python3

WEEWX_BINDIR=/usr/share/weewx

WEEWX_BIN=/usr/bin/weewxd

WEEWX_CFG=/etc/weewx/weewx.conf

Colin

On Wed, 27 Jan 2021 at 11:04, Tom Keffer <[email protected]> wrote:

> Easiest is to just follow the install directions in the Debian guide
> <http://www.weewx.com/docs/debian.htm>:
>
>
>
>
> *wget -qO - https://weewx.com/apt/weewx-python3.list
> <https://weewx.com/apt/weewx-python3.list> | sudo tee
> /etc/apt/sources.list.d/weewx.listsudo apt-get updatesudo apt-get install
> weewx*
>
>
> On Tue, Jan 26, 2021 at 1:58 PM Gordon Dickens <[email protected]>
> wrote:
>
>> How do I make weewx use python3 instead of python2?  I initially
>> installed weewx on Debian using the Debian package over a year ago and it
>> was originally setup to use python2. I recently upgraded to weewx 4.3.0
>> with the Belchertown skin version 1.2 and so I want to also upgrade to
>> python3.   The normal way to change default packages in Debian is with the
>> update-alternatives command, however, when I set python3 as the default,
>> weewx continues to use python2 as seen from the command, "ps aux | grep
>> weewx" whose output contains:
>>
>> python2 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid
>> /etc/weewx/weewx.conf
>>
>> So, the service is started with python2.  How do I change the weewx
>> service to use python3?
>>
>> Thanks,
>>
>> Gordon
>>
>> --
>> 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/807bfd14-5724-4116-b369-c7d2d49f15b9n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/807bfd14-5724-4116-b369-c7d2d49f15b9n%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/CAPq0zEA76i1OPAqpLZqC4AYf%2BxLY%3DTiu2FB%3DgD51Fc635PpHuQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEA76i1OPAqpLZqC4AYf%2BxLY%3DTiu2FB%3DgD51Fc635PpHuQ%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/CACjxfUv6LcGyjQWjPKfD6hPfyLJj8NuHeBBfxMx2_nPdrauw_A%40mail.gmail.com.

Reply via email to