Hi

I can confirm this error.
It seems to me that r.drain never has been functional.

Maybe you could file a bug in the tracker?

Or maybe someone knows WHAT to change it WHICH script?

Cheers
Bernd



Am 23.09.2013, 23:40 Uhr, schrieb Sławomir Bienias <slawomir.bien...@gmail.com>:

Hey, everyone..
I have a problem with r.drain in QGIS 2.0.1.
I need to use r.drain tool from Geoprocessing tools. But when I want to use it, while I have loaded some vector layers (esri shp), Python shows me some
error (below).
"Funny" thing is, when I have loaded only raster files, r.drain works
(r.drain window shows up). Next "funny" thing is, all... ALL of the other
tools work just great. Only r.drain have a problem...

The same problem is on Windows 7 64 bit (osgeo4w installation) and Ubuntu
13.04 32 bit (ubuntugis-unstable ppa).

I noticed, that error is related with shape type (if shapetype ==
QGisLayers.ALL_TYPES or layer.geometryType() in shapetype: TypeError:
argument of type 'float' is not iterable), but I don't know where problem
is and how to solve it...


Below is Python's log error (Windows 7):

#####
Traceback (most recent call last):
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",
line 147, in executeAlgorithm
    dlg = ParametersDialog(alg)
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersDialog.py",
line 38, in __init__
    self.paramTable = ParametersPanel(self, alg)
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
line 78, in __init__
    self.initGUI()
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
line 120, in initGUI
    widget = self.getWidgetFromParameter(param)
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\gui\ParametersPanel.py",
line 279, in getWidgetFromParameter
    options = QGisLayers.getVectorLayers(param.datatype)
  File
"C:/OSGeo4W2/apps/qgis/./python/plugins\processing\core\QGisLayers.py",
line 84, in getVectorLayers
    if shapetype == QGisLayers.ALL_TYPES or layer.geometryType() in
shapetype:
TypeError: argument of type 'float' is not iterable

Wersja Pythona:
2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

Wersja QGIS:
2.0.1-Dufour Dufour, 34139bc

Lokalizacja Pythona: ['C:/OSGeo4W2/apps/qgis/./python/plugins\\processing',
'C:/OSGeo4W2/apps/qgis/./python', 'C:\\Users\\Binko/.qgis2/python',
'C:\\Users\\Binko/.qgis2/python/plugins',
'C:/OSGeo4W2/apps/qgis/./python/plugins',
'C:\\OSGeo4W2\\bin\\python27.zip', 'C:\\OSGeo4W2\\apps\\Python27\\DLLs',
'C:\\OSGeo4W2\\apps\\Python27\\lib',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\plat-win',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W2\\bin',
'C:\\OSGeo4W2\\apps\\Python27',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGeo4W2\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGeo4W2\\apps\\qgis\\python\\plugins\\fTools\\tools']
#####


Regards,
Sławomir Bienias


--
Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf * +49-9133-825374
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to