<div dir="ltr"><div>Hello everyone,<br><br><p>I'm having problems with a specific error, which is pretty common from what I can see but can't seem to find a solution.</p>
<p>When I try to import the qgis module the following error occurs:</p>
<pre style class=""><code><span class="">ImportError</span><span class="">:</span><span class=""> </span><span class="">No</span><span class=""> module named </span><span class="">'qgis'</span></code></pre>
<p>So far this is the <a href="http://planet.qgis.org/planet/user/3/" rel="nofollow">guide</a> I'm using and here's the settings for the .cmd, I'm assuming it has something to do with this:</p>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre style class=""><code><span class="">@echo</span><span class=""> off
SET OSGEO4W_ROOT</span><span class="">=</span><span class="">D</span><span class="">:</span><span class="">\O</span><span class="">SGeo4W64</span><span class="">
call </span><span class="">"%OSGEO4W_ROOT%"</span><span class="">\b</span><span class="">in</span><span class="">\o</span><span class="">4w</span><span class="">_env</span><span class="">.</span><span class="">bat
call </span><span class="">"%OSGEO4W_ROOT%"</span><span class="">\apps\grass\grass</span><span class="">-</span><span class="">6.4</span><span class="">.</span><span class="">3</span><span class="">\etc\env</span><span class="">.</span><span class="">bat
</span><span class="">@echo</span><span class=""> off
path </span><span class="">%</span><span class="">PATH</span><span class="">%;%</span><span class="">OSGEO4W_ROOT</span><span class="">%</span><span class="">\apps\qgis\b</span><span class="">in</span><span class="">
path </span><span class="">%</span><span class="">PATH</span><span class="">%;%</span><span class="">OSGEO4W_ROOT</span><span class="">%</span><span class="">\apps\grass\grass</span><span class="">-</span><span class="">6.4</span><span class="">.</span><span class="">3</span><span class="">\lib
set PYTHONPATH</span><span class="">=%</span><span class="">PYTHONPATH</span><span class="">%;%</span><span class="">OSGEO4W_ROOT</span><span class="">%</span><span class="">\apps\qgis\python</span><span class="">;</span><span class="">
set PYTHONPATH</span><span class="">=%</span><span class="">PYTHONPATH</span><span class="">%;%</span><span class="">OSGEO4W_ROOT</span><span class="">%</span><span class="">\apps\Python27\Lib\site</span><span class="">-</span><span class="">packages
set QGIS_PREFIX_PATH</span><span class="">=%</span><span class="">OSGEO4W_ROOT</span><span class="">%</span><span class="">\apps\qgis
set PATH</span><span class="">=</span><span class="">C</span><span class="">:</span><span class="">\Program </span><span class="">Files</span><span class=""> </span><span class="">(</span><span class="">x86</span><span class="">)</span><span class="">\JetBrains\PyCharm </span><span class="">Community</span><span class=""> </span><span class="">Edition</span><span class=""> </span><span class="">4.0</span><span class="">.</span><span class="">6</span><span class="">\b</span><span class="">in</span><span class="">\pycharm</span><span class="">.</span><span class="">exe</span><span class="">;%</span><span class="">PATH</span><span class="">%</span><span class="">
cd </span><span class="">%</span><span class="">HOMEPATH</span><span class="">%</span><span class="">\TER\development
start </span><span class="">"PyCharm aware of Quantum GIS"</span><span class=""> </span><span class="">/</span><span class="">B </span><span class="">"C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.0.6\bin\pycharm.exe" %*</span></code></pre></blockquote>I realize this is quite a beginner's question but in any case I could use some help.<br><br></div>Best wishes<br><div><br><br></div></div>