Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on plugin install #2

Open
markjessell opened this issue Aug 30, 2023 · 2 comments
Open

Crash on plugin install #2

markjessell opened this issue Aug 30, 2023 · 2 comments

Comments

@markjessell
Copy link

Hi,

looks like a great idea for a plugin, but using version 3.32.0-Lima of QGIS I get this error on installation:

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

TypeError: 'QVariant' object is not subscriptable
Traceback (most recent call last):
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ThreePointMethod_init
.py", line 36, in classFactory
return ThreePointMethod(iface)
File "C:\Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ThreePointMethod\ThreePointMethod.py", line 59, in init
locale = QSettings().value('locale/userLocale')[0:2]
TypeError: 'QVariant' object is not subscriptable

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS version: 3.32.0-Lima Lima, 311a8cb8a6

Python Path:
C:\Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\OpenTopography-DEM-Downloader
C:/PROGRA1/QGIS331.0/apps/qgis/./python
C:/Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS331.0/apps/qgis/./python/plugins
C:\PROGRA1\QGIS331.0\apps\grass\grass82\etc\python
C:\Users\00073294\Documents
C:\Program Files\QGIS 3.32.0\bin\python39.zip
C:\PROGRA1\QGIS331.0\apps\Python39\DLLs
C:\PROGRA1\QGIS331.0\apps\Python39\lib
C:\Program Files\QGIS 3.32.0\bin
C:\Users\00073294\AppData\Roaming\Python\Python39\site-packages
C:\PROGRA1\QGIS331.0\apps\Python39
C:\PROGRA1\QGIS331.0\apps\Python39\lib\site-packages
C:\PROGRA1\QGIS331.0\apps\Python39\lib\site-packages\win32
C:\PROGRA1\QGIS331.0\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA1\QGIS331.0\apps\Python39\lib\site-packages\Pythonwin
C:/Users/00073294/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\00073294\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms
C:\Users\00073294\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\openlog\embedded_external_libs
.
C:/Users/00073294/Dropbox/cet_courses/python_for_explorers/Data for Python course/mwj/maps

@ewwbrach
Copy link
Contributor

ewwbrach commented Aug 30, 2023

Hi, please try deleting folder with the plugin. I found the similiar problem, and the most popular solutions that turned out to be effective is uninstalling and reinstalling the plugin, or restarting QGIS. It is a link to a similar problem and solution linz/linz-data-importer#146 (comment)

@markjessell
Copy link
Author

markjessell commented Aug 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants