[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] QGIS and Python Errors
From:       Carsten Hogertz <carsten.hogertz () gmail ! com>
Date:       2013-01-31 19:31:59
Message-ID: 510AC6AF.6080703 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi everyone<br>
    <br>
    I have the same problem with Linux (OSGeo-Live and Mint).<br>
    Does anyone have the same issues?<br>
    Any solution for Linux?<br>
    <br>
    Thanks a lot<br>
    --<br>
    Carsten<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 31.01.2013 17:46, schrieb Stephane
      Goldstein:<br>
    </div>
    <blockquote cite="mid:20130131164659.23290@gmx.com" type="cite"><span
        style="font-family:Verdana"><span style="font-size:12px">Thanks,
          it worked just like you said!<br>
          <br>
          But adding back the variables I had in PYTHONPATH<br>
          <br>
          C:\Python27\Lib<br>
          C:\Python27\DLLs<br>
          C:\Python27\Lib\lib-tk<br>
          C:\mapnik-2.0.1rc0\python\2.7\site-packages<br>
          <br>
          Made Sextante stop working on QGIS 1.9.<br>
          <br>
          Then I removed the first 3 ones and left only the last.<br>
          Now Mapnik and Sextante both work.<br>
          <br>
          Don't know why I added these first three variables, I read
          somewhere that they are needed, but it doesn't seem so.<br>
          <br>
          Thanks a lot!<br>
          <br>
          <p style="margin:0px; padding:0px;"> &nbsp;</p>
          <blockquote style="border-left: 1px solid #CCC; padding-left:
            5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px;
            margin-right: 0px;" type="cite">
            <p style="margin:0px; padding:0px;"> <span
                style="font-family:Verdana"><span style="font-size:12px">-----
                  Original Message -----</span></span></p>
            <p style="margin:0px; padding:0px;"> <span
                style="font-family:Verdana"><span style="font-size:12px">From:
                  Nathan Woodrow</span></span></p>
            <p style="margin:0px; padding:0px;"> <span
                style="font-family:Verdana"><span style="font-size:12px">Sent:
                  01/31/13 02:32 PM</span></span></p>
            <p style="margin:0px; padding:0px;"> <span
                style="font-family:Verdana"><span style="font-size:12px">To:
                  Stephane Goldstein</span></span></p>
            <p style="margin:0px; padding:0px;"> <span
                style="font-family:Verdana"><span style="font-size:12px">Subject:
                  Re: [Qgis-user] QGIS and Python Errors</span></span></p>
            <br>
            <div>
              <div>
                <div class="gmail_extra" style=""> <font face="arial,
                    helvetica, sans-serif">The error you are getting
                    there is to do with the API change in 1.9 (the dev
                    version). If you change&nbsp;</font></div>
                <div class="gmail_extra" style=""> &nbsp;</div>
                <div class="gmail_extra" style=""> <font face="arial,
                    helvetica, sans-serif"><span
                      \
                style="color:rgb(0,0,0)">QgsMapLayerRegistry.instance()</span><span
                      \
style="color:rgb(0,0,0)">.addMapLayer(layer)</span></font></div>  <div \
class="gmail_extra" style=""> &nbsp;</div>  <div class="gmail_extra" style=""> <span
                    style="color:rgb(0,0,0)"><font face="arial,
                      helvetica, sans-serif">to&nbsp;</font></span></div>
                <div class="gmail_extra" style=""> &nbsp;</div>
                <div class="gmail_extra" style=""> <font face="arial,
                    helvetica, sans-serif"><span
                      \
                style="color:rgb(0,0,0)">QgsMapLayerRegistry.instance()</span><span
                      \
style="color:rgb(0,0,0)">.addMapLayers([layer])</span></font></div>  <div \
class="gmail_extra" style=""> &nbsp;</div>  <div class="gmail_extra" style=""> <span
                    style="color:rgb(0,0,0)"><font face="arial,
                      helvetica, sans-serif">it will work again.</font></span></div>
                <div class="gmail_extra" style=""> &nbsp;</div>
                <div class="gmail_extra" style=""> <span
                    style="color:rgb(0,0,0)"><font face="arial,
                      helvetica, sans-serif">QGIS will use the Python
                      installed with OSGeo4W, I don't think also having
                      standalone copy of Python installed will cause any
                      issues.&nbsp;</font></span></div>
                <div class="gmail_extra" style=""> &nbsp;</div>
                <div class="gmail_extra" style=""> <font
                    color="#000000" face="arial, helvetica, sans-serif">-
                    Nathan</font></div>
              </div>
            </div>
          </blockquote>
        </span></span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
 </pre>
    </blockquote>
    <br>
  </body>
</html>



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic