AssertionError while opening Spectral Library in enmap-box
An error has occurred while executing Python code:
AssertionError Traceback (most recent call last): File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 848, in setCurrentLocation self.loadCurrentMapSpectra(spatialPoint, mapCanvas) File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 559, in loadCurrentMapSpectra self.setCurrentSpectra(currentSpectra) File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 873, in setCurrentSpectra dock = self.createDock('SPECLIB') File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 907, in createDock return self.dockManager.createDock(args, kwds) File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dockmanager.py", line 1365, in createDock dock = SpectralLibraryDock(args, **kwds) File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/docks.py", line 958, in init self.mSpeclibWidget = SpectralLibraryWidget(parent=self, speclib=speclib) File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/speclib/spectrallibraries.py", line 3088, in init speclib = SpectralLibrary() File "/home/poinck/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/speclib/spectrallibraries.py", line 1649, in init assert isinstance(drv, ogr.Driver) AssertionError
Python version: 3.6.9 (default, Oct 16 2019, 19:24:54) [GCC 8.3.0] QGIS version: 3.4.12-Madeira Madeira, exported
Comments (5)
-
-
- changed status to on hold
-
Issue
#311was marked as a duplicate of this issue. -
addresses
#312: initial dependencycheck.py checks for GDAL/OGR GPKG driverSigned-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de benjamin.jakimow@geo.hu-berlin.de
→ <<cset b42e1ecc6e80>>
-
- changed status to closed
- Log in to comment
The EnMAP-Box requires that your gdal installation supports GeoPackages.
I assume that your Linux installation does not, e.g. because GDAL was not compiled with GPKG support. In addition, your QGIS is quite outdated. Please install the recent QGIS (3.10 LTR or even bettern, 3.12) and try again.
The following code needs to pass the assert statement in your QGIS python shell: