Bug report #11881

Processing: python error when loading a model that uses SAGA modules of a version that is different from the one configured locally

Added by Giovanni Manghi over 9 years ago. Updated over 6 years ago.

Assignee:Victor Olaya
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:wontfix
Crashes QGIS or corrupts data:No Copied to github as #:20095


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
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'


#1 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by Alexander Bruy over 6 years ago

  • Status changed from Open to Closed
  • Description updated (diff)

Closing as now Processing supports only single SAGA version.

#3 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to wontfix

Also available in: Atom PDF