qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.5k stars 2.99k forks source link

Not possible to edit toolbox model with QGIS LTR which contains an algorithm that is not available #44672

Closed pathmapper closed 2 years ago

pathmapper commented 3 years ago

What is the bug or the crash?

Not possible to edit toolbox model with QGIS LTR which contains an algorithm that is not available.

Steps to reproduce the issue

  1. Add test_model.zip to the processing toolbox
  2. Right click the model in the processing toolbox and choose Edit model...
  3. See error message:

Cannot edit model: The model you are trying to run contains an algorithm that is not available: native:deletecolumn

If Open Existing Model... from the processing toolbox is used to open the model without adding it to the toolbox, it's possible to edit the model which should be the right behaviour to give the user the opportunity to fix the model.

grafik

Versions

QGIS version | 3.16.9-Hannover | QGIS code revision | 9f8d2f79 -- | -- | -- | -- Compiled against Qt | 5.15.2 | Running against Qt | 5.15.2 Compiled against GDAL/OGR | 3.3.1 | Running against GDAL/OGR | 3.3.1 Compiled against GEOS | 3.9.1-CAPI-1.14.2 | Running against GEOS | 3.9.1-CAPI-1.14.2 Compiled against SQLite | 3.35.2 | Running against SQLite | 3.35.2 PostgreSQL Client Version | 13.0 | SpatiaLite Version | 5.0.1 QWT Version | 6.1.3 | QScintilla2 Version | 2.11.5 Compiled against PROJ | 8.1.0 | Running against PROJ | Rel. 8.1.0, July 1st, 2021 OS Version | Windows 10 Version 1909 Active python plugins | canvas_clipper; LAStools; plugin_reloader; db_manager; MetaSearch; processing

Additional context

No response

hbvkq commented 3 years ago

I was also prevented in 3.20 from opening my old models that had a grass tool that was renamed (rasterize). I couldn't open or use my model at all

Luckily, 3.20 installs in a new folder so I was able to access my previous qgis installation, remove the renamed algorithms from my models, then open them back in 3.20, and re-do all the model connections using the newer (renamed) grass algo.