QuickOSM icon indicating copy to clipboard operation
QuickOSM copied to clipboard

Update processing algorithm to QGIS 3.16 to remove deprecated algorithms

Open alesarrett opened this issue 5 years ago • 3 comments

Trying to import the osm_download_style.model3 in QGIS 3.10.2 I receive the following error: AttributeError: 'NoneType' object has no attribute 'svgIconPath'

Double clicking the module from inside the Processing Toolbox, I received this additional information error "Error executing algorithm": This algorithm cannot be run :-( The model you are trying to run contains an algorithm that is not available: native:setlayerstyle

Trying to solve this issue, I opened the model in a text editor and substituted the string native:setlayerstyle with qgis:setstyleforvectorlayer. This solved the problem for me.

I'm not sure if this a specific problem with my environment, but maybe it can be useful... Thank you for your great plugin!

Ale

Environment

  • QuickOSM version: 1.14.2
  • QGIS version: 3.10.2
  • OS: Ubuntu 18.04.4

alesarrett avatar Feb 15 '20 09:02 alesarrett

QGIS version: 3.10.2

Ah yes indeed, the algorithm has been designed in QGIS Master (3.11)

You can propose a patch, I would indeed prefer if the model is compatible 3.10.

Gustry avatar Feb 15 '20 09:02 Gustry

You can propose a patch, I would indeed prefer if the model is compatible 3.10.

I'd love to be able to do that but, currently, I have no idea on how to proceed :-)

alesarrett avatar Feb 22 '20 07:02 alesarrett

Fixed. Tagged as feature to keep the ticket and fix later when 3.16 will be the default.

Gustry avatar Apr 06 '20 17:04 Gustry