[QGIS-Developer] (no subject)

2018-07-26 Thread Dragi Kamov
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@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*
# -*- coding: utf-8 -*-

# Resource object code
#
# Created: Mon Oct 13 12:16:59 2014
#  by: The Resource Compiler for PyQt (Qt v4.8.1)
#
# WARNING! All changes made in this file will be lost!

from qgis.PyQt import QtCore

qt_resource_data = "\x00\x00\x07\x23\x89\x50\x4e\x47\x0d\x0a\x1a\
\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x00\x17\x00\x00\x00\
\x18\x10\x02\x00\x00\x00\xce\x8e\x2d\x61\x00\x00\x00\x04\x67\x41\
\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\x01\x73\x52\
\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\x20\x63\x48\x52\x4d\x00\
\x00\x7a\x26\x00\x00\x80\x84\x00\x00\xfa\x00\x00\x00\x80\xe8\x00\
\x00\x75\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x70\x9c\
\xba\x51\x3c\x00\x00\x00\x06\x62\x4b\x47\x44\xff\xff\xff\xff\xff\
\xff\x09\x58\xf7\xdc\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x00\
\x48\x00\x00\x00\x48\x00\x46\xc9\x6b\x3e\x00\x00\x05\xda\x49\x44\
\x41\x54\x48\xc7\xbd\xd6\x7d\x6c\x56\xf5\x15\xc0\xf1\xef\xb9\xf7\
\x3e\x6f\x94\xf6\x29\xe5\xad\x4f\x81\x52\x0a\xc1\x41\x67\x87\xa5\
\x96\x6d\x25\x13\x15\x5c\x33\x18\x1b\x43\x10\x17\x5c\x1c\x2b\xc8\
\x8b\xe9\x1f\xc0\x02\x6c\xa8\x71\x51\x86\x18\xdd\x32\xb5\x38\x84\
\x8a\x5b\xb6\xa9\x0b\xbe\x80\x52\x50\xb2\x01\x45\xcd\xa6\x88\x93\
\x96\xda\xf5\x45\x3a\x0a\xf2\xd2\xda\xf6\x69\xfb\xb4\x4f\x6f\xef\
\xef\xec\x0f\x1a\x32\xb6\x3e\x42\xb7\x64\xe7\x9f\x9b\xdc\x5f\xee\
\x39\x9f\xfc\x7e\xe7\x77\x72\xa5\xae\x2e\x27\x27\x12\xe1\xff\x1f\
\x82\x9f\x00\xbd\xd4\x69\x8d\xcc\x94\xc7\xac\x17\x1d\x2c\xb2\xe9\
\xfb\x2f\xd3\x79\xe8\x75\x94\x04\xb0\xfa\x9f\xff\x1a\x8a\x4b\x90\
\x6c\x99\xa0\x47\x74\xbd\xd9\xeb\x10\xa4\x02\xf7\xba\x0a\xc7\xf1\
\x40\x26\x12\x46\xf5\x6e\x3d\x88\xe3\x95\x6a\x26\x41\x3a\x01\xf0\
\x21\x80\x41\x81\x20\x36\x50\x45\x2b\x22\x4d\xb2\x14\xd7\xfa\x96\
\x54\xd3\x43\x3b\xdd\x08\x82\x5c\x21\x5e\x06\x85\x18\x29\x77\x3a\
\x7c\xc2\x69\x96\x5c\x03\xd1\x8b\x07\x52\x24\xd9\x60\xca\xb4\x08\
\xac\x5d\x62\xa8\x49\x6d\xf1\x97\x72\x02\x87\x8b\x38\xb4\x03\x4a\
\x98\x00\x50\xc6\x29\xb0\x2a\xa4\x16\x3c\x4f\x83\xe4\x76\xfe\xce\
\x2d\x23\x87\x47\x99\x83\x4b\x1b\xdd\x08\x2e\xe6\xea\xdd\x73\x9c\
\xce\x89\x33\xe2\xe7\x12\x22\x0c\x06\x98\xca\x18\xd0\x6f\xeb\xbd\
\xd8\xfe\xd1\xd6\x1e\xbe\xee\x26\xeb\x61\x69\xde\x37\xe5\xb3\xdf\
\xcb\x78\x33\x97\x7a\xda\x78\x81\x49\x58\x3c\xc4\x9f\xb0\xac\x25\
\xb2\x95\x58\xef\x1f\xcc\xcd\x7a\x78\xe8\x38\x7b\x23\x39\xb3\x5e\
\xc9\x9c\xa3\x9e\x99\x4e\x80\x11\xa4\x90\x41\x1f\x13\x49\xba\xba\
\x94\x13\x78\xe1\x86\x13\x94\x24\xa4\x84\x08\xa0\x3a\x93\x2d\x60\
\xd9\xb2\x8e\x94\xe0\x72\x67\xa8\x3e\xb0\xf2\xcd\xfd\x59\xe6\xfb\
\x2f\xfe\xbc\xbe\x42\xf2\x92\xbd\x40\x26\xbb\xcc\x26\x6d\x60\x88\
\x2c\x96\x2f\xd3\xe5\x2e\x74\xc7\x90\xa7\x6b\xf5\x55\x6b\x77\x99\
\x7f\xfe\x56\xde\x4e\x3e\x3e\xee\x2

[QGIS-Developer] Fwd:

2018-07-26 Thread Dragi Kamov
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
# -*- coding: utf-8 -*-

# Resource object code
#
# Created: Mon Oct 13 12:16:59 2014
#  by: The Resource Compiler for PyQt (Qt v4.8.1)
#
# WARNING! All changes made in this file will be lost!

from qgis.PyQt import QtCore

qt_resource_data = "\x00\x00\x07\x23\x89\x50\x4e\x47\x0d\x0a\x1a\
\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x00\x17\x00\x00\x00\
\x18\x10\x02\x00\x00\x00\xce\x8e\x2d\x61\x00\x00\x00\x04\x67\x41\
\x4d\x41\x00\x00\xb1\x8f\x0b\xfc\x61\x05\x00\x00\x00\x01\x73\x52\
\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\x20\x63\x48\x52\x4d\x00\
\x00\x7a\x26\x00\x00\x80\x84\x00\x00\xfa\x00\x00\x00\x80\xe8\x00\
\x00\x75\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x70\x9c\
\xba\x51\x3c\x00\x00\x00\x06\x62\x4b\x47\x44\xff\xff\xff\xff\xff\
\xff\x09\x58\xf7\xdc\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x00\
\x48\x00\x00\x00\x48\x00\x46\xc9\x6b\x3e\x00\x00\x05\xda\x49\x44\
\x41\x54\x48\xc7\xbd\xd6\x7d\x6c\x56\xf5\x15\xc0\xf1\xef\xb9\xf7\
\x3e\x6f\x94\xf6\x29\xe5\xad\x4f\x81\x52\x0a\xc1\x41\x67\x87\xa5\
\x96\x6d\x25\x13\x15\x5c\x33\x18\x1b\x43\x10\x17\x5c\x1c\x2b\xc8\
\x8b\xe9\x1f\xc0\x02\x6c\xa8\x71\x51\x86\x18\xdd\x32\xb5\x38\x84\
\x8a\x5b\xb6\xa9\x0b\xbe\x80\x52\x50\xb2\x01\x45\xcd\xa6\x88\x93\
\x96\xda\xf5\x45\x3a\x0a\xf2\xd2\xda\xf6\x69\xfb\xb4\x4f\x6f\xef\
\xef\xec\x0f\x1a\x32\xb6\x3e\x42\xb7\x64\xe7\x9f\x9b\xdc\x5f\xee\
\x39\x9f\xfc\x7e\xe7\x77\x72\xa5\xae\x2e\x27\x27\x12\xe1\xff\x1f\
\x82\x9f\x00\xbd\xd4\x69\x8d\xcc\x94\xc7\xac\x17\x1d\x2c\xb2\xe9\
\xfb\x2f\xd3\x79\xe8\x75\x94\x04\xb0\xfa\x9f\xff\x1a\x8a\x4b\x90\
\x6c\x99\xa0\x47\x74\xbd\xd9\xeb\x10\xa4\x02\xf7\xba\x0a\xc7\xf1\
\x40\x26\x12\x46\xf5\x6e\x3d\x88\xe3\x95\x6a\x26\x41\x3a\x01\xf0\
\x21\x80\x41\x81\x20\x36\x50\x45\x2b\x22\x4d\xb2\x14\xd7\xfa\x96\
\x54\xd3\x43\x3b\xdd\x08\x82\x5c\x21\x5e\x06\x85\x18\x29\x77\x3a\
\x7c\xc2\x69\x96\x5c\x03\xd1\x8b\x07\x52\x24\xd9\x60\xca\xb4\x08\
\xac\x5d\x62\xa8\x49\x6d\xf1\x97\x72\x02\x87\x8b\x38\xb4\x03\x4a\
\x98\x00\x50\xc6\x29\xb0\x2a\xa4\x16\x3c\x4f\x83\xe4\x76\xfe\xce\
\x2d\x23\x87\x47\x99\x83\x4b\x1b\xdd\x08\x2e\xe6\xea\xdd\x73\x9c\
\xce\x89\x33\xe2\xe7\x12\x22\x0c\x06\x98\xca\x18\xd0\x6f\xeb\xbd\
\xd8\xfe\xd1\xd6\x1e\xbe\xee\x26\xeb\x61\x69\xde\x37\xe5\xb3\xdf\
\xcb\x78\x33\x97\x7a\xda\x78\x81\x49\x58\x3c\xc4\x9f\xb0\xac\x25\
\xb2\x95\x58\xef\x1f\xcc\xcd\x7a\x78\xe8\x38\x7b\x23\x39\xb3\x5e\
\xc9\x9c\xa3\x9e\x99\x4e\x80\x11\xa4\x90\x41\x1f\x13\x49\xba\xba\
\x94\x13\x78\xe1\x86\x13\x94\x24\xa4\x84\x08\xa0\x3a\x93\x2d\x60\
\xd9\xb2\x8e\x94\xe0\x72\x67\xa8\x3e\xb0\xf2\xcd\xfd\x59\xe6\xfb\
\x2f\xfe\xbc\xbe\x42\xf2\x92\xbd\x40\x26\xbb\xcc\x26\x6d\x60\x88\
\x2c\x96\x2f\xd3\xe5\x2e\x74\xc7\x90\xa7\x6b\xf5\x55\x6b\x77\x99\
\x7f\xfe\x56\xde\x4e\x3e\x3e\xee\x2d\x6a\x62\x3d\x7d\x13\xc9\xb1\
\xde\xe5\x38\x71\x86\xe2\xfc\x5b\x53\xb5\x7c\xb0\x7d\xd3\xb0\xf9\
\x09\x29\xd5\x34\xe2\xd3\x65\x9a\x47\xfd\x90\x0c\xdf\x3c\x76\x6e\
\x5e\xb5\x67\xb2\xfd\xcc\x2f\xb3\x8e\x86\x4c\xd5\x88\x11\xc1\xdf\
\x90\xdb\xf6\x5e\x47\xbe\xa4\xca\x16\x39\x48\x8b\x79\x46\x1f\x66\
\xa9\xbf\xd4\xff\xa8\xc9\x7d\xbe\x78\xf9\x22\x93\xbd\xe8\xbe\x69\
\x8f\x5b\x73\x9b\x93\xba\xd6\xd2\x6e\xd5\x5a\xdb\x7