Module 'qgis.processing' has no attribute 'run'

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 "", line 100, in <module>'qgis:clip',{'INPUT': input_layer, \
NameError: name 'run' is not defined

thanks in advanced.



I never used QGIS cli, so I can’t really help you on this one.

However it looks that your error is related to QGIS, not OTB. Maybe you should try to ask QGIS stack exchange instead ?

Or maybe this error arises after configuring OTB into QGIS ?



Can you explain more your context please: Which version of QGIS and OTB used for example ?. If you have issue with QGIS, please push to QGIS :