Bug report #12731

Error using "Number of unique values in classes" algorithm

Added by Luca Lanteri almost 5 years ago. Updated almost 5 years ago.

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

Description

The "Number of unique values in classes" Progessing algorithm returns:
"Algorithm Number of unique values in classes starting...
name 'QgsField' is not defined See log for more details"

Associated revisions

Revision 426596c2
Added by Alexander Bruy almost 5 years ago

[processing] fix Number of unique values in classes alg (fix #12731)

Revision b16b8742
Added by Alexander Bruy almost 5 years ago

[processing] fix Number of unique values in classes alg (fix #12731)

History

#1 Updated by Giovanni Manghi almost 5 years ago

  • Affected QGIS version changed from 2.8.1 to master
  • OS version deleted (MINT)
  • Operating System deleted (LINUX)

complete python error is

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 232, in execute
self.processAlgorithm(progress)
File "/usr/share/qgis/python/plugins/processing/script/ScriptAlgorithm.py", line 265, in processAlgorithm
exec(script) in ns
File "<string>", line 11, in <module>
NameError: name 'QgsField' is not defined

#2 Updated by Alexander Bruy almost 5 years ago

  • Status changed from Open to Closed

#3 Updated by Alexander Bruy almost 5 years ago

  • Resolution set to fixed/implemented

Also backported to 2.8

Also available in: Atom PDF