Open ianturton opened 4 years ago
Thank you for reporting the issue. This seems quite strange, since I have developed the plugin on Ubuntu 18.04 and have same Qt and QGIS versions. When using pyrcc5 all qt_resource_struct
s should be bytes instead of strings. In release versions they seem to be so. Did you try to compile resources.py
yourself? If that is the case, this line should produce the correct version: pyrcc5 resources.qrc -o resources.py
.
@Joonalai The same message is recieved on win10 with 3.10. Trued the latest release zip. I did not try to compile the resources but did get the exact same message Ian did.
That's odd... Can you check if the version from QGIS Plugins Repository works if installed trough QGIS?
@Joonalai Tried that one first and got the same message. That's why i tried the latest release from here. Did not try any earlier releases.
Alright, I will further investigate this.
I get the same result
Ian
On Wed, 15 Jan 2020 at 13:56, Joonalai notifications@github.com wrote:
That's odd... Can you check if the version from QGIS Plugins Repository https://plugins.qgis.org/plugins/GlobeBuilder/ works if installed trough QGIS?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GispoCoding/GlobeBuilder/issues/1?email_source=notifications&email_token=AAA55IKGBCQNGJM2YHH3PA3Q54IYLA5CNFSM4KG7PX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJAMKBY#issuecomment-574670087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA55INJ7KCWRVOLEKPHJU3Q54IYLANCNFSM4KG7PX4Q .
-- Ian Turton
Just got the same from the qgis plugin repo. Windows 10, qgis 3.10 plugin version lists as 0.3.0
I have tried installing the plugin with numerous different QGIS 3.x versions both on Ubuntu and on Windows. I even installed all the plugins mentioned in the Environment of the issue but I still cannot reproduce the bug and it works normally.
Have you had previously (or still) QGIS 2.x installed on the same machine? It seems that this error is mainly occurring when migrating plugins from QGIS 2 to QGIS 3 environment.
Nope, I've had 3.4 and upgraded from there to 3.8 then 3.10. This was a new laptop in September last year. 99.9% sure I never installed any of the 2 line on here.
@Joonalai I do have QGIS 2.18 installed on my windows machine, Tried and succeeded on my ubuntu 16.04 with QGIS 3.4, Have not tried updating to newer 3.x for testing.
In case it helps narrow things down the full text of the error I see:
I finally managed to replicate the issue. After restarting the QGIS profile with all the plugins described in the Environment installed I got the same error even though the resources.py
had bytes there instead of strings. I fixed this by removing the references to the resources from ui-file. Fix is coming shortly.
It seems that this issue is not fixed after all. I got reporting of the case where this issue occurs with the Globe Builder 0.5.0 with two other plugins installed: qgis2web and OSMDownloader. After experimenting with this I got the same exception:
Here the most significant part is:
File "/home/j/.local/share/QGIS/QGIS3/profiles/tmp2/python/plugins/qgis2web/resources.py", line 1251, in
qInitResources()
File "/home/j/.local/share/QGIS/QGIS3/profiles/tmp2/python/plugins/qgis2web/resources.py", line 1243, in qInitResources
So it seems that other plugin (here qgis2web) is affecting loading of Globe Builder somehow. This can be found also in @emilyselwood's traceback. I found a temporary fix to this:
Hope this helps. I will investigate the reason behind this a little later.
@ianturton I also noticed plugin isochrones to cause this issue. Solution above.
This might not be relevant anymore now that #13 is closed. Needs testing.
Apparently qRegisterResourceData(int, bytes, bytes, bytese): argument 2 has unexpected type 'str' at line 440 of resources.py.
Environment
QGIS version 3.10.1-A Coruña QGIS code revision ef24c526da Compiled against Qt 5.9.5 Running against Qt 5.9.5 Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3 Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771 Compiled against SQLite 3.22.0 Running against SQLite 3.22.0 PostgreSQL Client Version 10.10 (Ubuntu 10.10-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a QWT Version 6.1.3 QScintilla2 Version 2.10.2 PROJ.4 Version 493 OS Version Ubuntu 18.04.3 LTS Active python plugins EasyCustomLabeling; vrtbuilderplugin; autoSaver; QGIS3-getWKT; qgis_hats; MemoryLayerSaver; isochrones; firstaid; OSMDownloader; qchainage; plugin_reloader; profiletool; polystrip; save_attributes; cartogram3; Hqgis; pluginbuilder3; quick_map_services; pointsamplingtool; gml_application_schema_toolbox; DataPlotly; QuickWKT; timemanager; processing; MetaSearch; db_manager