[Qgis-user] qgis.core and qgis.gui DLL bug in Qqis Windows?

Martin Dobias wonder.sk at gmail.com
Sat Jan 16 02:40:08 PST 2010


On Sat, Jan 16, 2010 at 2:57 AM, Noli Sicad <nsicad at gmail.com> 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



More information about the Qgis-user mailing list