Create dataset shortcut from within Fit algos - Error when started from QGIS only

Issue #1314 resolved
Fabian Thiel created an issue

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)

  1. Andreas Rabe

    Or is a started Box mandatory for those custom widgets to work?

    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?

  2. Andreas Rabe

    We decided to just show a message to the user, that the EnMAP-Box needs to be opened manually.

  3. Log in to comment