<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi John,</div><div><br></div><div>If you figure this one out, can you poste the solution? I would like to do the same thing.</div><div><br></div><div>Thanks</div><div>Nicolas</div><div><br>Le 2 oct. 2018 à 20:51, John Walker <<a href="mailto:jdkwalker21@gmail.com">jdkwalker21@gmail.com</a>> a écrit :<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi, would anyone know how to configure Spyder to work with the QGIS library? I am finding the python editor in QGIS difficult to work with because it has no debugger and I cannot run highlighted code. I have tried a few things:<div><br></div><div>1. created a new conda environment and installed QGIS via conda using: <span class="gmail-pln">conda install </span><span class="gmail-pun">-</span><span class="gmail-pln">c conda</span><span class="gmail-pun">-</span><span class="gmail-pln">forge qgis. However I get errors when trying to import qgis.core</span></div><div><span class="gmail-pln"><br></span></div><div><span class="gmail-pln">2. installed Spyder within OSGeo4W QGIS python instance i.e.</span></div><div><span class="gmail-pln"><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">py3</span><span class="gmail-pun">-</span><span class="gmail-pln">env
python </span><span class="gmail-pun">-</span><span class="gmail-pln">m pip install spyder</span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><span style="font-family:Arial,Helvetica,sans-serif;white-space:normal">But this gives errors in the IPython console i.e.</span></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-typ">SyntaxError</span><span class="gmail-pun">:</span><span class="gmail-pln"> invalid syntax
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"C:\OSGEO4~1\apps\Python36\lib\site.py"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">177</span><span class="gmail-pln">
file</span><span class="gmail-pun">=</span><span class="gmail-pln">sys</span><span class="gmail-pun">.</span><span class="gmail-pln">stderr</span><span class="gmail-pun">)</span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><span style="font-family:Arial,Helvetica,sans-serif;white-space:normal">Thanks for any help.</span></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"></pre></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"></pre></span></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></span><br><span>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br><span>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></div></blockquote></body></html>