Issue with Sentinel Hub QGIS plugin

Hi !

I’m contacting you because I’ve an issue with Sentinel Hub QGIS plugin.
I was using it this morning to download some images, and during my work, plugin crashed.

I tried to reinstall Sentinel Hub QGIS plugin and QGIS. But nothing better happened.
My QGIS version is 2.18.19 for MacOSX and here is the error message :

Traceback (most recent call last):
File "/Users/timotheecolas/.qgis2/python/plugins/SentinelHub/", line 1249, in run
File "/Users/timotheecolas/.qgis2/python/plugins/SentinelHub/", line 268, in init_gui_settings
TypeError: setText(self, QString): argument 1 has unexpected type 'QPyNullVariant'

Could you help me ?

Hi Timothee,

it looks like the plugin has a problem handling local variables it stores in QGIS settings. I think the problem is specific only to some MacOSX systems.

Was this the first time you tried using SentinelHub plugin or did you use it before and this is the first time the problem occurred?

Thanks for letting us know about the problem. We will make a fix and release new version until tomorrow.

I’m using SentinelHub plugin for several weeks and it’s the first time this issue occurred.

It seems that download folder path variable, which plugin saved in QGIS settings, in your case somehow got set to some sort of a QPyNullVariant value instead of a string. No idea how this happened by we can fix plugin so that it would know how to handle such value and not crash.

In the mean time I think you could make plugin work again even without the new version. If you open QGIS local settings file which should be at location $HOME/Library/Preferences/org.qgis.qgis.plist, find lines where it says

instance_id=<your instance id>
download_folder=<something that is causing problems>

and delete line with download_folder=.... However you have to be careful not to change anything else. If you are not sure about that you can also wait the new plugin version.

New plugin version (1.3.3) has now been approved and made available at Official QGIS Repository. I hope that solves your issues, please let us know.

I updated it and it works perfectly.

Thank you a lot !