PnGuadeloupe / db-style-manager

Improve the workflow for managing styles in PostgreSQL
1 stars 2 forks source link

Crash in QGIS 3.16.1 #9

Closed jbdesbas closed 3 years ago

jbdesbas commented 3 years ago

Hi, I am unable to run the plugin. Immediatly after install, an error is raised :

Impossible de charger l'extension 'db-style-manager' provoque une erreur lors de l'appel à sa méthode classFactory()

TypeError: 'QVariant' object is not subscriptable Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/jb/.local/share/QGIS/QGIS3/profiles/default/python/plugins/db-style-manager/init.py", line 34, in classFactory return DbStyleManager(iface) File "/home/jb/.local/share/QGIS/QGIS3/profiles/default/python/plugins/db-style-manager/plugin.py", line 61, in init locale = QSettings().value('locale/userLocale')[0:2] TypeError: 'QVariant' object is not subscriptable

Version de Python : 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] Version de QGIS : 3.16.1-Hannover Hannover, b381a90dca

Chemin Python : /usr/share/qgis/python /home/jb/.local/share/QGIS/QGIS3/profiles/default/python /home/jb/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 /usr/lib/python3.8/lib-dynload /home/jb/.local/lib/python3.8/site-packages /usr/local/lib/python3.8/dist-packages /usr/lib/python3/dist-packages /usr/lib/python3.8/dist-packages /home/jb/.local/share/QGIS/QGIS3/profiles/default/python /mnt/20fcc09a-8a1d-4cfb-bd76-916b293d8d21/jb

jbdesbas commented 3 years ago

Solved after qgis restart

Gustry commented 3 years ago

But this is a known issue I got on many plugins. So I it might raise again until further fix. The fix is not long.