[Qgis-user] module 'qgis.processing' has no attribute 'run'

Christoph Jung jagodki.cj at gmail.com
Mon Jul 6 21:25:28 PDT 2020


Hi Miguel,

You call the run-method on an variable called „general“. But using the processing framework will be realised by calling “processing.run(...)”. Maybe this is the problem?

Sincerely,
Christoph

> Am 07.07.2020 um 00:18 schrieb Miguel Eduardo Rincon De Hoyos <merinconh at unal.edu.co>:
> 
> 
> Dears members
> 
> I am using Python for my postgraduate studies and I am having trouble running my code when I try to use processing in Qgis using the command-line interface.
> 
> I think the error is really easy to fix it but right now I do not know how to fix it. When I run my code I have this
> 
> Traceback (most recent call last):
>   File "urban_canopy_element.py", line 100, in <module>
>     output=general.run('qgis:clip',{'INPUT': input_layer, \
> NameError: name 'run' is not defined
> 
> Thanks for the help
> Regards
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200707/4148d493/attachment.html>


More information about the Qgis-user mailing list