[Qgis-user] HELP!! DLL not found when importing qgis.core and qgis.gui
Germán Carrillo
carrillo.german at gmail.com
Thu Oct 8 09:12:52 PDT 2009
Hi Maria Angelica.
Maybe you must post your question to developers-list. Anyway, I'll try to
answer you:
After a lot of problems like that you comment to us, I run the QGis
standalone installer [1], set the installation dir to c:\qgis and put in a
.bat file the next three lines:
set PYTHONPATH=c:\qgis\python
set PATH=c:\qgis\bin;%PATH%
set PATH=c:\Python25;%PATH%
After run the .bat everything work well with PyQGIS. Can you try this?
----------
I guess you are from Latin America like me. So, please visit GeoTux [2],
there are some resources about PyQGIS. Also, if you like, you are invited to
contribute us :)
Regards.
Germán Carrillo
--------------------
[1] http://download.osgeo.org/qgis/win32/QGIS-1.3.0-3-No-GrassSetup.exe
[2] http://geotux.tuxfamily.org
2009/10/8 Echavarria Gregory, Maria Angelica <m.echavarriagregory at umiami.edu
>
>
> Dear QGIS group,
>
> I have my application designed in PyQt and need to add a Qgis canvas to it.
> I followed the user guide ch. 12 to add things and convert my app into a
> PyQGIS application. Everything used to work fine in my PyQt4 and
> PyWin32 installation. Last night I installed the binaries of QGIS, then
> added the recommended environment variables (PATH, PYTHONPATH, QGISHOME) to
> my system, and now this is what my Pythonwin editor complaints about:
>
> >>> import qgis
> >>> import PyQt4
> >>> from qgis.core import *
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> ImportError: DLL load failed: The specified module could not be found.
> >>> from qgis.gui import *
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> ImportError: DLL load failed: The specified module could not be found.
> >>> from PyQt4.QtCore import *
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> ImportError: DLL load failed: The specified procedure could not be found.
> >>>
>
> I think the DLL existed before the QGIS installation because the
> PyQt4.QtCore install used to work perfect!!. Also seems to be the exact same
> DLL what is missing in both cases (PyQt and QGIS imports). Could someone
> give me a hand with this? I'M STUCKED!!! If you happen to know which is the
> missing DLL, could you please email it to me along with the location?
>
> Maybe it has something to do with the environmet variables?
> Could it be because Python is also inside the binary distribution and I'm
> using my usual 'alone' installation? Or is it Windows?
>
> Thanks very much,
> Angelica
>
> M. Angelica Echavarria-Gregory,
> Ph.D Candidate
> University of Miami
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
--
-----------
|\__
(:>__)(
|/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20091008/f15580ec/attachment.html>
More information about the Qgis-user
mailing list