On Sat, Jan 16, 2010 at 2:57 AM, Noli Sicad <[email protected]> wrote: > Martin > >> I think the problem is that even if you run python from osgeo4w >> console, the qgis python modules won't get loaded because the path to >> the qgis libraries is not set. I guess you need to do something like: >> SET PATH=c:\qgis\bin;%PATH% >> (with the correct path to QGIS bin directory) > > This is my windows PATH: > > C:\Documents and Settings\Noli>echo %PATH% > > [...] > ;C:\OSGeo4W\apps\qgis-unstable\lib;C:\OSGeo4W\apps\qgis-unstable\python\qgis;C:\ > OSGeo4W\apps\qgis-unstable\python;C:\OSGeo4W\apps\qgis-unstable\python\plugins;C > :\OSGeo4W\apps\qgis-unstable\bin;C:\OSGeo4W\apps\Python25\Lib\site-packages\qgis > ;C:\Python25\Scripts;C:\BORLAND\BCC55\BIN;
So then the PYTHONPATH variable is not set correctly. This is the custom search path for python modules. Try: SET PYTHONPATH=C:\OSGeo4W\apps\qgis-unstable\python;%PYTHONPATH% Martin _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
