<p style="margin: 0px; padding: 0px;">Hi, i tried to run bat file (C:\OSGeo4W\OSGeo4W.bat), close ms-dos shell and run python</p><p style="margin: 0px; padding: 0px;">>>from qgis.core import *</p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;">but i receive module qgis.core doesn't found.</p><p style="margin: 0px; padding: 0px;">I also tried to set PATH and PYTHONPATH environment variables ... but it doesn't work.</p><p style="margin: 0px; padding: 0px;">Do you have any other suggestion?</p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;">Thanks</p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;">Francesco<br></p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;"><br></p><p style="margin: 0px; padding: 0px;"><br></p>
<blockquote>
----Messaggio originale----<br>
Da: giohappy@gmail.com<br>
Data: 24/05/2012 17.15<br>
A: "francescoboccacci@libero.it"<francescoboccacci@libero.it><br>
Cc: <qgis-developer@lists.osgeo.org><br>
Ogg: Re: [Qgis-developer] from qgis.core impor * Windows problems<br>
<br>
Hi Francesco,<div>are you using osgeo4w? In that case I suggest you to have a look to the startup .bat files (like C:\OSGeo4W\OSGeo4W.bat), that setup the right evnironment (python pat, bin dires, etc.)</div><div><br></div>
<div>In general you have to add the various Qt and Qgis DLLs to the PATH, and configure the python paths to be able to peak the qgis modules. </div><div><br></div><div>giovanni<br><br><div class="gmail_quote">2012/5/24 <a href="mailto:francescoboccacci@libero.it" mce_href="mailto:francescoboccacci@libero.it">francescoboccacci@libero.it</a> <span dir="ltr"><<a href="mailto:francescoboccacci@libero.it" mce_href="mailto:francescoboccacci@libero.it" target="_blank">francescoboccacci@libero.it</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" mce_style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
i have a problem in my Windows PC. I try to use a python script that call qgis<br>
modules.<br>
I tried to do :<br>
<br>
>>from qgis.core import *<br>
<br>
i receive ImportError: DLL load failed ....<br>
<br>
How i have to configure my environment variables to get these modules?<br>
I try to find some solution on web but they aren't work.<br>
<br>
Thanks<br>
<br>
Francesco<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" mce_href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" mce_href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>
<br>
</blockquote><p><br></p><div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;" id="_mcePaste"> </div>