i have installed fiona using whl distributions.. but while importing i am getting following error :
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b0161244e1be> in <module>()
----> 1 import fiona
2 with fiona.open(r'C:\Users\harish.padi\Downloads\BSP\BSP\BSP_default_pred.shp', 'r') as input:
3 with open(r'C:\Users\harish.padi\Downloads\BSP\BSP\output.txt', 'w') as output:
4 for pt in input:
5 id = pt['properties']['id']
c:\program files\python36\lib\site-packages\fiona\__init__.py in <module>()
75 pass
76
---> 77 from fiona.collection import Collection, BytesCollection, vsi_path
78 from fiona._drivers import driver_count, GDALEnv
79 from fiona.drvsupport import supported_drivers
c:\program files\python36\lib\site-packages\fiona\collection.py in <module>()
7
8 from fiona import compat
----> 9 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
10 from fiona.ogrext import Session, WritingSession
11 from fiona.ogrext import (
ImportError: DLL load failed: The specified module could not be found.
can anyone suggest a solution.?
I had also some troubles when i installed fiona and tried to import it. I had this kind of message
>>> import fiona
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Software\Ingenieria\Anaconda2\lib\site-packages\fiona\__init__.py", l
ine 77, in <module>
from fiona.collection import Collection, BytesCollection, vsi_path
File "D:\Software\Ingenieria\Anaconda2\lib\site-packages\fiona\collection.py",
line 9, in <module>
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The specified module could not be found.
How did it work for me at the end?
After doing those steps i never had any more problems with fiona. At first, i was using the GDAL version 1.1.4 but it never worked with this one. You can try first with the version one, and if it doesn´t work then install the version 2.2.4