Bug report #11327

Python error while trying to create a model

Added by Filipe Dias over 9 years ago. Updated over 9 years ago.

Assignee:Victor Olaya
Affected QGIS version:2.4.0 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 #:19621


- Add vector layer - A
- Add vector - B
- QGIS intersection - A with B
- Basic statistics for numeric fields
- Write "a/10" on "Field to calculate statistics on"
- Following Python error appears

An error has occured while executing Python code:

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/modeler/ModelerParametersDialog.py", line 627, in okPressed
self.alg = self.createAlgorithm()
File "/usr/share/qgis/python/plugins/processing/modeler/ModelerParametersDialog.py", line 460, in createAlgorithm
if not self.setParamValue(alg, param, self.valueItems[param.name]):
File "/usr/share/qgis/python/plugins/processing/modeler/ModelerParametersDialog.py", line 611, in setParamValue
return self.setParamTableFieldValue(alg, param, widget)
File "/usr/share/qgis/python/plugins/processing/modeler/ModelerParametersDialog.py", line 498, in setParamTableFieldValue
alg.values[param.name] = s
AttributeError: Algorithm instance has no attribute 'values'

Python version:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]

QGIS version:
2.5.0-Master Master, exported

Python path: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', u'/home/fd/.qgis2/python', u'/home/fd/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/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/PILcompat', '/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/fd/.qgis2/python/plugins/MetaSearch/ext-libs', '/usr/share/qgis/python/plugins/fTools/tools']


#1 Updated by Filipe Dias over 9 years ago

Forgot to mention that:

Select the output from the Intersection and write "a/10" on "Field to calculate statistics on"

#2 Updated by Paolo Cavallini over 9 years ago

  • Subject changed from Python erro while trying to create a model to Python error while trying to create a model

#3 Updated by Salvatore Larosa over 9 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF