[Qgis-user] QGIS and Python Errors

Carsten Hogertz carsten.hogertz at gmail.com
Thu Jan 31 11:31:59 PST 2013


Hi everyone

I have the same problem with Linux (OSGeo-Live and Mint).
Does anyone have the same issues?
Any solution for Linux?

Thanks a lot
--
Carsten



Am 31.01.2013 17:46, schrieb Stephane Goldstein:
> 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
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130131/21562407/attachment.html>


More information about the Qgis-user mailing list