[Qgis-developer] Sextante - error saving a model with Select by location tool
Pedro Venâncio
pedrongvenancio at yahoo.com
Mon Sep 17 15:42:50 PDT 2012
Hi,
I can not save a model in which is used the tool 'Select by location' from fTools.
When saving, it shows the error:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerDialog.py", line 219, in saveModel
text = self.alg.serialize()
File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py", line 305, in serialize
s+=unicode(self.algOutputs[i][out.name]) + "\n"
KeyError: 'OUTPUT'
Python version:
2.7.3 (default, Aug 1 2012, 05:27:35)
[GCC 4.6.3]
QGIS version:
1.9.0-Master Master, exported
Python path: ['/home/pedro/.qgis//python/plugins/ogrprocessing', '/home/pedro/.qgis//python/plugins/sextante', '/usr/share/qgis/python', '/home/pedro/.qgis//python', '/home/pedro/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/home/pedro/.qgis/python/plugins/mmqgis/forms', '/home/pedro/.qgis/python/plugins/qgis2kml', '/home/pedro/.qgis/python/plugins/qgis2kml', '/usr/share/qgis/python/plugins/fTools/tools']
And then, when I try to remove the module 'Select by location' from the model, it shows the error:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerGraphicItem.py", line 89, in removeElement
if not self.model.removeAlgorithm(self.elementIndex):
File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py", line 164, in removeAlgorithm
val = self.algOutputs[index][out.name]
KeyError: 'OUTPUT'
Python version:
2.7.3 (default, Aug 1 2012, 05:27:35)
[GCC 4.6.3]
Which will be the problem?
Thank you very much!
Best regards,
Pedro Venâncio
More information about the Qgis-developer
mailing list