Bug report #15734

processing: graphical modeler broken under master

Added by Mathieu Pellerin - nIRV about 3 years ago. Updated about 3 years ago.

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

Description

When trying to add any parameter to a new model, processing throws the following error:

TypeError: QGraphicsItem(parent: QGraphicsItem = None): too many arguments 
Traceback (most recent call last):
  File "/home/webmaster/dev/cpp/QGIS/bm-qt5/output/python/plugins/processing/modeler/ModelerDialog.py", line 385, in addInput
    self.addInputOfType(paramType)
  File "/home/webmaster/dev/cpp/QGIS/bm-qt5/output/python/plugins/processing/modeler/ModelerDialog.py", line 397, in addInputOfType
    self.repaintModel()
  File "/home/webmaster/dev/cpp/QGIS/bm-qt5/output/python/plugins/processing/modeler/ModelerDialog.py", line 379, in repaintModel
    self.scene.paintModel(self.alg)
  File "/home/webmaster/dev/cpp/QGIS/bm-qt5/output/python/plugins/processing/modeler/ModelerScene.py", line 85, in paintModel
    item = ModelerGraphicItem(inp, model)
  File "/home/webmaster/dev/cpp/QGIS/bm-qt5/output/python/plugins/processing/modeler/ModelerGraphicItem.py", line 46, in __init__
    super(ModelerGraphicItem, self).__init__(None, None)
TypeError: QGraphicsItem(parent: QGraphicsItem = None): too many arguments

Associated revisions

Revision bd7149ce
Added by Mathieu Pellerin - nIRV about 3 years ago

[processing] fix broken modeler under pyqt5/python3 (fixes #15734)

Revision 81e86acc
Added by Victor Olaya about 3 years ago

Merge pull request #3651 from nirvn/processing_modeler_fix

[processing] fix broken modeler under pyqt5/python3 (fixes #15734)

History

#1 Updated by Mathieu Pellerin - nIRV about 3 years ago

  • Target version set to Version 3.0

#3 Updated by Victor Olaya about 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF