Open dpoursanidis opened 1 year ago
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. I see that the issue is due to what you describe. What do you suggest (apart from linux movement :) )?
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: fiona=1.8.9 geopandas -> fiona
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 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort.- |failed UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications:
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
Traceback (most recent call last):
File "D:\IC2data\C-SHELPh-main\C-SHELPh-main\4.Tutorial\code\1_test_env.py", line 24, in
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:
from matplotlib.widgets import LassoSelector
from matplotlib.path import Path
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.