[Qgis-user] 3.16.8+ LTR vs. old 3.16.x for SIP and PyQt5 imports

Jürgen E. Fischer jef at norbit.de
Wed Aug 11 19:34:18 PDT 2021


Hi Ari,

On Wed, 11. Aug 2021 at 17:16:35 -0500, Ari Meyer wrote:
> Test with python-qgis-ltr.bat:
> Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64
> bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sip

This issue is due to Python 3.9.  It doesn't use PATH to find DLLs anymore.
Thereore the qgis module now splits PATH and uses os.add_dll_directory on each,
After that it should behave as before.  So your fix should be to import qgis
first.

BTW the latest LTR is also in old osgeo4w and should be not affected.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                 IRC: jef on Libera|OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210812/ca263b36/attachment.sig>


More information about the Qgis-user mailing list