I want to create a standalone pyQGIS script in python editor but I have importing error on Processing

import sys
from qgis.core import *
import Processing

I turn for similar question and all suggestion import path for Processing plugins and I add this path and I have error again. How to fix that on Ubuntu 16.04

2 Answers 2


This Question contains a variety of answers that assisted me when I was building a standalone PyQGIS script and repeatedly had the error no module named qgis and no module named processing.

The answer I used is the one discussing the .bat file that triggers the standalone and connects to the processing toolbox.


The module is called processing in small letters

import processing


from processing import Processing

Also have a look at this complete example and excellent answer https://gis.stackexchange.com/a/131809/9839

  • yes but if i want to import processing algorithm show me error Error: Algorithm not found for ex algorith outputs_SAGASLOPEASPECTCURVATURE_1=processing.runalg('saga:slopeaspectcurvature', dem,6,1,1,slope,aspect,None,None,None,None,None,None,None,None,None,None Commented Dec 21, 2016 at 18:29
  • Have you initialized processing? gis.stackexchange.com/questions/131764/… Commented Dec 21, 2016 at 18:30
  • yes i have i can see in QGIS and in QGIS folder,and from processing import Processing not work Commented Dec 21, 2016 at 18:32
  • Can you confirm: the code snippet from this answer does not work for you: gis.stackexchange.com/a/131809/9839 Commented Dec 21, 2016 at 18:34
  • i dont understand Commented Dec 21, 2016 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.