Re: [QGIS-Developer] Unable to compile QGIS3 plugin
Hey, My problem is solved. I just created a new plugin with the QGIS Plug-In Builder and ran in the OSGeo4W Shell: cd C:\Users\xxx\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\myplugin call qt5_env.bat call py3_env.bat pyrcc5 -o resources.py resources.qrc This created the resources.py file and I could load the plugin without crash in QGIS. I am not sure what made QGIS crash when doing exactly this for the previous plugin, on which I I tried your suggestions. I attached both the resources.py and resources.qrc files of the previous plugin that caused the QGIS crashes. I will now continue working with the newly created and compiled one. Thanks for your support, Sophie 2018-03-23 11:54 GMT+01:00 Michel Stuyts <michel.stu...@edegem.be>: > Sophie, > > > > This means there is a probably something in your resources.py that > causes the crash. Could you share that file and your resources.qrc that you > used to generate resources.py? > > > > > > Michel > > > > *Van:* Sophie Crommelinck [mailto:sophie.crommeli...@gmail.com] > *Verzonden:* vrijdag 23 maart 2018 11:48 > *Aan:* Michel Stuyts <michel.stu...@edegem.be> > *CC:* qgis-developer@lists.osgeo.org > *Onderwerp:* Re: [QGIS-Developer] Unable to compile QGIS3 plugin > > > > @ Michel: Does my answer make sense to you? > > Does anyone have an additional idea that I could try to compile the > resource file successfully? > > Best, > > Sophie > > > > 2018-03-16 14:27 GMT+01:00 Sophie Crommelinck < > sophie.crommeli...@gmail.com>: > > Hi, > > then again a resources.py file is created that makes QGIS3 crash. > > Best, > > Sophie > > > > 2018-03-16 12:24 GMT+01:00 Michel Stuyts <michel.stu...@edegem.be>: > > And if you first run: > > call C:\OSGeo4W64\bin\py3_env.bat > > > > and after that: > > C:\OSGeo4W64\apps\Python36\Scripts\pyrcc5 –o resources.py resources.qrc > > > > > > Michel > > > > > > > > > # -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x04\x0a\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\ \x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\ \x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\ \x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\x01\ \x00\x9a\x9c\x18\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\ \x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x03\x8a\x49\x44\x41\x54\x48\ \xc7\xad\x95\x4b\x68\x5c\x55\x18\xc7\x7f\xe7\xdc\x7b\x67\xe6\xce\ \x4c\x66\x26\x49\xd3\x24\x26\xa6\xc6\xf8\x40\x21\xa5\x04\xb3\x28\ \xda\x98\x20\xa5\x0b\xad\x55\xa8\x2b\xc5\x50\x1f\xa0\x6e\x34\x2b\ \x45\x30\x14\x02\xba\x52\x69\x15\x17\x66\x63\x45\x97\x95\xa0\xad\ \x0b\xfb\xc0\x06\x25\xb6\x71\x61\x12\x41\x50\xdb\x2a\x21\xd1\xe2\ \x24\xf3\x9e\xc9\xcc\xbd\xe7\x1c\x17\x35\x43\x1e\x33\x21\xb6\xfd\ \x56\x87\xf3\x9d\xfb\xfb\x1e\xf7\xff\x9d\x23\x8c\x31\x43\x95\xf4\ \x85\x1e\x3f\x3b\x35\xac\xfd\xcc\x43\xdc\xa4\x49\x3b\xfe\x9d\x1d\ \xdb\x7b\x22\x90\x78\xf8\xb2\x28\xa7\xbe\x7d\xc1\x4b\x9d\x79\xdf\ \x18\x15\xe5\x16\x99\x10\x56\xde\x69\xdc\x3f\x22\xfd\xec\xd4\xf0\ \xad\x04\x03\x18\xa3\xa2\x7e\x76\x6a\x58\xde\x68\x2b\xb4\x36\xf8\ \xbe\xc6\x18\x53\xdb\xef\xe7\xfa\xec\xed\x67\x63\x10\x42\x00\xf0\ \xfb\xd5\x65\x2a\x15\x45\xc7\x6d\x0d\x00\xc4\xa2\xc1\xaa\x6f\x0d\ \x3e\x6c\xab\xc2\x1c\x56\xa4\x77\x4b\xb0\xf2\x35\x15\x5f\x21\x85\ \xe0\xc8\x6b\x5f\x92\x2d\x37\x33\x39\xf9\x03\x27\x8e\x1f\xa2\xf7\ \xbe\x9d\x04\x1c\x0b\x37\xe4\xac\xff\xa6\x30\x87\xbd\xba\x00\x6a\ \x06\x79\xe5\xf5\xaf\x89\xd9\x92\xc5\xcc\x0a\xd9\x7c\x19\xcf\xe9\ \xe2\xe4\xa9\x2f\x78\x7c\xff\x01\x72\x85\x0a\x2b\x65\x1f\xa5\x4c\ \xb5\xb2\x55\x16\x80\xbd\x31\xda\xda\x20\x1f\x7d\x3e\xcd\xc2\xfd\ \x59\xa6\x93\x39\x92\xd1\x22\xea\x9b\x16\xce\x9d\x3f\xce\xe0\x83\ \x03\x24\x82\x59\x3a\xdb\x7b\x88\xc7\x82\x68\x63\x58\xc9\xcc\x62\ \x8c\x21\x18\xb0\x6a\xc3\x37\x06\x49\x16\xff\x24\x6b\xa5\x49\xbb\ \x25\xbc\xa2\xa6\x21\xbb\x40\x7f\xdf\x00\x83\xbd\x01\x8e\x3c\xd5\ \x45\xd7\x8e\x6b\x9c\x9c\x98\x25\x1a\xb6\xe8\xbe\x3d\xc2\xdd\x77\ \x44\x48\xc4\x1c\x22\xe1\xeb\x58\x59\xaf\xcf\xd3\x33\x29\x2e\x34\ \x2d\x91\x93\x3e\xbe\x34\x78\x01\xc5\xe2\x61\xc5\xae\x72\x8e\x70\ \xc8\xc2\x0d\x5a\xbc\xf5\xee\x2f\x9c\xfa\x3e\x86\x69\x7a\x8e\xcf\ \x26\xe6\xf9\x63\xa1\x44\xa1\xa4\xd0\xda\x6c\x0d\x2f\x15\x7c\xb4\ \x67\x28\x59\x0a\xcf\xd6\x54\xe2\x06\x13\x87\x2b\x6f\x68\xa6\x27\ \xaf\x31\x32\x36\xc7\xb2\x7f\x17\xef\x7d\x7c\x8c\x33\x67\xcf\x12\ \x70\x24\x4a\x69\xd6\x6a\x46\xd6\xd3\x70\x72\xa9\x82\x67\x34\x45\ \xad\x28\xdb\x1a\x15\x34\x98\xff\x46\xed\xef\x37\x0d\x99\xbf\x4a\ \x3c\x30\x38\xc0\xc8\x4b\xaf\x92\x5a\
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
Sophie, This means there is a probably something in your resources.py that causes the crash. Could you share that file and your resources.qrc that you used to generate resources.py? Michel Van: Sophie Crommelinck [mailto:sophie.crommeli...@gmail.com] Verzonden: vrijdag 23 maart 2018 11:48 Aan: Michel Stuyts <michel.stu...@edegem.be> CC: qgis-developer@lists.osgeo.org Onderwerp: Re: [QGIS-Developer] Unable to compile QGIS3 plugin @ Michel: Does my answer make sense to you? Does anyone have an additional idea that I could try to compile the resource file successfully? Best, Sophie 2018-03-16 14:27 GMT+01:00 Sophie Crommelinck <sophie.crommeli...@gmail.com<mailto:sophie.crommeli...@gmail.com>>: Hi, then again a resources.py file is created that makes QGIS3 crash. Best, Sophie 2018-03-16 12:24 GMT+01:00 Michel Stuyts <michel.stu...@edegem.be<mailto:michel.stu...@edegem.be>>: And if you first run: call C:\OSGeo4W64\bin\py3_env.bat and after that: C:\OSGeo4W64\apps\Python36\Scripts\pyrcc5 –o resources.py resources.qrc Michel ___ 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
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
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-boun...@lists.osgeo.org] Namens Sophie Crommelinck Verzonden: vrijdag 16 maart 2018 10:53 Aan: KOHLMANN Hannes <h.kohlm...@ove.at>; j...@norbit.de CC: qgis-developer@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@01D3BD17.8A7FB8C0] Hannes' suggestion: [cid:image004.jpg@01D3BD17.8A7FB8C0] python-core.bat [cid:image005.png@01D3BD17.8A7FB8C0] 2018-03-16 10:45 GMT+01:00 Sophie Crommelinck <sophie.crommeli...@gmail.com<mailto:sophie.crommeli...@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=ad514a8e24=att=1622e15a2bbbae15=0.1=safe=ii_jetq74350_1622e15a2bbbae15] 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=ad514a8e24=att=1622e24472fdda7d=0.2=safe=ii_jetqrnzt1_1622e24472fdda7d] 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=ad514a8e24=att=1622e29d99d79ebd=0.0.3=safe=ii_jetqzhre4_1622e29d99d79ebd] Best, Sophie 2018-03-16 1:11 GMT+01:00 KOHLMANN Hannes <h.kohlm...@ove.at<mailto:h.kohlm...@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@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ 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
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
Hey Sophie! Exactly. You first call …/pyrcc.bat without any arguments, and the console tells you what arguments pyrcc.bat takes. Then you change directory, away from the pyrcc.bat and try to call after having changed to the directory where your resource file is. Remain in the folder where the pyrcc5.bat is (otherwise the console will not know the command) and give the absolute paths of your target files in quotation mark (in case you have whitespaces in your dirs.) like I did in the below screenshot. You might encounter the same problem with the pyuic5.bat -> which you use, when you want to translate the .ui file to python code with the pyqt5 bindings. In that case, I built myself a .bat file with the following commands, making the same as Jürgen suggested, (just in case of further tampering attempts ;) ) REM take all .ui files and apply it to the pyuic5.bat to all of them and output them as .py files REM when calling this batch file the first argument needs to be the path to /python36/script pushd %~dp0 echo off call c: cd %1 cd ../../../bin/ call "o4w_env.bat" call qt5_env.bat call py3_env.bat path %OSGEO4W_ROOT%\apps\qgis-dev\bin;%PATH% set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis-dev set GDAL_FILENAME_IS_UTF8=YES rem Set VSI cache to be used as buffer, see #6448 set VSI_CACHE=TRUE set VSI_CACHE_SIZE=100 set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis-dev\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins set PYTHONPATH=%OSGEO4W_ROOT%\apps\qgis-dev\python;%PYTHONPATH% echo off popd for %%i in (*.ui) do ( call "%1\pyuic5.bat" -o "%%~ni.py" "%%~ni.ui" ) I hope that helped Cheers, Hannes [cid:image006.png@01D3BD18.F7381970] Von: Sophie Crommelinck [mailto:sophie.crommeli...@gmail.com] Gesendet: Freitag, 16. März 2018 10:53 An: KOHLMANN Hannes; j...@norbit.de Cc: qgis-developer@lists.osgeo.org Betreff: 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@01D3BD19.8B6D6230] Hannes' suggestion: [cid:image004.jpg@01D3BD19.8B6D6230] python-core.bat [cid:image005.png@01D3BD16.85DD2830] 2018-03-16 10:45 GMT+01:00 Sophie Crommelinck <sophie.crommeli...@gmail.com<mailto:sophie.crommeli...@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=ad514a8e24=att=1622e15a2bbbae15=0.1=safe=ii_jetq74350_1622e15a2bbbae15] 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=ad514a8e24=att=1622e24472fdda7d=0.2=safe=ii_jetqrnzt1_1622e24472fdda7d] 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=ad514a8e24=att=1622e29d99d79ebd=0.0.3=safe=ii_jetqzhre4_1622e29d99d79ebd] Best, Sophie 2018-03-16 1:11 GMT+01:00 KOHLMANN Hannes <h.kohlm...@ove.at<mailto:h.kohlm...@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@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ 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
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
I think my images broke while sending, here they are again: *Jürgen's suggestion:* *Hannes' suggestion:* *python-core.bat* 2018-03-16 10:45 GMT+01:00 Sophie Crommelinck: > Hello Jürgen and Hannes, > > thanks for your support. I tried both suggestions, with little success. > > *Jürgen's suggestion:* > > 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:* > > 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 > > > Best, > > Sophie > > > > > > 2018-03-16 1:11 GMT+01:00 KOHLMANN Hannes : > >> 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-compil >> e-qtdesigner-user-interface-ui-and-resource-qrc-files- >> with-qg/264377#264377 >> >> Good luck and compiling ;) >> >> Cheers, >> Hannes >> ___ >> 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 > > > ___ 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
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
Hello Jürgen and Hannes, thanks for your support. I tried both suggestions, with little success. *Jürgen's suggestion:* 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:* 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 Best, Sophie 2018-03-16 1:11 GMT+01:00 KOHLMANN Hannes: > 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer # -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x04\x0a\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x17\x00\x00\x00\x18\x08\x06\x00\x00\x00\x11\x7c\x66\x75\ \x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\ \x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\ \x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\x01\ \x00\x9a\x9c\x18\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd9\x02\x15\ \x16\x11\x2c\x9d\x48\x83\xbb\x00\x00\x03\x8a\x49\x44\x41\x54\x48\ \xc7\xad\x95\x4b\x68\x5c\x55\x18\xc7\x7f\xe7\xdc\x7b\x67\xe6\xce\ \x4c\x66\x26\x49\xd3\x24\x26\xa6\xc6\xf8\x40\x21\xa5\x04\xb3\x28\ \xda\x98\x20\xa5\x0b\xad\x55\xa8\x2b\xc5\x50\x1f\xa0\x6e\x34\x2b\ \x45\x30\x14\x02\xba\x52\x69\x15\x17\x66\x63\x45\x97\x95\xa0\xad\ \x0b\xfb\xc0\x06\x25\xb6\x71\x61\x12\x41\x50\xdb\x2a\x21\xd1\xe2\ \x24\xf3\x9e\xc9\xcc\xbd\xe7\x1c\x17\x35\x43\x1e\x33\x21\xb6\xfd\ \x56\x87\xf3\x9d\xfb\xfb\x1e\xf7\xff\x9d\x23\x8c\x31\x43\x95\xf4\ \x85\x1e\x3f\x3b\x35\xac\xfd\xcc\x43\xdc\xa4\x49\x3b\xfe\x9d\x1d\ \xdb\x7b\x22\x90\x78\xf8\xb2\x28\xa7\xbe\x7d\xc1\x4b\x9d\x79\xdf\ \x18\x15\xe5\x16\x99\x10\x56\xde\x69\xdc\x3f\x22\xfd\xec\xd4\xf0\ \xad\x04\x03\x18\xa3\xa2\x7e\x76\x6a\x58\xde\x68\x2b\xb4\x36\xf8\ \xbe\xc6\x18\x53\xdb\xef\xe7\xfa\xec\xed\x67\x63\x10\x42\x00\xf0\ \xfb\xd5\x65\x2a\x15\x45\xc7\x6d\x0d\x00\xc4\xa2\xc1\xaa\x6f\x0d\ \x3e\x6c\xab\xc2\x1c\x56\xa4\x77\x4b\xb0\xf2\x35\x15\x5f\x21\x85\ \xe0\xc8\x6b\x5f\x92\x2d\x37\x33\x39\xf9\x03\x27\x8e\x1f\xa2\xf7\ \xbe\x9d\x04\x1c\x0b\x37\xe4\xac\xff\xa6\x30\x87\xbd\xba\x00\x6a\ \x06\x79\xe5\xf5\xaf\x89\xd9\x92\xc5\xcc\x0a\xd9\x7c\x19\xcf\xe9\ \xe2\xe4\xa9\x2f\x78\x7c\xff\x01\x72\x85\x0a\x2b\x65\x1f\xa5\x4c\ \xb5\xb2\x55\x16\x80\xbd\x31\xda\xda\x20\x1f\x7d\x3e\xcd\xc2\xfd\ \x59\xa6\x93\x39\x92\xd1\x22\xea\x9b\x16\xce\x9d\x3f\xce\xe0\x83\ \x03\x24\x82\x59\x3a\xdb\x7b\x88\xc7\x82\x68\x63\x58\xc9\xcc\x62\ \x8c\x21\x18\xb0\x6a\xc3\x37\x06\x49\x16\xff\x24\x6b\xa5\x49\xbb\ \x25\xbc\xa2\xa6\x21\xbb\x40\x7f\xdf\x00\x83\xbd\x01\x8e\x3c\xd5\ \x45\xd7\x8e\x6b\x9c\x9c\x98\x25\x1a\xb6\xe8\xbe\x3d\xc2\xdd\x77\ \x44\x48\xc4\x1c\x22\xe1\xeb\x58\x59\xaf\xcf\xd3\x33\x29\x2e\x34\ \x2d\x91\x93\x3e\xbe\x34\x78\x01\xc5\xe2\x61\xc5\xae\x72\x8e\x70\ \xc8\xc2\x0d\x5a\xbc\xf5\xee\x2f\x9c\xfa\x3e\x86\x69\x7a\x8e\xcf\ \x26\xe6\xf9\x63\xa1\x44\xa1\xa4\xd0\xda\x6c\x0d\x2f\x15\x7c\xb4\ \x67\x28\x59\x0a\xcf\xd6\x54\xe2\x06\x13\x87\x2b\x6f\x68\xa6\x27\ \xaf\x31\x32\x36\xc7\xb2\x7f\x17\xef\x7d\x7c\x8c\x33\x67\xcf\x12\ \x70\x24\x4a\x69\xd6\x6a\x46\xd6\xd3\x70\x72\xa9\x82\x67\x34\x45\ \xad\x28\xdb\x1a\x15\x34\x98\xff\x46\xed\xef\x37\x0d\x99\xbf\x4a\ \x3c\x30\x38\xc0\xc8\x4b\xaf\x92\x5a\x9c\xe2\xe0\x23\x6d\x74\xb4\ \xba\x84\x5d\x0b\x29\x45\x7d\xb8\x94\x82\x96\xb6\x10\xf3\xc5\x12\ \x2a\xef\x53\x11\x1a\x63\xad\x3f\x93\x19\x85\xf1\xb1\x77\x58\x5a\ \xf8\x99\x97\x9f\xe9\xa6\x75\x47\x90\xc6\xb8\x43\xd8\xb5\xb6\xce\ \xfc\xfa\xfd\x00\xfb\x3e\xf4\xc8\x05\x35\xba\x5e\xeb\x46\x21\xf9\ \xcf\x0a\xa9\x8c\x87\xe3\x48\xdc\x90\xb5\x6e\x98\x6a\xaa\x65\xf2\ \x52\x92\x43\x2f\x5e\xc2\x8c\x02\x1a\x10\xf5\x07\xac\xc3\x75\x70\ \x83\x92\x80\xb3\xf9\xd0\x26\xf8\x8f\xb3\x29\xc6\x3e\xb8\x8c\x19\
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
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@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Unable to compile QGIS3 plugin
Hi Sophie, On Thu, 15. Mar 2018 at 16:54:45 +0100, Sophie Crommelinck wrote: > Any further idea on what I could try? run call qt5_env.bat call py3_env.bat from the OSGeo4W shell before calling pyrcc5. 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 http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode signature.asc Description: PGP signature ___ 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
[QGIS-Developer] Unable to compile QGIS3 plugin
Hello, I would like to make a QGIS3 plugin. I have created the template with the 'Plugin Builder', which creates the plugin folder in C:\Users\xxx\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins. When I then open the OSGeo4WShell, navigate to the folder and enter 'make', the following error occurs: When running 'pyrcc5 -o resources.py resources.qrc' (which should do the same) the following error occurs: I thought it might have something to do with Python3 not properly installed or connected to QGIS3 and reinstalled QGIS and Python with the OSGeo4W installer without success. I am a little confused by the many pythons installed somewhere from OSGeo4W and my local Python 2 and 3. I will try reinstalling all parts to get a better feeling for what comes from where. Any further idea on what I could try? Thanks in advance, Sophie ___ 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