How to use v.clean GRASS processing tool for break in QGIS from Python QGIS Console.
I have tried using below command:

processing.runandload('grass:v.clean', layer,\ 

But it is giving me an error of "configuring your grass, it is not configured".

How can I run this command from the Python console?

  • 1
    You can use osgeo4w shell – user4906240 Aug 9 '17 at 11:27
  • i am using Python console from QGIS – Ahsan Mukhtar Aug 9 '17 at 11:32
  • 1
    I don't have any problem with your command. So, is it your first time with GRASS-QGIS? – xunilk Aug 9 '17 at 13:53
  • yes, it is first time. – Ahsan Mukhtar Aug 9 '17 at 18:05
  • 1
    @AhsanMukhtar - Is your GRASS configured correctly? From the menubar, go to: Processing > Options > Providers > GRASS GIS 7 commands and check the path. It should point to the GRASS folder inside your QGIS installation directory (e.g. for my standalone QGIS, the path is: C:\Program Files\QGIS 2.18\apps\grass\grass-7.0.5) – Joseph Aug 10 '17 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.