https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-01-05T07:41:38ZQGIS Issue TrackingQGIS Application - Bug report #16042: In standalone python script `from qgis._core import *` produces ImportError: DLL load failed: The specified module could not be foundhttps://issues.qgis.org/issues/16042?journal_id=739942017-01-05T07:41:38ZRaphael Dumasrdumas@toronto.ca
<ul></ul><p>Sorry, fired off this issue a little prematurely.</p>
<p>I resolved the import error by adding the following to my PATH variable.</p>
<pre>
C:\\Program Files\\QGIS Essen\\apps\\qgis-ltr\\bin
C:\\Program Files\\QGIS Essen\\bin
</pre>
<p>Though I would highlight that just adding <code>C:\\Program Files\\QGIS Essen</code>, as the documentation suggested, didn't work. <a class="external" href="http://docs.qgis.org/2.14/en/docs/pyqgis_developer_cookbook/intro.html#running-custom-applications">http://docs.qgis.org/2.14/en/docs/pyqgis_developer_cookbook/intro.html#running-custom-applications</a></p> QGIS Application - Bug report #16042: In standalone python script `from qgis._core import *` produces ImportError: DLL load failed: The specified module could not be foundhttps://issues.qgis.org/issues/16042?journal_id=740772017-01-10T00:32:09ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Thanks for posting this followup.</p>
<p>Would you mind improving the description in the cookbook?</p>
<p>It should be trivial to create a improvement proposal (pull request) using the online editor here:<br /><a class="external" href="https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/pyqgis_developer_cookbook/intro.rst">https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/pyqgis_developer_cookbook/intro.rst</a></p>
<p>Thank you in advance!</p>