Deactivating/uninstalling plugin causes Python error when trying to edit a Processing model #27434
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: Magnus Nilsson (Magnus Nilsson)
Original Redmine Issue: 19607
Affected QGIS version: 3.2.1
Redmine category:processing/modeller
Hi
When I do these steps, I get a Pythin error:
I don´t expect the model to run when the plugin is missing, but I would still like to be able to open and edit it. Perhaps QGIS, in the model window, could simply remove the plugin and give a hint to the user about the missing plugin? When I reactivate/install the plugin in again, I can edit the model.
The log:
Ett fel har inträffat vid Pythonexekvering:
AttributeError: 'NoneType' object has no attribute 'svgIconPath'
Traceback (most recent call last):
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\modeler\EditModelAction.py", line 44, in executedlg = ModelerDialog(alg)
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py", line 403, in initself.repaintModel()
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py", line 661, in repaintModelself.scene.paintModel(self.model, controls)
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\modeler\ModelerScene.py", line 120, in paintModelitem = ModelerGraphicItem(alg, model, controls, scene=self)
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\modeler\ModelerGraphicItem.py", line 78, in initif element.algorithm().svgIconPath():
AttributeError: 'NoneType' object has no attribute 'svgIconPath'
Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.2.1-Bonn Bonn, 1edf372
Python sökväg:
C:/PROGRA
1/QGIS31.2/apps/qgis/./pythonC:/Users/Magnus/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Magnus/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA
1/QGIS31.2/apps/qgis/./python/pluginsC:\Program Files\QGIS 3.2\bin\python36.zip
C:\PROGRA
1\QGIS31.2\apps\Python36\DLLsC:\PROGRA
1\QGIS31.2\apps\Python36\libC:\Program Files\QGIS 3.2\bin
C:\PROGRA
1\QGIS31.2\apps\Python36C:\PROGRA
1\QGIS31.2\apps\Python36\lib\site-packagesC:\PROGRA
1\QGIS31.2\apps\Python36\lib\site-packages\win32C:\PROGRA
1\QGIS31.2\apps\Python36\lib\site-packages\win32\libC:\PROGRA
1\QGIS31.2\apps\Python36\lib\site-packages\PythonwinC:/Users/Magnus/AppData/Roaming/QGIS/QGIS3\profiles\default/python
The text was updated successfully, but these errors were encountered: