[Speclib/Ubuntu 20.04/GDAL 3.0.4] TypeError: in method 'Driver_Create', argument 6 of type 'GDALDataType'

Issue #1336 resolved
Fabian Thiel created an issue

Probably related to the dated GDAL version?

Steps to reproduce:

  • Open testdata
  • Open Speclib
  • Import profiles from raster + vector
  • Click OK
TypeError: in method 'Driver_Create', argument 6 of type 'GDALDataType' 
Traceback (most recent call last):
  File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/speclib/gui/spectrallibrarywidget.py", line 594, in onImportProfiles
    SpectralLibraryImportDialog.importProfiles(self.speclib(), parent=self)
  File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/speclib/core/spectrallibraryio.py", line 610, in importProfiles
    profiles = io.importProfiles(source, settings, feedback)
  File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/speclib/io/rastersources.py", line 440, in importProfiles
    for p in generator:
  File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/speclib/io/rastersources.py", line 557, in readRasterVector
    fid_positions, no_fid = fid2pixelindices(ds, vector,
  File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/utils.py", line 951, in fid2pixelindices
    dsMEM: gdal.Dataset = gdal.GetDriverByName('MEM') \
  File "/usr/lib/python3/dist-packages/osgeo/gdal.py", line 1676, in Create
    return _gdal.Driver_Create(self, *args, **kwargs)
TypeError: in method 'Driver_Create', argument 6 of type 'GDALDataType'

Comments (2)

  1. Log in to comment