RuntimeWarning: Sequential read of iterator was interrupted. Resetting iterator. This can negatively impact the performance.
See original GitHub issueThe RuntimeWarning
does not appear in 1.8.17. I think this is a regression introduced in 1.8.18. Related SO question: https://stackoverflow.com/q/64995369/9778755
_Originally posted by @StefanBrand in https://github.com/Toblerity/Fiona/issues/965#issuecomment-737073718_
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Geopandas warning on read_file() - python - Stack Overflow
For the drivers that do not support random access, the resetting of the iterator involves reading all features again up to the iterator...
Read more >Do-It-Yourself — A course on Geographic Data Science
... RuntimeWarning: Sequential read of iterator was interrupted. Resetting iterator. This can negatively impact the performance. for feature in features_lst ...
Read more >Extract one geometry type from GML file in GeoPandas
... RuntimeWarning: Sequential read of iterator was interrupted. Resetting iterator. This can negatively impact the performance. for feature ...
Read more >Netherlands electricity regional time series | Kaggle
Time # Log Message
11.3s 2 from pyarrow import HadoopFileSystem
106.7s 4 for feature in features_lst:
354.3s 6 FutureWarning,
Read more >Interpolation of signatures to OA and LSOA
... RuntimeWarning: Sequential read of iterator was interrupted. Resetting iterator. This can negatively impact the performance. for feature in features_lst ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So what’s going on is that the list() method seems to call len() before it starts iterating over the Iterator. I assume this is to create an efficient data structure for the list. Would be interesting to look at the implementation of list(). We probably should not emit a warning when the iterator was interrupted before an iteration has actually started.
Output:
Thanks for the explanation @rbuffat, sounds reasonable. Checking here it seems that there are indeed later versions available: https://anaconda.org/conda-forge/fiona
I’m guess it may be because we pin the Python version as follows:
Plan to set that as
Source: https://github.com/geocompr/py/blob/main/environment.yml