Create dataset shortcut from within Fit algos - Error when started from QGIS only
Issue #1314
resolved
When I use the Create XY dataset shortcut from within a Fit XY algo from the QGIS Processing Toolbox (i.e., Box is NOT started yet), the following error occurs:
An error has occurred while executing Python code:
AttributeError: 'NoneType' object has no attribute 'showProcessingAlgorithmDialog'
Traceback (most recent call last):
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapboxprocessing/parameter/processingparameterpicklefileclassificationdatasetwidget.py", line 142, in onCreateClicked
enmapBox.showProcessingAlgorithmDialog(alg, modal=True, wrapper=AlgorithmDialogWrapper, parent=self)
AttributeError: 'NoneType' object has no attribute 'showProcessingAlgorithmDialog'
Bug? Or is a started Box mandatory for those custom widgets to work?
Comments (4)
-
-
We decided to just show a message to the user, that the EnMAP-Box needs to be opened manually.
-
- changed milestone to 3.10 (Hotfix)
-
- changed status to resolved
- Log in to comment
It looks like so. I wasn’t aware of it either. But yes, it makes sense, because access the already opened PKL files from the Data Sources panel .
I will just open the EnMAP-Box, if it isn’t available at the time.
@Benjamin Jakimow do you see any problems with that?