[GIS] How to fix AttributeError: ‘QgsVectorLayer’ object has no attribute ‘provider’

qgissextante-qgis-plugin

When I try to start this algorithm I get an error:

Traceback (most recent call last):
File "C:/Users/trdina/.qgis//python/plugins\sextante\core\GeoAlgorithm.py", line 145, in execute
self.processAlgorithm(progress)
File "C:/Users/trdina/.qgis//python/plugins\sextante\algs\ftools\SumLines.py", line 85, in processAlgorithm
spatialIndex = utils.createSpatialIndex(lineLayer)
File "C:/Users/trdina/.qgis//python/plugins\sextante\algs\ftools\FToolsUtils.py", line 32, in createSpatialIndex
provider = layer.provider()
AttributeError: 'QgsVectorLayer' object has no attribute 'provider'

I have no clue woh to solve this error. Any help is welcome.
Best regards

Best Answer

Sounds like a bug coming from the recent QGIS Api changes. Consider posting a detailed bug-report here.
In the meantime try to use alternative tools like the Lines Properties function in SAGA (also accessible through sextante).