[Qgis-user] QGIS and Python Errors
Nathan Woodrow
madmanwoo at gmail.com
Thu Jan 31 06:32:31 PST 2013
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/5933c798/attachment.html>
More information about the Qgis-user
mailing list