/etc/weewx/bin is added to the Python path dynamically when weewxd is
started up. However, because it is added to the end of the path, the
interpreter will find the version in /usr/share/weewx first.

So, why not add it to the beginning of the Python path? Because that
causes problems for legacy setup.py installs. In this case, the interpreter
will find the code in /home/weewx/bin first, which is the old V4.10 code.
The V5 code is under ~/weewx-venv.

In summary, there's no good solution except to warn users.

-tk


On Sun, Nov 26, 2023 at 9:15 AM Karen K <[email protected]> wrote:

> Tom Keffer schrieb am Sonntag, 26. November 2023 um 13:50:23 UTC+1:
>
> This issue is already known (always read the Upgrade Guide!). See
> https://weewx.com/docs/5.0/upgrade/#new-location-for-user-directory
>
>
> This is a slightly other problem here. I did a new clean install, no
> upgrade.
>
> My problem was, that the old directory /usr/share/weewx/user still exists
> and Python looks for modules there only.
>
> So the extensions were installed to /etc/weewx/bin/user, but Python did
> not look for them there.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/35032165-08d5-4415-8e9d-d2996ce8ca84n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/35032165-08d5-4415-8e9d-d2996ce8ca84n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEAtRxWk2JG7OYC_ontEnv-fFLLdXGUr2KDzf_nyv24XaQ%40mail.gmail.com.

Reply via email to