2024年3月7日星期四

Check Python version

>>> import sys

>>> print(sys.version)

3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]


python3   --version


为什么安装'joinmultiplelines',会调用qgis2web

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


TypeError: qRegisterResourceData(int, bytes, bytes, bytes): argument 2 has unexpected type 'str' 

Traceback (most recent call last):

  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python\qgis\utils.py", line 423, in _startPlugin

    plugins[packageName] = package.classFactory(iface)

  File "C:\Users/27096/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\__init__.py", line 3, in classFactory

    from .joinmultiplelines import joinmultiplelines

  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

  File "C:\Users/27096/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\joinmultiplelines.py", line 61, in 

    import resources

  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

  File "C:\Users/27096/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\resources.py", line 1251, in 

    qInitResources()

  File "C:\Users/27096/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\resources.py", line 1242, in qInitResources

    QtCore.qRegisterResourceData(0x01, qt_resource_struct,

TypeError: qRegisterResourceData(int, bytes, bytes, bytes): argument 2 has unexpected type 'str'