[Qgis-user] QGIS 3 : Run alg in an algorithm

Jean-Baptiste Desbas jb.desbas at gmail.com
Sun Apr 8 13:23:23 PDT 2018


Hello,

I wan't to run a native algorithm (execute SQL) in an homemade algorithm :
I try
processing.run('qgis:executesql',{'INPUT_DATASOURCES':[sink],'INPUT_QUERY':'SELECT
* FROM input1'},feedback=None)

but i've got an error :

line 140, in processAlgorithm
a=processing.run('qgis:executesql',{'INPUT_DATASOURCES':[sink],'INPUT_QUERY':'SELECT
* FROM input1'},feedback=None)
File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 84,
in run
return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback,
context)
File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line
135, in runAlgorithm
feedback.reportError(msg)
TypeError: reportError() missing 1 required positional argument:
'fatal_error'

how can I do that ?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180408/6db7303d/attachment.html>


More information about the Qgis-user mailing list