Hi Ari,

On Thu, 12. Aug 2021 at 17:06:02 -0500, Ari Meyer wrote:
> Thank you, Jurgen -- that trick did the job.  Is this "fix" documented
> anywhere?  Is there any more reliable solution?  I'm concerned that some of
> our devs won't remember to put qgis higher in the imports, and we'll have
> to keep dealing with this.

Hm, apparently running %PYTHONHOME%\python instead of just python in
python-qgis-ltr.bat causes this.  No exactly sure why, but w/o it will just
import Qt.  I guess when run from bin it also finds DLLs there, which it
otherwise doesn't - although bin is in PATH.

> Also, why is it that we only encounter this problem when running from
> outside of QGIS?  When running within QGIS, we don't have any such issues.

QGIS imports qgis (and also uses AddDllDirectory directly)


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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to