-
assigned issue to
Test Classification Map
Running the 'Create Test Classification Map' (QGIS 3.16.2) I get the following error message:
Traceback (most recent call last): File "C:/Users/marco/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxgeoalgorithms\provider.py", line 152, in processAlgorithm result = self.processAlgorithm_() File "C:/Users/marco/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxgeoalgorithms\algorithms.py", line 831, in processAlgorithm_ import enmapboxtestdata File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'enmapboxtestdata'
Traceback (most recent call last): File "C:/Users/marco/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxgeoalgorithms\provider.py", line 152, in processAlgorithm result = self.processAlgorithm_() File "C:/Users/marco/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxgeoalgorithms\algorithms.py", line 831, in processAlgorithm_ import enmapboxtestdata File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'enmapboxtestdata' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/marco/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapboxgeoalgorithms\provider.py", line 166, in processAlgorithm raise Exception('unexpected error') Exception: unexpected error
Comments (10)
-
-
You have to download the testdata after installation:
-
- changed status to resolved
-
@Benjamin Jakimow maybe we could ask the user wether to download the testdata when starting the box for the first time?
@Fabian Thiel please add a note to the install instructions, that testdata can be downloaded via Project → Load Example Data
-
Can do this. But, is it possible to catch this error and report a more readable error message in the processing algorithm (with the instructions on how to download the testdata)?
-
I recommend to implement a quick test in
bool QgsProcessingAlgorithm::canExecute
and return a descriptive error message in case the required inputs / testdata are missing or outdated. -
good idea
-
- changed status to open
-
→ <<cset 1c3f0e8e36e7>>
-
- changed status to resolved
- Log in to comment