Ah! Thanks for the clarification!

You're giving up some potential users by targeting Python 3.7. In
particular, all the Debian 9 users.

-tk

On Tue, Aug 25, 2020 at 8:08 PM John Kline <[email protected]> wrote:

> That would be me.
>
> It’s the weewx-purple extension, not weewx-purpleair.  It stores the pmX.X
> values in the 4.x extended database (i.e., doesn’t store to a separate
> database) and uses xtypes for PM2.5 AQI.  Besides listing in bold in the
> README that it needs WeeWX 4.x, Py3.7 and the extended database, it also
> checks both in the install and in the extension.
>
> Of course, his issue is that he thought he was running WeeWX with Py3.7,
> but was not.
>
> On Aug 25, 2020, at 7:14 PM, Tom Keffer <[email protected]> wrote:
>
> 
> I'm wondering who is issuing the "requires Python 3.7 or later" error.
> It's not wee_extension, nor anything else in WeeWX. Nor do I see any text
> like that in the PA extension.
>
> I'm wondering if it is the zip library that is doing it...?
>
> Wild chance, but try unzipping the archive using the zip utility, then
> running wee_extension on the resultant directory.
>
> sudo bin/wee_extension --install /home/pi/Downloads/weewx-purple-master
>
> where, I'm assuming, the unzipped extension will be in directory
> /home/pi/Downloads/weewx-purple-master.
>
> -tk
>
>
>
> On Tue, Aug 25, 2020 at 6:40 PM John Kline <[email protected]> wrote:
>
>> Well, we know the error message is not erroneous.
>>
>> I assume it’s Debian (since it’ a NUC), and not Raspbian.
>>
>> Is it buster?
>>
>> /usr/bin/python3 is probably a symlink to /usr/bin/python3.5.  You could
>> change it to 3.7, but this *might* have consequences for other software.
>>
>> You could also change the first lines of the weewx executables:
>> wee_extension, wee_database, weewxd to point to /usr/bin/python (since that
>> appears to be pointing to 3.7), but that would be a maintenance headache.
>>
>> It might be better to figure out how you got into this situation.
>> Perhaps you could uninstall 3.5 (it’s end of life is in 19 days).  Then, if
>> need be, point /usr/bin/python3 to the 3.7 executable.
>>
>> I wouldn’t do any of this if you don’t feel comfortable being able to dig
>> out of any problems that might be created.  I am reasonably confident that
>> you’d be fine without 3.5, but I’m not going to be able to spend time with
>> you on this.
>>
>> Perhaps others will have suggestions.  What version of the OS would be
>> helpful along with telling us if you are up to date.
>>
>> On Aug 25, 2020, at 5:59 PM, [email protected] <
>> [email protected]> wrote:
>>
>> 
>> /usr/bin/python3 -V
>> python 3.5 3
>>
>> I am officially confused in that case.
>>
>> :-))
>>
>> On Tuesday, August 25, 2020 at 3:22:51 PM UTC-4 [email protected]
>> wrote:
>>
>>> In particular, if the first line is:
>>> #!/usr/bin/python3
>>>
>>> send me the result of:
>>> /usr/bin/python3 -V
>>>
>>> On Aug 25, 2020, at 12:13 PM, [email protected] <
>>> [email protected]> wrote:
>>>
>>> Weewx-purple requires  weewx 4.1.1 (which is installed) and Paython >
>>> 3.7
>>>
>>>
>>> pi@NUC62:/home/weewx $ python -V
>>> Python 3.7.9
>>>
>>> Running the installer gets me this:
>>>
>>> sudo bin/wee_extension --install
>>> /home/pi/Downloads/weewx-purple-master.zip
>>> Request to install '/home/pi/Downloads/weewx-purple-master.zip'
>>> Extracting from zip archive /home/pi/Downloads/weewx-purple-master.zip
>>> weewx-purple requires Python 3.7 or later, found 3.5
>>>
>>> Is this a bug that weewx-purple is not seeing the python version or
>>> something I am doing wrong?
>>>
>>> Intel NUC
>>> Raspian Desktop
>>>
>>> --
>>>
>>> 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/a0437e20-45c5-47dc-a0aa-551d47c9b961n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/a0437e20-45c5-47dc-a0aa-551d47c9b961n%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/952fce43-f2ae-4c98-8982-6a49c8926053n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/952fce43-f2ae-4c98-8982-6a49c8926053n%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/A21DF5CE-A8E6-40CA-89B3-67B3F4A839A3%40johnkline.com
>> <https://groups.google.com/d/msgid/weewx-user/A21DF5CE-A8E6-40CA-89B3-67B3F4A839A3%40johnkline.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/CAPq0zEBGKvuX_38W2hqNtZ%2BafnCP8fMFsd8yzWeKfU3P5Y6aTg%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBGKvuX_38W2hqNtZ%2BafnCP8fMFsd8yzWeKfU3P5Y6aTg%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/2C6F0C44-A333-4BAB-84A3-0CCEC7244CAE%40johnkline.com
> <https://groups.google.com/d/msgid/weewx-user/2C6F0C44-A333-4BAB-84A3-0CCEC7244CAE%40johnkline.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/CAPq0zEARFA9k%2BEcFDd%2BxMo3vg94Wt_JJEmFT%3D0_At2enVPAdxA%40mail.gmail.com.

Reply via email to