<div dir="ltr">It is already fixed, See here:<div><br></div><div><a href="https://github.com/qgis/QGIS/commit/2e858c439c09eaa6c0fe38498d5b87dce8a04077">https://github.com/qgis/QGIS/commit/2e858c439c09eaa6c0fe38498d5b87dce8a04077</a><br>
</div><div><br></div><div>The change is already in 2.4, so you should not see it if you are using the latest release. Maybe you have another Processing installed that is shadowing the core version (although it shouldn't)?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-02 13:38 GMT+02:00 Luis Miguel Royo Pérez <span dir="ltr"><<a href="mailto:luis.miguel.royo@gmail.com" target="_blank">luis.miguel.royo@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi everyone,<br>
    <br>
    I have problems to run r.drain in QGIS. The error is this:<br>
    <br>
    
    <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#ff0000">Ha ocurrido un error mientras se
        ejecutaba el código de Python:</span><br>
      <br>
    </p>
    <pre style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier New,courier'">Traceback (most recent call last):
  File "/home/luismi/.qgis2/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 225, in accept
    self.setParamValues()
  File "/home/luismi/.qgis2/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 151, in setParamValues
    self.paramTable.valueItems[<a href="http://param.name" target="_blank">param.name</a>]):
  File "/home/luismi/.qgis2/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 207, in setParamValue
    return param.setValue([options[i] for i in widget.selectedoptions])
  File "/home/luismi/.qgis2/python/plugins/processing/parameters/ParameterMultipleInput.py", line 74, in setValue
    s += self.getAsString(layer)
  File "/home/luismi/.qgis2/python/plugins/processing/parameters/ParameterMultipleInput.py", line 152, in getAsString
    layers = dataobjects.getVectorLayers(self.datatype)
  File "/home/luismi/.qgis2/python/plugins/processing/tools/dataobjects.py", line 83, in getVectorLayers
    if shapetype == ALL_TYPES or layer.geometryType() in shapetype:
TypeError: argument of type 'float' is not iterable
</span></pre>
    <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br>
      <font face="Times New Roman, Times, serif">Versión de Python:<br>
        2.7.3 (default, Feb 27 2014, 20:11:37) <br>
        [GCC 4.6.3]<br>
        <br>
        <br>
        Versión de QGIS:<br>
        2.4.0-Chugiak Chugiak, exported</font></p>
    
    <br>
    My Operative System is <b>Lubuntu 12.04 </b>with this kernel <b>3.2.0-65-generic-pae</b><br>
    <br>
    Anyone knows how to solve this? Do you any additional information?<br>
    <br>
    Thanks per advance!!<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <div>-- <br>
      <img src="cid:part1.09030407.07030808@gmail.com" border="0" height="113" width="229"></div>
  </font></span></div>

<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>