Bug #5936

Impossible to remove added variables or actions

Added by Filipe Dias 12 months ago. Updated 12 months ago.

Status:Closed Start Date:07/04/2012
Priority:Normal Due date:
Assigned to:Victor Olaya % Done:

0%

Category:Modeler
Target version:-
Patch supplied:No

Description

It is not possible to remove added variables or actions. Sextante always returns this message "Other elements depend on the selected one. Remove them before trying to remove them" regardless of the user does.

I also tried to remove "Add field field to attributes table" and got this error:

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:/Users/fd/.qgis//python/plugins\sextante\modeler\ModelerGraphicItem.py", line 84, in removeElement
if not self.model.removeAlgorithm(self.elementIndex):
File "C:/Users/fd/.qgis//python/plugins\sextante\modeler\ModelerAlgorithm.py", line 161, in removeAlgorithm
val = self.algOutputs[index][out.name]
KeyError: 'OUTPUT_LAYER'

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]

QGIS version:
1.8.0-Lisboa Lisboa, 6416f38

Python path: ['C:/Users/fd/.qgis//python/plugins\\sextante_taudem', 'C:/Users/fd/.qgis//python/plugins\\sextante', 'C:/Users/fd/.qgis//python/plugins\\ogrprocessing', 'C:/OSGeo4W/apps/qgis/./python', 'C:/Users/fd/.qgis//python', 'C:/Users/fd/.qgis//python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\OSGeo4W\\apps\\orfeotoolbox\\python', 'C:\\', 'C:\\OSGeo4W\\bin\\python27.zip', 'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W\\apps\\Python27', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools', 'D:/Filipe Trabalho/WebGIS/HABEAS_Nacional/Versoes_finais', 'C:\\Users\\fd\\.qgis\\python\\plugins\\qgis2kml', 'C:\\Users\\fd\\.qgis\\python\\plugins\\qgis2kml']

History

Updated by Victor Olaya 12 months ago

  • Status changed from New to Feedback

The error is caused by the algorithm being buggy...but it is fixed already. However, I can create models and remove parts without problem. Can you send me a model that causes you that problem??

Updated by Filipe Dias 12 months ago

  • Status changed from Feedback to Closed

I think the buggy algorithm was also causing the "remove" problem. Its working fine in rev289

Also available in: Atom PDF