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 > [email protected] <mailto:[email protected]> > 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 > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- Matthias Kuhn [email protected] <mailto:[email protected]> +41 (0)76 435 67 63 <tel:+41764356763> OPENGIS.ch Logo <http://www.opengis.ch>
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
