[Qgis-developer] QGis & Python
Germán Carrillo
carrillo.german at gmail.com
Mon Nov 30 14:36:06 EST 2009
Mmm, I forgot to say that I run the .bat file from the command line and then
I load the QGIS libraries, i.e. everything from the same *cmd*.
Can you install the last QGIS version (1.3)?
Germán.
2009/11/30 Pierre Cauhopé <pierre.cauhope at free.fr>
> Hi German,
>
> Thank you for your help but unforntunatly it don't work better. Here is my
> code :
>
> # Import main libs
>> import os
>> from PyQt4 import QtCore, QtGui
>> import sys
>> from qgis.core import *
>> from qgis.gui import *
>>
> Here is my error:
>
>
> Traceback (most recent call last):
>> File "C:\Users\Pierre\Desktop\Projet SIG\MontBlanc\qgismt\__main__.py",
>> line 5, in <module>
>> from qgis.core import *
>> ImportError: DLL load failed: Le module spécifié est introuvable.
>>
>
> And here my systeme variables :
>
> *Path*:
>> C:\Python26;C:\qgis\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
>> Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files
>> (x86)\Common Files\Adobe\AGL;C:\Program Files\TortoiseSVN\bin
>>
>> *PYTHONPATH*: C:\qgis\python
>>
> It's very strange, someone have an idea to solve this problem ?
>
> Thank you again
>
> Pierre
>
>
> 2009/11/30 Germán Carrillo <carrillo.german at gmail.com>
>
> Hi Pierre.
>>
>> On Windows I run a .bat file with this three lines:
>>
>> *set PYTHONPATH=c:\qgis\python
>> set PATH=c:\qgis\bin;%PATH%
>> set PATH=c:\Python25;%PATH%*
>>
>> After that I'm able to run PyQGIS applications. I use the QGIS standalone
>> installer.
>>
>> Regards.
>>
>> Germán.
>>
>> 2009/11/30 Luca Mandolesi <mandoluca at gmail.com>
>>
>>>
>>> Sorry, but I'm working under mac os x, and the sys.path method works
>>> fine. I've installed under Win the Osgeo version, but I cannot find the
>>> qgis.core, only the C:/Osgeo/app/qgis/python/qgis/ folder, which contains
>>> only qgis_core.pyd and qgis_gui.pyd.
>>>
>>> Mmmmm! I don't understand as you can solve, but I'll try in other way!
>>>
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> Qgis-developer at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>> --
>> -----------
>> |\__
>> (:>__)(
>> |/
>>
>> Soluciones Geoinformáticas Libres
>> http://geotux.tuxfamily.org/
>>
>
> -----------
|\__
(:>__)(
|/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091130/8ce99442/attachment.html
More information about the Qgis-developer
mailing list