[QGIS-Developer] Unable to compile QGIS3 plugin

Michel Stuyts michel.stuyts at edegem.be
Fri Mar 16 03:14:38 PDT 2018


Sophie,

What happens if you add the full path before the pyrcc5 command when you’re in the plugin folder?

So  you go to the plugin folder and there you run:
C:\OSGeo4W64\apps\Python36\Scripts\pyrcc5 –o resources.py resources.qrc

Michel
________________________________


Van: QGIS-Developer [mailto:qgis-developer-bounces at lists.osgeo.org] Namens Sophie Crommelinck
Verzonden: vrijdag 16 maart 2018 10:53
Aan: KOHLMANN Hannes <H.KOHLMANN at ove.at>; jef at norbit.de
CC: qgis-developer at lists.osgeo.org
Onderwerp: Re: [QGIS-Developer] Unable to compile QGIS3 plugin

I think my images broke while sending,
here they are again:

Jürgen's suggestion:
[cid:image002.jpg at 01D3BD17.8A7FB8C0]
Hannes' suggestion:
[cid:image004.jpg at 01D3BD17.8A7FB8C0]
python-core.bat
[cid:image005.png at 01D3BD17.8A7FB8C0]


2018-03-16 10:45 GMT+01:00 Sophie Crommelinck <sophie.crommelinck at gmail.com<mailto:sophie.crommelinck at gmail.com>>:
Hello Jürgen and Hannes,
thanks for your support. I tried both suggestions, with little success.
Jürgen's suggestion:
[http://?ui=2&ik=ad514a8e24&view=att&th=1622e15a2bbbae15&attid=0.1&disp=safe&realattid=ii_jetq74350_1622e15a2bbbae15&zw]
This creates the resources.py file (attached). However, when I open QGIS3 it crashes every time I reload the plugin (crash report attached).
Hannes' suggestion:
[http://?ui=2&ik=ad514a8e24&view=att&th=1622e24472fdda7d&attid=0.2&disp=safe&realattid=ii_jetqrnzt1_1622e24472fdda7d&zw]
which results in the same as above. However, here I am not entirely sure if I followed the suggestion correctly as I go back to the plugin folder for compiling.
Also, I wonder, why the result of calling python-qgis-dev.bat lists win32, while I have a win64 machine.

I also tried changing the python path as suggested in the stack exchange question to Python36 in C:\OSGeo4W64\etc\ini\python-core without success
[http://?ui=2&ik=ad514a8e24&view=att&th=1622e29d99d79ebd&attid=0.0.3&disp=safe&realattid=ii_jetqzhre4_1622e29d99d79ebd&zw]
Best,
Sophie




2018-03-16 1:11 GMT+01:00 KOHLMANN Hannes <H.KOHLMANN at ove.at<mailto:H.KOHLMANN at ove.at>>:
Hey Sophie!

There is one .bat file that does all the work of setting the Environment variables properly: /osgeo4w_root/bin/python-qgis-dev.bat
Call that file in the console and in the same console cd to the directory with the pyrcc.bat file (osgeo4w_root/apps/python36/scripts)

Here is the link to a gis.stackexchange question concerning that:
https://gis.stackexchange.com/questions/260743/how-to-compile-qtdesigner-user-interface-ui-and-resource-qrc-files-with-qg/264377#264377

Good luck and compiling ;)

Cheers,
Hannes
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org<mailto:QGIS-Developer at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180316/16d5d7da/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 22170 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180316/16d5d7da/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 33125 bytes
Desc: image004.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180316/16d5d7da/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 2629 bytes
Desc: image005.png
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180316/16d5d7da/attachment-0001.png>


More information about the QGIS-Developer mailing list