-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: DLL load failed #7
Comments
Hi Dimitris, This looks like an incompatibility issue between GDAL and Fiona. Are you using a windows system? How do you manage your python installs/environment? Anaconda? |
Win11 and Anaconda. |
It looks like certain versions of Fiona and GDAL are not compatible. Fiona 1.8.9 supports GDAL 3.0 so I would recommend a new env with these specific versions |
I will test them and come back ! |
Following your advice and running the condia install fiona=1.8.9 i have that conflict Package fiona conflicts for: Am running now a step by step package installation to identify which is incompatible with the rest. |
Are you using the condo-forge channel? All packages in this channel should be compatible |
Yeap, we use conda-forge. It seems from the below that i need to create env with python > 3.6 and python < 3.7, right? (bathymetry) C:\Users\DimitrisPoursanidis>conda install -c conda-forge fiona=1.8.9
|
one thing to try would be to build an env on 3.9 and then do: conda update --all This sometimes resolves issues as it bring the latest (hopefully compatible) versions together |
now something else appear (bathymetry) D:\IC2data\C-SHELPh-main\C-SHELPh-main\4.Tutorial\code>python 1_test_env.py |
Hi Did you find time to check it in windows machine? D. |
It looks like it cannot import matplotlib.widgets.LassoSelector. This module is no longer used - it was used in an old method. You can remove:
Remove these lines and try again |
Hi Nathan,
Following the guidelines i end to that error:
(bathymetry) D:\IC2data\C-SHELPh-main\C-SHELPh-main\4.Tutorial\code>python 1_test_env.py
Traceback (most recent call last):
File "D:\IC2data\C-SHELPh-main\C-SHELPh-main\4.Tutorial\code\1_test_env.py", line 24, in
raise e
File "D:\IC2data\C-SHELPh-main\C-SHELPh-main\4.Tutorial\code\1_test_env.py", line 17, in
import fiona
File "C:\Users\DimitrisPoursanidis\anaconda3\envs\bathymetry\lib\site-packages\fiona_init_.py", line 86, in
from fiona.collection import BytesCollection, Collection
File "C:\Users\DimitrisPoursanidis\anaconda3\envs\bathymetry\lib\site-packages\fiona\collection.py", line 11, in
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed while importing ogrext: The specified procedure could not be found.
It seems that is linked (?) with GDAL (https://gis.stackexchange.com/questions/67372/fiona-importerror-dll-load-failed).
Any idea on how to solve it without complex processes?
Thanks
D.
The text was updated successfully, but these errors were encountered: