[Qgis-user] QGIS and Python Errors
Stephane Goldstein
s.n.g at gmx.com
Thu Jan 31 08:46:59 PST 2013
Thanks, it worked just like you said!
But adding back the variables I had in PYTHONPATH
C:\Python27\Lib
C:\Python27\DLLs
C:\Python27\Lib\lib-tk
C:\mapnik-2.0.1rc0\python\2.7\site-packages
Made Sextante stop working on QGIS 1.9.
Then I removed the first 3 ones and left only the last.
Now Mapnik and Sextante both work.
Don't know why I added these first three variables, I read somewhere that they are needed, but it doesn't seem so.
Thanks a lot!
----- Original Message -----
From: Nathan Woodrow
Sent: 01/31/13 02:32 PM
To: Stephane Goldstein
Subject: Re: [Qgis-user] QGIS and Python Errors
The error you are getting there is to do with the API change in 1.9 (the dev version). If you change
QgsMapLayerRegistry.instance().addMapLayer(layer)
to
QgsMapLayerRegistry.instance().addMapLayers([layer])
it will work again.
QGIS will use the Python installed with OSGeo4W, I don't think also having standalone copy of Python installed will cause any issues.
- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130131/4bf51c46/attachment.html>
More information about the Qgis-user
mailing list