lutraconsulting / serval

QGIS plugin for setting raster pixel values
41 stars 11 forks source link

KeyError when loading layer into QGIS #46

Closed AlisterH closed 1 year ago

AlisterH commented 1 year ago

Serval produces an error message like this when certain layers are loaded into QGIS:


KeyError: 
Traceback (most recent call last):
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Serval\serval.py", line 734, in set_active_raster
    supported, unsupported_type = self.handler.write_supported()
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Serval\raster_handler.py", line 79, in write_supported
    msg = f"{dtypes[self.provider.dataType(nr)]['name']} (band {nr})"
KeyError: 

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.3-Lima Lima, 67d46100b5 

Here is an example file: Stage 1 results extent - Copy.zip

erpas commented 1 year ago

Thanks for reporting the problem!

Fixed in v. 3.32.0 - to be released soon.