On Wed, Mar 16, 2011 at 10:20 PM, Learn Qgis <span dir="ltr">&lt;<a href="mailto:learn.qgis@gmail.com" target="_blank">learn.qgis@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br><br>I am new to QGIS. I am trying to build the source code using CMAKE to Visual Studio 2008 environment with python binding. <br><br>I am using Python 2.7, SIP 4.12.1 and PyQt 4.8.3<br><br>I am getting below error....<br>




<br><b style="color:rgb(255, 0, 0)">Couldn&#39;t load PyQGIS.<br>Python support will be disabled.<br></b>
<pre style="margin:12px 0px;text-indent:0px;color:rgb(255, 0, 0)"><b><span><br>Traceback (most recent call last):<br>  File &quot;&quot;, line 1, in <br>ImportError: dynamic module does not define init function (initcore)<br>



<br><br></span></b></pre>
<p style="margin:0px;text-indent:0px;color:rgb(255, 0, 0)"><b>Python version:<br>2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]<br><br>QGIS version:<br>1.6.0-Copiapo &#39;Copiapo&#39;, exported<br>
<br>Python path:<br>[&#39;D:/dev/cpp/build/src/app/</b><b>Debug/./python&#39;, &#39;C:/Documents and Settings/Administrator/.qgis/</b><b>python&#39;, &#39;C:/Documents and Settings/Administrator/.qgis/</b><b>python/plugins&#39;, &#39;D:/dev/cpp/build/src/app/</b><b>Debug/./python/plugins&#39;, &#39;E:\\Python27\\Lib\\site-</b><b>packages&#39;, &#39;E:\\Python27\\Lib&#39;, &#39;D:\\dev\\cpp\\build\\src\\</b><b>app\\Debug&#39;, &#39;C:\\WINDOWS\\system32\\</b><b>python27.zip&#39;, &#39;E:\\Python27\\DLLs&#39;, &#39;E:\\Python27\\lib\\plat-win&#39;, &#39;E:\\Python27\\lib\\lib-tk&#39;, &#39;E:\\Python27&#39;]</b></p>




<p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Please help me in resolving this error....</p><p style="margin:0px;text-indent:0px">

<br></p><p style="margin:0px;text-indent:0px">thanks in advance...</p></blockquote><div><br></div><div>Usually this means that Python could not find the PyQt module or could not load it for some reason.  Check your environment variables---specifically PATH and PYTHONPATH.</div>

<div><br></div><div>-Charlie</div></div><br>