QGIS Version: 3.42.1 - Münster
OS: Windows 11
Installing the DMI Plugin via the plugins manager or using the latest .zip donwloaded from the releases (1.0.6) results in the following error.
Couldn't load plugin 'DMI_Open_Data' due to an error when calling its classFactory() method
TypeError: 'QVariant' object is not subscriptable
Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 478, in startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\DMI_Open_Data_init.py", line 13, in classFactory
return DMIOpenData(iface)
^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\DMI_Open_Data\DMI_Open_Data.py", line 35, in init
locale = QSettings().value('locale/userLocale')[0:2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'QVariant' object is not subscriptable
Python version: 3.12.10 (main, Apr 9 2025, 08:14:47) [MSC v.1943 64 bit (AMD64)]
QGIS version: 3.42.1-Münster Münster, e84bda93b8
Python Path:
C:/OSGeo4W/apps/qgis/./python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis/./python/plugins
C:\OSGeo4W\apps\grass\grass84\etc\python
C:\Users\User\OneDrive\Documents
C:\OSGeo4W\bin\python312.zip
C:\OSGeo4W\apps\Python312\DLLs
C:\OSGeo4W\apps\Python312\Lib
C:\OSGeo4W\bin
C:\OSGeo4W\apps\Python312
C:\OSGeo4W\apps\Python312\Lib\site-packages
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python312\Lib\site-packages\Pythonwin
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python
QGIS Version: 3.42.1 - Münster
OS: Windows 11
Installing the DMI Plugin via the plugins manager or using the latest .zip donwloaded from the releases (1.0.6) results in the following error.
Couldn't load plugin 'DMI_Open_Data' due to an error when calling its classFactory() method
TypeError: 'QVariant' object is not subscriptable
Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 478, in startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\DMI_Open_Data_init.py", line 13, in classFactory
return DMIOpenData(iface)
^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\DMI_Open_Data\DMI_Open_Data.py", line 35, in init
locale = QSettings().value('locale/userLocale')[0:2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'QVariant' object is not subscriptable
Python version: 3.12.10 (main, Apr 9 2025, 08:14:47) [MSC v.1943 64 bit (AMD64)]
QGIS version: 3.42.1-Münster Münster, e84bda93b8
Python Path:
C:/OSGeo4W/apps/qgis/./python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis/./python/plugins
C:\OSGeo4W\apps\grass\grass84\etc\python
C:\Users\User\OneDrive\Documents
C:\OSGeo4W\bin\python312.zip
C:\OSGeo4W\apps\Python312\DLLs
C:\OSGeo4W\apps\Python312\Lib
C:\OSGeo4W\bin
C:\OSGeo4W\apps\Python312
C:\OSGeo4W\apps\Python312\Lib\site-packages
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python312\Lib\site-packages\Pythonwin
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python