AW: [Qgis-developer] Problem with setting up PyQGIS (QGIS 1.7.3)

Kaps Stefan stefan.kaps at vorarlberg.at
Wed Jan 11 10:44:12 EST 2012


Hi Gary,
Yes, you are right, but I still geht the error message with just the line "from qgis.core import *":

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from qgis.core import *
ImportError: No module named qgis.core

I am a bit confused, because http://www.qgis.org/pyqgis-cookbook/intro.html#python-applications is just talking about TWO environment variables (PAYTHONPATH & PATH), but http://geographicprimitive.wordpress.com/2010/09/04/setting-up-pyqgis-development-environment-with-pydev-on-windows/ is talking about THREE (PYTHONPATH, PATH, PYTHONHOME) - but both end in the same error...

Stefan  



-----Ursprüngliche Nachricht-----
Von: Gary Sherman [mailto:gsherman at geoapt.com] 
Gesendet: Mittwoch, 11. Januar 2012 16:41
An: Kaps Stefan
Cc: Gary Sherman; 'qgis-developer at lists.osgeo.org'
Betreff: Re: [Qgis-developer] Problem with setting up PyQGIS (QGIS 1.7.3)


On Jan 10, 2012, at 11:52 PM, Kaps Stefan wrote:

> I'm not able to set up the Python environment for standalone 
> applications correctly, allthough there are several documentations on 
> the internet -> I am using this one 
> http://www.qgis.org/pyqgis-cookbook/intro.html#python-applications, 
> but I still get the error message
> 
> "Traceback (most recent call last):
>   File "test.py", line 1, in <module>
>     import PyQt4.QtGui
> ImportError: No module named PyQt4.QtGui

Have you installed PyQt?
-gary

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman
GeoApt LLC
  http://geoapt.com
Chair, QGIS PSC
Books:
  http://geospatialdesktop.com
  http://qgisbook.com
"We work virtually everywhere"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=









More information about the Qgis-developer mailing list