Hi developers.

We've developed a QGIS plugin, that utilizes Pythonnet to communicate with C# 
on Windows.

Pythonnet is not part of the chosen distribution for Python in QGIS (as of 
3.34), so we do a separate installation of this module into %APPDATA%/Python, 
which is used by all Python distributions on the PC.

But even after Pythonnet has been installed correctly, we get an error when the 
QGIS plugin installer tries to start the plugin.

[cid:image001.png@01DA8A6B.9CAF2A30]

However, the plugin has been installed correctly, and it starts just fine when 
one manually activates it in the plugin window list.


Why can't the plugin start when activated by the QGIS plugin installer ?
Is it running in some kind of restricted environment, that excludes use of the 
APPDATA location ?

Cheers.


Ps!
We are aware of different versions of Pythonnet in Python 3.7 vs 3.9. We 
install both.



Med venlig hilsen

Lars I. Nielsen
GIS-kons., FME+Python Certified Professional
GeoData

[cid:image002.png@01DA8A6B.9CAF2A30]


Dir.
+4563136849<tel:+4563136849>
Tlf.
+4563136800<tel:+4563136800>
Mail
+l...@lifa.dk<mailto:l...@lifa.dk>




LIFA A/S · Tlf +4563136800<tel:+4563136800> · lifa.dk<https://www.lifa.dk/> · 
CVR 20937289
Odense · Fredericia · Glostrup · Hillerød · Kerteminde · Kolding · Middelfart · 
Vejle · Vissenbjerg · Aarhus
[cid:image003.png@01DA8A6B.9CAF2A30]<https://www.linkedin.com/company/lifa-a-s/>
Følg os på LinkedIn og læs de seneste nyheder fra LIFA A/S.

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to