<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Salvatore,<br>
      I'm on version 1.0.8 installed through the Python Plugin Installer.<br>
      I guess these latest changes on github have not yet made into the
      packaged version...<br>
      I will try again with sextante from source... tomorrow ;-)<br>
      Olav<br>
      <br>
      <pre class="moz-signature" cols="72">
</pre>
      On 22/12/12 00:16, Salvatore Larosa wrote:<br>
    </div>
    <blockquote
cite="mid:CANxjxarR5N+9Yi8Xi9YutkVZrDVoEp79UqL_Pe7XiPKgZRe_CQ@mail.gmail.com"
      type="cite">Hi Olav,<br>
      <br>
      <div class="gmail_quote">2012/12/21 Olav Peeters <span dir="ltr"><<a
            moz-do-not-send="true" href="mailto:opeeters@gmail.com"
            target="_blank">opeeters@gmail.com</a>></span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          A quick and dirty circumvention of the check is to change line
          373 in ~/.qgis/python/plugins/sextante/saga/SagaAlgorithm.py<br>
          to:<br>
          if "" in line:<br>
          (restart Qgis)<br>
          <br>
          this way the modules do open since the check is basically
          disabled.<br>
          The original code should also though. Maybe it's encoding
          related.<br>
          When I execute a Saga module, this happens during saving the
          output:<br>
          <br>
          An error has occured while executing Python code:<br>
          <br>
          Traceback (most recent call last):<br>
            File "/Users/myaccount/.qgis//python/plugins/sextante/gui/OutputSelectionPanel.py",
          line 95, in saveToFile<br>
              self.text.setText(str(filename))<br>
          UnicodeEncodeError: 'ascii' codec can't encode character
          u'\xff' in position 2: ordinal not in range(128)<br>
          <br>
        </blockquote>
        <div><br>
          are you using the latest sextante version ? From your
          traceback it seem not.<br>
          line 95 [1] has been changed !<br>
          <br>
          <span lang="en"><span>Unfortunately, </span></span><span
            lang="en"><span>that's</span> <span>an annoying</span>
            error <span>that affects</span> <span>several</span> <span>tools</span>
            (</span><span lang="en"><span>much less</span> <span>now</span></span><span
            lang="en">) <span>in</span> <span>sextante</span><span></span></span>
          when non-ascii chars are used !<br>
          <br>
          <br>
          Regards,<br>
          <br>
          -SL<br>
          <br>
          [1] - <a moz-do-not-send="true"
href="https://github.com/qgis/Quantum-GIS/blob/master/python/plugins/sextante/gui/OutputSelectionPanel.py#L95"
            target="_blank">https://github.com/qgis/Quantum-GIS/blob/master/python/plugins/sextante/gui/OutputSelectionPanel.py#L95</a><br>
          <br>
           </div>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          Should I have compiled with a different locale set?<br>
          <br>
          We are nearly there :-)<span><font color="#888888"><br>
              <br>
              Olav</font></span>
          <div>
            <div><br>
              <br>
              <br>
              On 20/12/12 23:09, Victor Olaya wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                There is actually the following check in the case of mac
                and linux:<br>
                <br>
                             command = ["saga_cmd"]<br>
                             proc = subprocess.Popen(command,
                shell=True,<br>
                stdout=subprocess.PIPE,<br>
                stdin=subprocess.PIPE,stderr=subprocess.STDOUT,<br>
                universal_newlines=True).stdout<br>
                             for line in iter(proc.readline, ""):<br>
                                 if "________" in line:<br>
                                     settings.setValue(SAGA_INSTALLED,
                True)<br>
                                     return<br>
                             return "It seems that SAGA is not correctly
                installed in<br>
                your system.\nPlease install it before running SAGA
                algorithms."<br>
                <br>
                basically, it is a naive check to see if executing
                saga_cmd in a<br>
                console returns something that looks like the SAGA CMD
                header. It<br>
                works fin in linux, but it seems it is not working in
                Mac. Are you<br>
                sure saga is in your path? if so, what do you see when
                you execute<br>
                saga_cmd? maybe the header is different for some reason?<br>
                <br>
                Thanks in advance!<br>
                <br>
                2012/12/20 John C. Tull <<a moz-do-not-send="true"
                  href="mailto:jctull@gmail.com" target="_blank">jctull@gmail.com</a>>:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  On Dec 19, 2012, at 2:49 AM, Victor Olaya <<a
                    moz-do-not-send="true"
                    href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>>
                  wrote:<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Olav,<br>
                    <br>
                    Thanks for your contribution!<br>
                    <br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      There is no option "SAGA folder" in the SEXTANTE
                      configuration like you have<br>
                      when installing on Windows. I haven't checked on
                      Linux, but I guess the<br>
                      Unixes don't need this, as long as saga_cmd is in
                      the path, right?<br>
                    </blockquote>
                    Right, Mac and Linux should work in the same way.
                    Let me check,<br>
                    because maybe in Mac it is performing the same check
                    as in windows<br>
                    (that is, checking that the SAGA folder is set...)<br>
                    <br>
                    Looks like an easy to solve problem...i hope<br>
                    <br>
                    Will keep you posted<br>
                    <br>
                    Thanks again!<br>
                    <br>
                    <br>
                    Victor<br>
                  </blockquote>
                  It looks like I'm a little late to the party on this.
                  I confirm the same. I look forward to a solution on
                  this for OS X. We can work on grass, perhaps, once
                  that is resolved.<br>
                  <br>
                  Regards,<br>
                  John<br>
                  <br>
                </blockquote>
              </blockquote>
              <br>
              _______________________________________________<br>
              Qgis-developer mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Qgis-developer@lists.osgeo.org"
                target="_blank">Qgis-developer@lists.osgeo.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
                target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Salvatore Larosa<br>
      linkedIn: <a moz-do-not-send="true"
        href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>
      twitter: @lrssvt<br>
      skype: s.larosa<br>
      IRC: lrssvt on freenode<br>
    </blockquote>
    <br>
  </body>
</html>