MicheleTobias / LiteratureMapper

A QGIS plugin to add geoJSON geometries to records in a Zotero library
GNU General Public License v2.0
28 stars 7 forks source link

Rebuild resources file with Qt5 Designer #16

Closed wildintellect closed 5 years ago

wildintellect commented 5 years ago

I think we just need to resave the resources_rc.py from the Qt5 Designer

Couldn't load plugin 'LiteratureMapper' due to an error when calling its classFactory() method 

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 335, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/vulpes/.qgis3/profiles/default/python/plugins/LiteratureMapper/__init__.py", line 34, in classFactory
    from .literature_mapper import LiteratureMapper
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 672, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/vulpes/.qgis3/profiles/default/python/plugins/LiteratureMapper/literature_mapper.py", line 27, in 
    from . import resources_rc
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 672, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 672, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/vulpes/.qgis3/profiles/default/python/plugins/LiteratureMapper/resources_rc.py", line 133, in 
    qInitResources()
  File "/home/vulpes/.qgis3/profiles/default/python/plugins/LiteratureMapper/resources_rc.py", line 128, 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'

Python version: 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] 
QGIS version: 3.4.1-Madeira Madeira, 383851c 

Python Path:
/usr/share/qgis/python
/home/vulpes/.qgis3/profiles/default/python
/home/vulpes/.qgis3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python35.zip
/usr/lib/python3.5
/usr/lib/python3.5/plat-x86_64-linux-gnu
/usr/lib/python3.5/lib-dynload
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
/home/vulpes/.qgis3/profiles/default/python