Error saving spectral library (as default gpkg) (3.9RC1)

Issue #732 resolved
Fabian Thiel created an issue

Export Spectral Profiles → Geopackage → Enter File + Layername → OK → Error

An error has occurred while executing Python code: 

Exception: Error when creating C:\Users\thielf54\Desktop\_temp\testlib.gpkg: Opening of data source in update mode failed (OGR error: ) 
Traceback (most recent call last):
  File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\enmapbox\externals\qps\speclib\gui\spectrallibrarywidget.py", line 499, in onExportProfiles
    files = SpectralLibraryExportDialog.exportProfiles(self.speclib(), parent=self)
  File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\enmapbox\externals\qps\speclib\core\spectrallibraryio.py", line 531, in exportProfiles
    return io.exportProfiles(path, settings, profiles, feedback)
  File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\enmapbox\externals\qps\speclib\io\geopackage.py", line 151, in exportProfiles
    raise Exception(f'Error when creating {path}: {writer.errorMessage()}')
Exception: Error when creating C:\Users\thielf54\Desktop\_temp\testlib.gpkg: Opening of data source in update mode failed (OGR error: )


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.20.3-Odense Odense, 495fbaec 

Comments (3)

  1. Log in to comment