I set up PyScripter latest version, 2.7) to work with QGIS (2.2, OSGeo4W install) following http://chelahmy.blogspot.ca/2011/02/setting-up-pyscripter-for-quantum-gis.html. It generally works well. I'm running Windows 7.
Here's my code:
import sys import os sys.path.append("C:\\OSGeo4W\\apps\\qgis\\python") sys.path.append("C:\\OSGeo4W\\apps\\qgis\\python\\plugins") from qgis.core import * from qgis.utils import * from qgis.gui import * from PyQt4 import * from PyQt4.QtCore import * from PyQt4.QtGui import * from processing.core.Processing import Processing
I need the sys.path.append to import qgis properly (rather than setting them in the PYTHONPATH). However, when I run the line
from processing.core.Processing import Processing
PyScripter simply shuts down, no error message, window just closes. Has anybody else experienced this? Same thing happens with other imports, like
I can import all the other plugin libraries (GdalTools, fTools, db_manager) with no problems - but I don't need those, I need the proceesing library to access all the nice OTB tools.