<div dir="ltr">Hi, <br><br>I'm trying to adapt a test to Py3/Qt5 and I get this odd error: <br><div><br>AttributeError: 'QgsFeatureIterator' object has no attribute 'next'<br><br></div><div>The C++-like call works fine:<br><br>fit=layer.dataProvider().getFeatures(request)<br>f=QgsFeature()<br>fit.nextFeature(f)<br>True<br><br clear="all"></div><div><br></div><div>the layer is a test layer:<br>layer.dataProvider().dataSourceUri()<br></div><div>"dbname='/tmp/tmp57y5_gmm/offlineDbFile.sqlite' table='wfs_test_point20160701113316894'(Geometry) sql="<br><br></div><div>Same error in python console with a shapefile layer.<br><br></div><div>Any idea?<br></div><div><br><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>