Hi,<br><br>I'm trying to make a standalone app. As you said, I'm trying to load qgis.core and qgis.gui out of Qgis.<br><br>When I try your solution, It change nothing... <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
# Import main libs <br>import os<br>from PyQt4 import QtCore, QtGui<br>import sys<br>sys.path.append("C:/qgis/python") <br>from qgis.core import *<br>from qgis.gui import *<br></blockquote><br>I have :<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Traceback (most recent call last):<br> File "C:\Users\Pierre\Desktop\Projet SIG\MontBlanc\qgismt\__main__.py", line 6, in <module><br>
from qgis.core import *<br>ImportError: DLL load failed: Le module spécifié est introuvable.<br></blockquote><br>In C:\qgis\python I have a folder "qgis" with : core.pyd & gui.pyd ... I don't understand why he don't want to load the module.<br>
<br>Thank you for your help.<br><br><br><div class="gmail_quote">2009/11/29 Luca Mandolesi <span dir="ltr"><<a href="mailto:mandoluca@gmail.com" target="_blank">mandoluca@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are you developping a standalone app or it's a plugin. It seems that you try to load qgis.core out of Qgis. If you wanna call core and gui in a standalone app you must <span style="font-family: Arial,sans-serif; font-size: 13px; line-height: 19px;">declare the path to the module throug a sys.path.append(your_path)</span><br>
</blockquote></div><br>