Closed palaiya closed 4 years ago
@palaiya you have a mixture of packages from conda-forge and the default channel: fiona (and libgdal) is coming from defaults, but all other dependencies of libgdal are coming from conda-forge. This mismatch is causing the error you see.
How did you install geopandas or fiona? Which command did you use? (conda-forge is correctly listed as first channel, so that seems good)
How did you install geopandas or fiona? Which command did you use? (conda-forge is correctly listed as first channel, so that seems good)
Also, here is the relevant documentation on how to use conda-forge: https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge
@jorisvandenbossche I didn't install geopandas
or fiona
separately. It came with earthpy
and that too via different channel as you can see in the sceenshots below.
So, what did i do wrong here?
Moreover, here is the output of my .condarc
auto_activate_base: false
ssl_verify: true
channels:
- conda-forge
- defaults
@ocefpaf As mentioned above my primary channel is conda-forge
right? So, packaged should come from conda-forge
by default
So, packaged should come from conda-forge by default
B/c you are not using strict
as mentioned in our docs. Please see the link I sent you above.
Closing this b/c the problem is not the package but the use of conda/conda-forge.
@ocefpaf I did put the strict condition as you can see in the screenshot below all the packages are from conda-forge now. But still i am not able to resolve the issue.
Traceback (most recent call last):
File "cloudmask.py", line 4, in <module>
import earthpy.spatial as es
File "/Users/Naresh/anaconda3/lib/python3.7/site-packages/earthpy/spatial.py", line 15, in <module>
import geopandas as gpd
File "/Users/Naresh/anaconda3/lib/python3.7/site-packages/geopandas/__init__.py", line 5, in <module>
from geopandas.io.file import read_file
File "/Users/Naresh/anaconda3/lib/python3.7/site-packages/geopandas/io/file.py", line 4, in <module>
import fiona
File "/Users/Naresh/anaconda3/lib/python3.7/site-packages/fiona/__init__.py", line 83, in <module>
from fiona.collection import BytesCollection, Collection
File "/Users/Naresh/anaconda3/lib/python3.7/site-packages/fiona/collection.py", line 9, in <module>
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: dlopen(/Users/Naresh/anaconda3/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
Referenced from: /Users/Naresh/anaconda3/lib/libgdal.20.dylib
Reason: Incompatible library version: libgdal.20.dylib requires version 10.0.0 or later, but libtiff.5.dylib provides version 6.0.0
@ocefpaf Updated my screenshot. Can you see now?
@ocefpaf I did put the strict condition as you can see in the screenshot
I don't see it in your screenshot and it is not in your .condarc
.
@ocefpaf I did put the strict condition as you can see in the screenshot
I don't see it in your screenshot and it is not in your
.condarc
.
I have updated the screenshot. Apologies in the initial screenshot it was not there. Now the problem is not solved.
Hello all, I ran into a similar issue today. I made a post here:
@palaiya Did you solve your problem? Thanks
@FelixLangot One thing to try is installing in a fresh environment (not the base conda env). This solved the issue for me.
Hi @jsta, Thanks for your reply. As detailed in my stackoverflow post (Edit 2), I already tried a fresh env with only installing fiona from conda-forge. The installation is successful, but the import in python still does not work.
Issue: After i install earthpy i get the following exception. I tried reinstalling gdal also but didn't work. Moreover, few people suggested to have the packages from same channel and i tried installing all the packages from
conda-forge
. But still i am not able to resolve the issue. I am working onmacMojave (10.14.5)
and rest of the details of conda info and list are below.Environment (
conda list
):