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
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
