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

2020-07-07 Thread Miguel Eduardo Rincon De Hoyos
Thanks a lot! Here I have the original code. output=processing.run('qgis:clip',{'INPUT': input_layer, \ #output=general.run('qgis:clip',{'INPUT': input_layer, \ 'OVERLAY': clip_layer, 'OUTPUT': "memory:"}) outputlayer=output['OUTPUT'] The problem was here. When I wrote these lines and ir woked

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

2020-07-06 Thread Stefan Giese (WhereGroup)
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

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

2020-07-06 Thread 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 > : > >  > Dears members

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

2020-07-06 Thread Jorge Gustavo Rocha
Hi Miguel, Maybe you are not initializing properly the processing module, which requires a specific initialization. Take a look of a running example, like this one [1], which I use to create a geopackage (and export some layouts). [1]

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

2020-07-06 Thread Miguel Eduardo Rincon De Hoyos
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