Can't assign parent algorithms in Graphical Modeller due to Python error #19983
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: Jouko Jarnefelt (Jouko Jarnefelt)
Original Redmine Issue: 11750
Affected QGIS version: master
Redmine category:processing/modeller
Assignee: Victor Olaya
Python error described below occurs after adding parent algorithms to any algorithm and returning back to the Graphical Modeller window. KeyError value of the error varies according to the first selected parent algorithm in the parent algorithms dialog box. Somewhat interesting is that in earlier versions of QGIS algoritms in the parent algorithm dialog box were given a number in front of them according to the order they are executed. In the latest version (and in master) this seems to be missing/disables and only the name of the algorithm is shown which makes it also hard to be sure in which algorithm the assigning should be done. Don't know if this has anything to do with the bug, but to be clear about the dialog box appearence I attached a picture. After python error you can still continue editing model, but if the model is saved it is broken and cannot be opened again in modeller.
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\modeler\ModelerGraphicItem.py", line 353, in mousePressEvent1/apps/qgis/./python/plugins\processing\modeler\ModelerGraphicItem.py", line 182, in editElementself.action()
File "C:/OSGEO4
self.model.updateModelerView()
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\modeler\ModelerAlgorithm.py", line 464, in updateModelerView1/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py", line 345, in repaintModelself.modelerdialog.repaintModel()
File "C:/OSGEO4
self.scene.paintModel(self.alg)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerScene.py", line 108, in paintModel
arrow = ModelerArrowItem(self.algItems[depend], -1,
KeyError: 'Select by expression'
Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
Tested in all following versions:
OSGeo4W 2.6 (64bit)
Standalone 2.6 (64bit)
Master
The text was updated successfully, but these errors were encountered: