Bug report #11881

Updated by Alexander Bruy over 6 years ago

If I create a model (that includes at least 1 SAGA tool) in a QGIS installation that uses SAGA 2.0.8 and then this model is imported in a QGIS installation that uses a different SAGA version a python error is thrown



File "/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 192, in executeAlgorithm

alg = alg.getCopy()

File "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", line 164, in getCopy

newone.defineCharacteristics()

File "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", line 193, in defineCharacteristics

modelOutput = copy.deepcopy(alg.algorithm.getOutputFromName(out))

File "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", line 105, in algorithm

self._algInstance = ModelerUtils.getAlgorithm(self.consoleName).getCopy();

AttributeError: 'NoneType' object has no attribute 'getCopy'

Back