<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="default-style">
Hi List
</div>
<div class="default-style">
</div>
<div class="default-style">
I keep getting an error when loading or installing plugins as 'Geometry Paster', 'Geodata to ENVI-met' and many others. It seems not to be a plugin related error, since it happens with many plugins. Or is it?
</div>
<div class="default-style">
</div>
<div class="default-style">
I'm working with QGIS Firenze ltr and had the problem with Biatowieza before. The plugins where updated in this year and are not outdated. In the web I find old error reports but the solutions seem not to fit. It seems to have to do with a 'locale' Setting:
</div>
<div class="default-style">
<div style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">
<span style="font-family: 'Courier New';">locale = QSettings().value('locale/userLocale')[0:2]<br>TypeError: 'NoneType' object is not subscriptable</span>
</div>
<div>
</div>
<div class="default-style">
Any hints, how I could solve this?
</div>
<div class="default-style">
</div>
<div class="default-style">
Thank you.
</div>
<div class="default-style">
Bruno
</div>
<div class="default-style">
</div>
<div class="default-style">
The whole report:
</div>
<div class="default-style">
</div>
<div class="default-style">
<div style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">
<span style="font-weight: 600; color: #ff0000;">Couldn't load plugin 'geodata2envimet' due to an error when calling its classFactory() method</span>
</div>
<div>
</div>
<h3 style="-qt-block-indent: 0; text-indent: 0px; margin: 14px 0px 12px 0px;"><span style="font-size: large; font-weight: 600;">TypeError: 'NoneType' object is not subscriptable </span></h3>
<pre style="-qt-block-indent: 0; text-indent: 0px; margin: 12px 0px 12px 0px;"><span style="font-family: 'Courier New';">Traceback (most recent call last):<br> File "C:\PROGRA~1/QGIS32~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin<br> plugins[packageName] = package.classFactory(iface)<br> File "C:\Users/icuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geodata2envimet\__init__.py", line 36, in classFactory<br> return Geo2ENVImet(iface)<br> File "C:\Users/icuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geodata2envimet\geodata2ENVImet.py", line 2553, in __init__<br> locale = QSettings().value('locale/userLocale')[0:2]<br>TypeError: 'NoneType' object is not subscriptable<br></span></pre>
<div style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">
<br><span style="font-weight: 600;">Python version:</span> 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
<br><span style="font-weight: 600;">QGIS version:</span> 3.28.4-Firenze Firenze, fd0fb72ab3
</div>
<div>
</div>
<h4 style="-qt-block-indent: 0; text-indent: 0px; margin: 12px 0px 12px 0px;"><span style="font-size: medium; font-weight: 600;">Python Path:</span></h4>
<ul style="-qt-list-indent: 1; margin: 0px;">
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 12px 0px 0px 0px;">C:/PROGRA~1/QGIS32~1.4/apps/qgis-ltr/./python</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:/Users/icuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:/Users/icuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:/PROGRA~1/QGIS32~1.4/apps/qgis-ltr/./python/plugins</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\Program Files\QGIS 3.28.4\bin\python39.zip</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\DLLs</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\lib</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\Program Files\QGIS 3.28.4\bin</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\Users\icuser\AppData\Roaming\Python\Python39\site-packages</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\lib\site-packages</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\lib\site-packages\win32</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\lib\site-packages\win32\lib</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:\PROGRA~1\QGIS32~1.4\apps\Python39\lib\site-packages\Pythonwin</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">C:/Users/icuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python</li>
<li style="-qt-block-indent: 0; text-indent: 0px; margin: 0px 0px 12px 0px;">C:/data/Solothurn_Mikroklima</li>
</ul>
</div>
</div>
<div class="default-style">
</div>
<div class="default-style">
</div>
</body>
</html>