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

TypeError: 'QVariant' object is not subscriptable #146

Open
billgeo opened this issue Jun 30, 2021 · 5 comments
Open

TypeError: 'QVariant' object is not subscriptable #146

billgeo opened this issue Jun 30, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@billgeo
Copy link
Contributor

billgeo commented Jun 30, 2021

I just tried installing the LINZ data importer plugin in QGIS 3.16.7 but got an error message (screenshot attached) and then figured out that I could successfully install it if I didn’t have a project already open, and then once installed, was only able to find the LINZ logo after restarting the whole program. Not sure if this is useful info to you or not. Possibly just issues you wouldn’t have any control over, with the version of QGIS I’m using? Simon suggested I email to let you know anyway.

image

@billgeo
Copy link
Contributor Author

billgeo commented Jun 30, 2021

Looks like this has occurred in other plugins and most people suggest uninstalling and reinstalling the plugin, or restarting QGIS.

ghtmtt/DataPlotly#78
PANOimagen/batch_hillshader#4

@billgeo
Copy link
Contributor Author

billgeo commented Jun 30, 2021

Or this plugin seems to have resolved it? nextgis/quickmapservices@b6ddcd8

@billgeo billgeo added the bug Something isn't working label Jul 22, 2021
@AlisterH
Copy link

Or this plugin seems to have resolved it? nextgis/quickmapservices@b6ddcd8

Looking at the same issue with another plugin here, it seems you also need to change from using QSettings to QgsSettings

@FLO-2DKaren
Copy link

This is a bit old but one easy test is to delete the QGIS profile and rebuild it by restarting QGIS and reinstalling the plugins.
The profile is in the C:\Users\YourComputerLoginName\AppData\Roaming\QGIS
I typically delete QGIS folder and rebuild it by Opening QGIS and reinstalling plugins.
It might work to delete the Plugins folder only.

@AlisterH
Copy link

AlisterH commented May 3, 2023

Or this plugin seems to have resolved it? nextgis/quickmapservices@b6ddcd8

Looking at the same issue with another plugin here, it seems you also need to change from using QSettings to QgsSettings

These changes should probably be made, rather than the plugin failing cryptically like this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants