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

Stefan Giese (WhereGroup) stefan.giese at wheregroup.com
Mon Jul 6 22:01:41 PDT 2020


Miguel

or you can use also "processing.runAndLoadResults(...)" to load the
result directly into QGIS

regards

Stefan

Am 07.07.2020 um 06:25 schrieb Christoph Jung:
> 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'isnotdefined |
>> |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
>
> _______________________________________________
> 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

-- 
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
------------------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei der www.foss-academy.com
------------------------------------------------------

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

stefan.giese at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm 
Amtsgericht Bonn, HRB 9885

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200707/f80a3df9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200707/f80a3df9/attachment.sig>


More information about the Qgis-user mailing list