Fiona: FionaValueError: No dataset found at path
I suddenly keep getting:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\fiona\__init__.py", line 175, in open
enabled_drivers=enabled_drivers)
File "C:\Python27\lib\site-packages\fiona\collection.py", line 147, in __init__
self.session.start(self)
File "fiona\ogrext.pyx", line 444, in fiona.ogrext.Session.start (fiona/ogrext.c:9253)
FionaValueError: No dataset found at path '\test.shp' using drivers: *
I use fiona through rasterstats (https://github.com/perrygeo/python-rasterstats). I get this with every .shp files. Even those that used to work.
The problem is that I don’t know exactly what changed. I’ve updated to: Python 2.7.13 And from Gohlke: Fiona 1.7.1 GDAL 2.0.2 (because the 2.1.2 version resulted in Python crashes) From gisinternals GDAL 2.1.2 and it started not working.
I used to use: Python 2.7.11 And from Gohlke: Fiona 1.6.3 GDAL 2.0.2 From gisinternals GDAL 2.1.0
The problem is when I uninstall everything (even GDAL from gisinternals) and go back to 1.6.3, the problem persists. ogrext.pyx doesn’t seems to be anywhere (only .pyd) but I guess that’s normal?
I apologize already for probably not giving enough information. Many thanks in advance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (7 by maintainers)
Good news everyone, I got it working. Even though I tried reinstalling everything several times I got it working with installing after deinstalling the packages on Python 2.7.11:
To recapitulate: The original Fiona error I got probably started when I updated the GISinternals GDAL (from 2.1.0 to 2.1.2). I didn’t uninstall it first so it probably also got faulty. While this still being installed I updated the Gohlke GDAL from 2.0.2 to 2.1.2 and this made python crash so I went back to Gohlke GDAL 2.0.2. And that didn’t match with Fiona 1.7.1. So I went back to Fiona 1.6.3 and that gave the Indexerror.
Now that the GISinternals GDAL is removed, the Gohlke GDAL 2.1.2 doesn’t crash anymore and it now all works but it took some time for me to try this version again. Which was actually the 2nd part of the issue here. I also got a small hiccup went l installed rasterio 0.36.0, but it of course needs Gohlke GDAL 2.0.2 so rasterio1.0a3 did the trick. I can also confirm that rasterstats 0.11.0 is needed (0.10.3 does not work).
It all seems logic now. I would like to thank you, @rbuffat @sgillies and @perrygeo, for dealing with this problem even though you shouldn’t have. Thank you for being my listening board.
What still remains (and probably forever): How did it work with Fiona 1.6.3 and GDAL2.0.2 before I updated? (rhetorical…)
Ciao.
I would recommend deinstalling all gdal / fiona / rasterio libraries.Then check site-packages for left-overs. Then download the latest gdal / fiona / rasterio wheels from gohlke and install them. If you sue the wheels from gohlke, I would only use wheels that are downloaded at the same time, because of the dependencies with gdal.