Bug report #9768

Error in processing Extract by attribute algorithm

Added by Samuel Fernando Mesa Giraldo over 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18310

Description

Extract by attribute algorithm in Processing reports the following error:

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 202, in execute
    self.processAlgorithm(progress)
  File "C:/OSGeo4W/apps/qgis/./python/plugins\\processing\\algs\\mmqgisx\\MMQGISXAlgorithms.py", line 1150, in processAlgorithm
    output = self.getOutputFromName(self.OUTPUT)
AttributeError: mmqgisx_extract_algorithm instance has no attribute 'OUTPUT'

I think you should change the line in 1149 [1] by:

output = self.getOutputFromName (self.RESULT)

[1] https://github.com/qgis/QGIS/blob/021c7e60777339d656f22c984b9d7af2f6382636/python/plugins/processing/algs/mmqgisx/MMQGISXAlgorithms.py#L1149

patch-mmqgisx-extract_by_attribute.patch Magnifier - Change OUTPUT to REULT (564 Bytes) Samuel Fernando Mesa Giraldo, 2014-03-15 10:31 AM

Associated revisions

Revision 4ffdef48
Added by Alexander Bruy over 10 years ago

[processing] fix MMQGIS Extract by attribute (fix #9768)

History

#1 Updated by Samuel Fernando Mesa Giraldo over 10 years ago

Attached the patch changes.

#2 Updated by Alexander Bruy over 10 years ago

  • Status changed from Open to Closed

#3 Updated by Giovanni Manghi over 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF