nextgis / quickmapservices

QGIS plugin to find and add map services to a project in one click
http://plugins.qgis.org/plugins/quick_map_services/
GNU General Public License v2.0
170 stars 49 forks source link

Error on loading plugin QGIS 3.4.8 #198

Closed 4estone closed 3 years ago

4estone commented 5 years ago

When loading plugin, I get TypeError: 'QVariant' object is not subscriptable Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 335, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/sylvain.pierre/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services__init.py", line 35, in classFactory return QuickMapServices(iface) File "C:/Users/sylvain.pierre/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\quick_map_services.py", line 72, in init__ self.locale = Locale.get_locale() File "C:/Users/sylvain.pierre/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\plugin_locale.py", line 30, in get_locale return QSettings().value('locale/userLocale')[0:2] TypeError: 'QVariant' object is not subscriptable

Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Version de QGIS : 3.4.8-Madeira Madeira, 04ee8e0761

514ckw4r3 commented 3 years ago

Duplicate https://github.com/nextgis/quickmapservices/issues/174