[QGIS-Developer] (no subject)

Matthias Kuhn matthias at opengis.ch
Thu Jul 26 04:23:17 PDT 2018


Hi,

resource files (resources_rc.py) will need to be regenerated using
pyrcc5, see here http://pyqt.sourceforge.net/Docs/PyQt5/resources.html.

Best regards

Matthias


On 07/26/2018 01:19 PM, Dragi Kamov wrote:
> Dear Sir/Madam,
>
> I am writing to you because I got to a problem while adjusting my
> companies plugin for QGIS 3.x from QGIS 2.x. I am getting the
> following error and I was wondering if you could help me in solving
> it. Also, I am going to attach the python script which is causing the
> problem.
>
> TypeError: qRegisterResourceData(int, str, str, str): argument 2 has
> unexpected type 'str' Traceback (most recent call last): File
> "/usr/lib/python3/dist-packages/qgis/utils.py", line 337, in
> startPlugin plugins[packageName] = package.classFactory(iface) File
> "/home/dkamov/.local/share/QGIS/QGIS3/profiles/default/python/plugins/QgsWcpsClient1/__init__.py",
> line 12, in classFactory from .wcps_client import QgsWcpsClient1 File
> "/usr/lib/python3/dist-packages/qgis/utils.py", line 674, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level) File
> "/home/dkamov/.local/share/QGIS/QGIS3/profiles/default/python/plugins/QgsWcpsClient1/wcps_client.py",
> line 10, in from . import resources_rc File
> "/usr/lib/python3/dist-packages/qgis/utils.py", line 674, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level) File
> "/usr/lib/python3/dist-packages/qgis/utils.py", line 674, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level) File
> "/home/dkamov/.local/share/QGIS/QGIS3/profiles/default/python/plugins/QgsWcpsClient1/resources_rc.py",
> line 146, in qInitResources() File
> "/home/dkamov/.local/share/QGIS/QGIS3/profiles/default/python/plugins/QgsWcpsClient1/resources_rc.py",
> line 141, in qInitResources QtCore.qRegisterResourceData(0x01,
> qt_resource_struct, qt_resource_name, qt_resource_data) TypeError:
> qRegisterResourceData(int, str, str, str): argument 2 has unexpected
> type 'str'
>
> Thank you in advance.
>
> Sincerely,
> Dragi Kamov
> _______________________________________________
> 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
> -- 
> Sincerely,
> Dragi Kamov
> ___________________________________
> *Jacobs University Bremen*
> *BSc Computer Science*
> *Class of 2020*
> *College Ring 3, 28759 Bremen,*
> *Germany*
>
>
> _______________________________________________
> QGIS-Developer mailing list
> 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

-- 
Matthias Kuhn
matthias at opengis.ch <mailto:matthias at opengis.ch>
+41 (0)76 435 67 63 <tel:+41764356763>
OPENGIS.ch Logo <http://www.opengis.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180726/87ef8e45/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6671 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180726/87ef8e45/attachment.png>


More information about the QGIS-Developer mailing list