Bug report #11011

Python error in several Processing modules in QGIS master

Added by Giovanni Manghi over 9 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Victor Olaya
Category:Processing/Core
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 #:19353

Description

In the latest QGIS master many modules (ex. r.report) fail to run with

Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\ProcessingToolbox.py", line 194, in executeAlgorithm
dlg = ParametersDialog(alg)
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\ParametersDialog.py", line 38, in init
self.paramTable = ParametersPanel(self, alg)
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\ParametersPanel.py", line 84, in init
self.initGUI()
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\ParametersPanel.py", line 116, in initGUI
widget = self.getWidgetFromParameter(param)
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\ParametersPanel.py", line 301, in getWidgetFromParameter
param.isInteger)
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\gui\\NumberInputPanel.py", line 47, in init
self.spnValue.setMinimum(minimum)
TypeError: QDoubleSpinBox.setMinimum(float): argument 1 has unexpected type 'str'

Associated revisions

Revision 4fb28987
Added by Alexander Bruy over 9 years ago

[processing] convert strings to numbers when initializing parameters
from description file (fix #11011)

History

#1 Updated by Alexander Bruy over 9 years ago

  • Status changed from Open to Closed

#2 Updated by Alexander Bruy over 9 years ago

  • Resolution set to fixed/implemented

#3 Updated by Giovanni Manghi almost 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF