I have problems using version 3 of QGIS with Python 3. I followed different tutorials like this one : how to use pyqgis processing runalg clipvectorsbypolygon
But it seems to be working only with QGIS 2.XX and not 3.0. Here is what I try to run :
from qgis.core import * import PyQt5.QtCore import sys sys.path.append('C:/QGIS 3.0/apps/qgis/python/plugins') qgs = QgsApplication(, True) qgs.setPrefixPath("C:/QGIS 3.0/apps/qgis", True) qgs.initQgis() import processing qgs.exitQgis()
But I get on PyCharm the error message : "Process finished with exit code 1". I don't understand what is missing in my code. Can you please explain me how to use processing library with independent pyqgis scripts ?