Test Classification Map

Issue #607 resolved
Former user created an issue

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)

  1. Andreas Janz

    @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

  2. Fabian Thiel

    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)?

  3. Benjamin Jakimow

    I recommend to implement a quick test inbool QgsProcessingAlgorithm::canExecute and return a descriptive error message in case the required inputs / testdata are missing or outdated.

  4. Log in to comment