Closed zc4242 closed 5 years ago
@jonathanc42 it seems you have a mixture of defaults and conda-forge packages (eg gdal is from conda-forge, but libgdal from the defaults channel)
Can you please try to make a new environment with either only from conda-forge, or either only from defaults (geopandas is available in both)?
Got the same issue. Tried it with channel defaults and conda-forge
Conda list (with defaults):
# packages in environment at /Users/q458471/miniconda3/envs/odm_new3:
#
# Name Version Build Channel
blas 1.0 mkl
bzip2 1.0.6 h1de35cc_5
ca-certificates 2018.03.07 0
cairo 1.14.12 hc4e6be7_4
certifi 2018.10.15 py37_0
click 7.0 py37_0
click-plugins 1.0.4 py37_0
cligj 0.5.0 py37_0
curl 7.61.1 ha441bb4_0
cycler 0.10.0 py37_0
descartes 1.1.0 py37_0
expat 2.2.6 h0a44026_0
fiona 1.7.12 py37h0dff353_0
fontconfig 2.13.0 h5d5b041_1
freetype 2.9.1 hb4e5f40_0
freexl 1.0.5 h1de35cc_0
gdal 2.2.4 py37h6440ff4_1
geopandas 0.3.0 py37_0
geos 3.6.2 h5470d99_2
gettext 0.19.8.1 h15daf44_3
giflib 5.1.4 h1de35cc_1
glib 2.56.2 hd9629dc_0
hdf4 4.2.13 h39711bb_2
hdf5 1.10.2 hfa1e0ec_1
icu 58.2 h4b95b61_1
intel-openmp 2019.1 144
jpeg 9b he5867d9_2
json-c 0.13.1 h3efe00b_0
kealib 1.4.7 h40e48e4_6
kiwisolver 1.0.1 py37h0a44026_0
krb5 1.16.1 h24a3359_6
libboost 1.67.0 hebc422b_4
libcurl 7.61.1 hf30b1f0_0
libcxx 4.0.1 hcfea43d_1
libcxxabi 4.0.1 hcfea43d_1
libdap4 3.19.1 h3d3e54a_0
libedit 3.1.20170329 hb402a30_2
libffi 3.2.1 h475c297_4
libgdal 2.2.4 h7b1ea53_1
libgfortran 3.0.1 h93005f0_2
libiconv 1.15 hdd342a3_7
libkml 1.3.0 hbe12b63_4
libnetcdf 4.6.1 h4e6abe9_2
libpng 1.6.35 ha441bb4_0
libpq 10.5 hf30b1f0_0
libspatialindex 1.8.5 h2c08c6b_2
libspatialite 4.3.0a ha12ebda_19
libssh2 1.8.0 h322a93b_4
libtiff 4.0.9 hcb84e12_2
libuuid 1.0.3 h6bb4b03_2
libxml2 2.9.8 hab757c2_1
matplotlib 3.0.1 py37h54f8f79_0
mkl 2018.0.3 1
mkl_fft 1.0.6 py37hb8a8100_0
mkl_random 1.0.1 py37h5d10147_1
munch 2.3.2 py37_0
ncurses 6.1 h0a44026_0
numpy 1.15.4 py37h6a91979_0
numpy-base 1.15.4 py37h8a80b8c_0
openjpeg 2.3.0 hb95cd4c_1
openssl 1.0.2p h1de35cc_0
pandas 0.23.4 py37h6440ff4_0
pcre 8.42 h378b8a2_0
pip 18.1 py37_0
pixman 0.34.0 hca0a616_3
poppler 0.65.0 ha097c24_1
poppler-data 0.4.9 0
proj4 5.0.1 h1de35cc_0
psycopg2 2.7.5 py37hdbc3d79_0
pyparsing 2.3.0 py37_0
pyproj 1.9.5.1 py37h833a5d7_1
pysal 1.14.4.post1 py37_1
python 3.7.0 hc167b69_0
python-dateutil 2.7.5 py37_0
pytz 2018.7 py37_0
readline 7.0 h1de35cc_5
rtree 0.8.3 py37_0
scipy 1.1.0 py37h28f7352_1
setuptools 40.6.2 py37_0
shapely 1.6.4 py37h20de77a_0
six 1.11.0 py37_1
sqlalchemy 1.2.14 py37h1de35cc_0
sqlite 3.25.3 ha441bb4_0
tk 8.6.8 ha441bb4_0
tornado 5.1.1 py37h1de35cc_0
wheel 0.32.3 py37_0
xerces-c 3.2.2 h44e365a_0
xz 5.2.4 h1de35cc_4
zlib 1.2.11 h1de35cc_3
Error:
import geopandas
ImportError: dlopen(/Users/user/miniconda3/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libssl.1.0.0.dylib
Referenced from: /Users/user/miniconda3/lib/libgdal.20.dylib
Reason: image not found
Got the same issue. Tried it with channel defaults and conda-forge
Regarding defaults
please open an issue with AnacondaInc, regarding conda-forge
I cannot debug your env b/c you did not paste it here for inspection. If you want to test it again try:
conda config --remove channels defaults
conda create --name TEST python=3.7 geopandas --yes
conda activate TEST
python -c "import geopandas; print(geopandas.__version__)"
0.4.0
PS: this is a classic "bad channel mix" problem and can be solved with the recommendations above. Closing.
@ocefpaf I am getting the same error as the OP and have come across the same advice re: channel mix, but when when I take the steps below:
conda config --remove channels defaults
conda create --name GeoEnv3 python=3.6 geopandas --yes
conda activate GeoEnv3
python -c "import geopandas"
I get the following error:
ImportError: dlopen(/anaconda/envs/GeoEnv3/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libssl.1.0.0.dylib
Referenced from: /anaconda/envs/GeoEnv3/lib/libgdal.20.dylib
Reason: image not found
conda list
returns the following details, which seems to suggest that I don't have a mix of channels in this env. Further libgdal
looks like its installed in the env and matches the channel for fiona
and geopandas
so the error doesn't seem to be channel-related.
Name Version Build Channel
blas 1.1 openblas conda-forge
boost-cpp 1.68.0 h6f8c590_1000 conda-forge
bzip2 1.0.6 h1de35cc_1002 conda-forge
ca-certificates 2019.3.9 hecc5488_0 conda-forge
cairo 1.16.0 h9247486_1000 conda-forge
certifi 2019.3.9 py36_0 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.0.4 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
curl 7.64.0 heae2a1f_2 conda-forge
cycler 0.10.0 py_1 conda-forge
descartes 1.1.0 py_2 conda-forge
expat 2.2.5 h0a44026_1002 conda-forge
fiona 1.7.13 py36hb00a9d7_4 conda-forge
fontconfig 2.13.1 h1e4e890_1000 conda-forge
freetype 2.9.1 h597ad8a_1005 conda-forge
freexl 1.0.5 h1de35cc_1002 conda-forge
gdal 2.2.4 py36hb00a9d7_1 conda-forge
geopandas 0.4.1 py_0 conda-forge
geos 3.6.2 h0a44026_1004 conda-forge
geotiff 1.4.2 h2e810ce_1005 conda-forge
gettext 0.19.8.1 hcca000d_1001 conda-forge
giflib 5.1.4 h1de35cc_1001 conda-forge
glib 2.58.3 h2836805_1001 conda-forge
hdf4 4.2.13 hf3c6af0_1002 conda-forge
hdf5 1.10.2 hc401514_3 conda-forge
icu 58.2 h0a44026_1000 conda-forge
jpeg 9c h1de35cc_1001 conda-forge
json-c 0.12.1 h470a237_1 conda-forge
kealib 1.4.9 h0bee7d0_2 conda-forge
kiwisolver 1.0.1 py36h04f5b5a_1002 conda-forge
krb5 1.16.3 hcfa6398_1001 conda-forge
libcurl 7.64.0 he376013_2 conda-forge
libcxx 7.0.0 h2d50403_1 conda-forge
libdap4 3.19.1 hae55d67_1000 conda-forge
libedit 3.1.20170329 hcfe32e1_1001 conda-forge
libffi 3.2.1 h0a44026_1005 conda-forge
libgdal 2.2.4 he036fc0_8 conda-forge
libgfortran 3.0.1 0 conda-forge
libiconv 1.15 h1de35cc_1004 conda-forge
libkml 1.3.0 h71ee1b2_1009 conda-forge
libnetcdf 4.6.1 h34af652_200 conda-forge
libpng 1.6.36 ha441bb4_1000 conda-forge
libpq 11.2 h29c6f28_0 conda-forge
libspatialindex 1.8.5 h0a44026_1003 conda-forge
libspatialite 4.3.0a hf0dd066_1023 conda-forge
libssh2 1.8.0 hb1dc21d_1004 conda-forge
libtiff 4.0.10 h344961e_1002 conda-forge
libxml2 2.9.8 hf14e9c8_1005 conda-forge
llvm-meta 7.0.0 0 conda-forge
mapclassify 2.0.1 py_0 conda-forge
matplotlib 3.0.3 py36_0 conda-forge
matplotlib-base 3.0.3 py36hf043ca5_0 conda-forge
munch 2.3.2 py_0 conda-forge
ncurses 6.1 h0a44026_1002 conda-forge
numpy 1.16.2 py36_blas_openblash486cb9f_0 [blas_openblas] conda-forge
openblas 0.3.3 hdc02c5d_1001 conda-forge
openjpeg 2.3.0 h3bf0609_1003 conda-forge
openssl 1.1.1b h1de35cc_1 conda-forge
pandas 0.24.1 py36h0a44026_0 conda-forge
pcre 8.41 h0a44026_1003 conda-forge
pip 19.0.3 py36_0 conda-forge
pixman 0.34.0 h1de35cc_1003 conda-forge
poppler 0.67.0 hb974355_6 conda-forge
poppler-data 0.4.9 1 conda-forge
proj4 4.9.3 h470a237_8 conda-forge
pyparsing 2.3.1 py_0 conda-forge
pyproj 1.9.5.1 py36hfb6cdf6_1006 conda-forge
python 3.6.7 h8dc6b48_1004 conda-forge
python-dateutil 2.8.0 py_0 conda-forge
pytz 2018.9 py_0 conda-forge
readline 7.0 hcfe32e1_1001 conda-forge
rtree 0.8.3 py36_1000 conda-forge
scipy 1.2.1 py36_blas_openblash486cb9f_0 [blas_openblas] conda-forge
setuptools 40.8.0 py36_0 conda-forge
shapely 1.6.4 py36h2e8a847_1000 conda-forge
six 1.12.0 py36_1000 conda-forge
sqlite 3.26.0 h1765d9f_1001 conda-forge
tk 8.6.9 ha441bb4_1000 conda-forge
tornado 6.0.1 py36h1de35cc_0 conda-forge
wheel 0.33.1 py36_0 conda-forge
xerces-c 3.2.0 h5d6a6da_2 conda-forge
xz 5.2.4 h1de35cc_1001 conda-forge
zlib 1.2.11 h1de35cc_1004 conda-forge
zstd 1.3.3 1 conda-forge
I have gotten geopandas to work in a separate env, but only by following the advice that @dannguyen recommended in this issue and running conda install -c conda-forge fiona "libgdal<2.0"
which downgraded the env to python 2.7 and causes other headaches so definitely a less than ideal solution.
If I'm still misunderstanding how the channels bug works and haven't taken the necessary steps to address it with the new env I created, I'd really appreciate your help in identifying where I went wrong. Thanks!
I don't have a macOS here to debug that but can you try:
conda config --add channels conda-forge
conda config --set channel_priority strict
conda config --set show_channel_urls True
and then:
conda create --name TEST python=3.7 geopandas
conda activate TEST
python -c "import geopandas; print(geopandas.__version__)"
@ocefpaf Thanks for the additional help good news is when I followed the steps and made the channel_priority
strict and created a new env with python=3.7
it worked, but then I tried to create an env with python=3.6
and it returned the same error as above.
Any idea why it would work with python 3.7 but not python 3.6?
Here's conda list
for the 3.7 environment:
Name Version Build Channel
attrs 19.1.0 py_0 conda-forge
blas 1.1 openblas conda-forge
boost-cpp 1.68.0 h6f8c590_1000 conda-forge
bzip2 1.0.6 h1de35cc_1002 conda-forge
ca-certificates 2019.3.9 hecc5488_0 conda-forge
cairo 1.16.0 h9247486_1000 conda-forge
certifi 2019.3.9 py37_0 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.0.4 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
curl 7.64.0 heae2a1f_0 conda-forge
cycler 0.10.0 py_1 conda-forge
descartes 1.1.0 py_2 conda-forge
expat 2.2.5 h0a44026_1002 conda-forge
fiona 1.8.4 py37h0e3174d_1002 conda-forge
fontconfig 2.13.1 h1e4e890_1000 conda-forge
freetype 2.9.1 h597ad8a_1005 conda-forge
freexl 1.0.5 h1de35cc_1002 conda-forge
gdal 2.4.0 py37h0e3174d_1002 conda-forge
geopandas 0.4.1 py_0 conda-forge
geos 3.7.1 h0a44026_1000 conda-forge
geotiff 1.4.3 hce09ea4_1000 conda-forge
gettext 0.19.8.1 hcca000d_1001 conda-forge
giflib 5.1.4 h1de35cc_1001 conda-forge
glib 2.58.3 h2836805_1001 conda-forge
hdf4 4.2.13 hf3c6af0_1002 conda-forge
hdf5 1.10.4 nompi_h646315f_1105 conda-forge
icu 58.2 h0a44026_1000 conda-forge
jpeg 9c h1de35cc_1001 conda-forge
json-c 0.13.1 h1de35cc_1001 conda-forge
kealib 1.4.10 hf5ed860_1002 conda-forge
kiwisolver 1.0.1 py37h04f5b5a_1002 conda-forge
krb5 1.16.3 h24a3359_1000 conda-forge
libcurl 7.64.0 h76de61e_0 conda-forge
libcxx 7.0.0 h2d50403_1 conda-forge
libdap4 3.19.1 hae55d67_1000 conda-forge
libedit 3.1.20170329 hcfe32e1_1001 conda-forge
libffi 3.2.1 h0a44026_1005 conda-forge
libgdal 2.4.0 h89caebc_1002 conda-forge
libgfortran 3.0.1 0 conda-forge
libiconv 1.15 h1de35cc_1004 conda-forge
libkml 1.3.0 h71ee1b2_1009 conda-forge
libnetcdf 4.6.2 h6b88ef6_1001 conda-forge
libpng 1.6.36 ha441bb4_1000 conda-forge
libpq 10.6 hbe1e24e_1000 conda-forge
libspatialindex 1.8.5 h0a44026_1003 conda-forge
libspatialite 4.3.0a h0cd9627_1026 conda-forge
libssh2 1.8.0 hf30b1f0_1003 conda-forge
libtiff 4.0.10 h344961e_1002 conda-forge
libxml2 2.9.8 hf14e9c8_1005 conda-forge
llvm-meta 7.0.0 0 conda-forge
mapclassify 2.0.1 py_0 conda-forge
matplotlib 3.0.3 py37_0 conda-forge
matplotlib-base 3.0.3 py37hf043ca5_0 conda-forge
munch 2.3.2 py_0 conda-forge
ncurses 6.1 h0a44026_1002 conda-forge
numpy 1.16.2 py37_blas_openblash486cb9f_0 [blas_openblas] conda-forge
openblas 0.3.3 hdc02c5d_1001 conda-forge
openjpeg 2.3.0 h3bf0609_1003 conda-forge
openssl 1.0.2r h1de35cc_0 conda-forge
pandas 0.24.1 py37h0a44026_0 conda-forge
pcre 8.41 h0a44026_1003 conda-forge
pip 19.0.3 py37_0 conda-forge
pixman 0.34.0 h1de35cc_1003 conda-forge
poppler 0.67.0 hb974355_6 conda-forge
poppler-data 0.4.9 1 conda-forge
postgresql 10.6 ha1bbaa7_1000 conda-forge
proj4 5.2.0 h1de35cc_1001 conda-forge
pyparsing 2.3.1 py_0 conda-forge
pyproj 1.9.6 py37h9c430a6_1000 conda-forge
python 3.7.1 h145921a_1000 conda-forge
python-dateutil 2.8.0 py_0 conda-forge
pytz 2018.9 py_0 conda-forge
readline 7.0 hcfe32e1_1001 conda-forge
rtree 0.8.3 py37_1000 conda-forge
scipy 1.2.1 py37_blas_openblash486cb9f_0 [blas_openblas] conda-forge
setuptools 40.8.0 py37_0 conda-forge
shapely 1.6.4 py37h2bcc7ef_1002 conda-forge
six 1.12.0 py37_1000 conda-forge
sqlite 3.26.0 h1765d9f_1001 conda-forge
tk 8.6.9 ha441bb4_1000 conda-forge
tornado 6.0.1 py37h1de35cc_0 conda-forge
tzcode 2018g h1de35cc_1001 conda-forge
wheel 0.33.1 py37_0 conda-forge
xerces-c 3.2.2 h44e365a_1001 conda-forge
xz 5.2.4 h1de35cc_1001 conda-forge
zlib 1.2.11 h1de35cc_1004 conda-forge
zstd 1.3.3 1 conda-forge
and here's conda list
for 3.6
Name Version Build Channel
blas 1.1 openblas conda-forge
boost-cpp 1.68.0 h6f8c590_1000 conda-forge
bzip2 1.0.6 h1de35cc_1002 conda-forge
ca-certificates 2019.3.9 hecc5488_0 conda-forge
cairo 1.16.0 h9247486_1000 conda-forge
certifi 2019.3.9 py36_0 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.0.4 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
curl 7.64.0 heae2a1f_2 conda-forge
cycler 0.10.0 py_1 conda-forge
descartes 1.1.0 py_2 conda-forge
expat 2.2.5 h0a44026_1002 conda-forge
fiona 1.7.13 py36hb00a9d7_4 conda-forge
fontconfig 2.13.1 h1e4e890_1000 conda-forge
freetype 2.9.1 h597ad8a_1005 conda-forge
freexl 1.0.5 h1de35cc_1002 conda-forge
gdal 2.2.4 py36hb00a9d7_1 conda-forge
geopandas 0.4.1 py_0 conda-forge
geos 3.6.2 h0a44026_1004 conda-forge
geotiff 1.4.2 h2e810ce_1005 conda-forge
gettext 0.19.8.1 hcca000d_1001 conda-forge
giflib 5.1.4 h1de35cc_1001 conda-forge
glib 2.58.3 h2836805_1001 conda-forge
hdf4 4.2.13 hf3c6af0_1002 conda-forge
hdf5 1.10.2 hc401514_3 conda-forge
icu 58.2 h0a44026_1000 conda-forge
jpeg 9c h1de35cc_1001 conda-forge
json-c 0.12.1 h470a237_1 conda-forge
kealib 1.4.9 h0bee7d0_2 conda-forge
kiwisolver 1.0.1 py36h04f5b5a_1002 conda-forge
krb5 1.16.3 hcfa6398_1001 conda-forge
libcurl 7.64.0 he376013_2 conda-forge
libcxx 7.0.0 h2d50403_1 conda-forge
libdap4 3.19.1 hae55d67_1000 conda-forge
libedit 3.1.20170329 hcfe32e1_1001 conda-forge
libffi 3.2.1 h0a44026_1005 conda-forge
libgdal 2.2.4 he036fc0_8 conda-forge
libgfortran 3.0.1 0 conda-forge
libiconv 1.15 h1de35cc_1004 conda-forge
libkml 1.3.0 h71ee1b2_1009 conda-forge
libnetcdf 4.6.1 h34af652_200 conda-forge
libpng 1.6.36 ha441bb4_1000 conda-forge
libpq 11.2 h29c6f28_0 conda-forge
libspatialindex 1.8.5 h0a44026_1003 conda-forge
libspatialite 4.3.0a hf0dd066_1023 conda-forge
libssh2 1.8.0 hb1dc21d_1004 conda-forge
libtiff 4.0.10 h344961e_1002 conda-forge
libxml2 2.9.8 hf14e9c8_1005 conda-forge
llvm-meta 7.0.0 0 conda-forge
mapclassify 2.0.1 py_0 conda-forge
matplotlib 3.0.3 py36_0 conda-forge
matplotlib-base 3.0.3 py36hf043ca5_0 conda-forge
munch 2.3.2 py_0 conda-forge
ncurses 6.1 h0a44026_1002 conda-forge
numpy 1.16.2 py36_blas_openblash486cb9f_0 [blas_openblas] conda-forge
openblas 0.3.3 hdc02c5d_1001 conda-forge
openjpeg 2.3.0 h3bf0609_1003 conda-forge
openssl 1.1.1b h1de35cc_1 conda-forge
pandas 0.24.1 py36h0a44026_0 conda-forge
pcre 8.41 h0a44026_1003 conda-forge
pip 19.0.3 py36_0 conda-forge
pixman 0.34.0 h1de35cc_1003 conda-forge
poppler 0.67.0 hb974355_6 conda-forge
poppler-data 0.4.9 1 conda-forge
proj4 4.9.3 h470a237_8 conda-forge
pyparsing 2.3.1 py_0 conda-forge
pyproj 1.9.5.1 py36hfb6cdf6_1006 conda-forge
python 3.6.7 h8dc6b48_1004 conda-forge
python-dateutil 2.8.0 py_0 conda-forge
pytz 2018.9 py_0 conda-forge
readline 7.0 hcfe32e1_1001 conda-forge
rtree 0.8.3 py36_1000 conda-forge
scipy 1.2.1 py36_blas_openblash486cb9f_0 [blas_openblas] conda-forge
setuptools 40.8.0 py36_0 conda-forge
shapely 1.6.4 py36h2e8a847_1000 conda-forge
six 1.12.0 py36_1000 conda-forge
sqlite 3.26.0 h1765d9f_1001 conda-forge
tk 8.6.9 ha441bb4_1000 conda-forge
tornado 6.0.1 py36h1de35cc_0 conda-forge
wheel 0.33.1 py36_0 conda-forge
xerces-c 3.2.0 h5d6a6da_2 conda-forge
xz 5.2.4 h1de35cc_1001 conda-forge
zlib 1.2.11 h1de35cc_1004 conda-forge
zstd 1.3.3 1 conda-forge
Any idea why it would work with python 3.7 but not python 3.6?
No idea b/c I cannot reproduce it on Linux and I don't have a macOS to test but, b/c you used strict
channel there, that is a problem with conda-forge
and I need to investigate it.
@widal001 the failing env is installing fiona 1.7.13
instead of the latest, probably b/c conda
is trying to maximize some other dependence. Can you try:
conda create --name TEST python=3.6 geopandas fiona=1.8
to so I can be sure that latest fiona
is working.
@ocefpaf really appreciate your help! Just tested it now with explicitly setting fiona=1.8
and it worked!
@ocefpaf really appreciate your help! Just tested it now with explicitly setting
fiona=1.8
and it worked!
OK. I'll check if I can fix the bad solve there. You should not need to specify fiona
to get the latest one.
I just made a few adjustments that should get the right gdal
/fiona
/geopandas
combination even without specifying the latest fiona
. It may take ~1 hour to propagate to the channel. Please let me know the results if you test it.
@ocefpaf Sorry I forgot to close this out: tested 3.6 without specifying fiona and it worked!! Thanks for the help!
@ocefpaf I'm so sorry to bug you again, but I just went to create a new env with geopandas and encountered the original issue after running conda create --name TEST python=3.7 geopandas
I still have channel_priority strict
with conda-forge
as the priority channel. My conda list
for the TEST
environment is below:
Name Version Build Channel
attrs 19.1.0 py_0 conda-forge
blas 1.1 openblas conda-forge
boost-cpp 1.68.0 h6f8c590_1000 conda-forge
bzip2 1.0.6 h1de35cc_1002 conda-forge
ca-certificates 2019.3.9 hecc5488_0 conda-forge
cairo 1.16.0 h9247486_1000 conda-forge
certifi 2019.3.9 py37_0 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.0.4 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
curl 7.64.0 heae2a1f_2 conda-forge
cycler 0.10.0 py_1 conda-forge
descartes 1.1.0 py_2 conda-forge
expat 2.2.5 h0a44026_1002 conda-forge
fiona 1.8.4 py37h0e3174d_1002 conda-forge
fontconfig 2.13.1 h1027ab8_1000 conda-forge
freetype 2.10.0 h24853df_0 conda-forge
freexl 1.0.5 h1de35cc_1002 conda-forge
gdal 2.4.0 py37h0e3174d_1003 conda-forge
geopandas 0.4.1 py_0 conda-forge
geos 3.7.1 h0a44026_1000 conda-forge
geotiff 1.4.3 hce09ea4_1000 conda-forge
gettext 0.19.8.1 hcca000d_1001 conda-forge
giflib 5.1.7 h01d97ff_0 conda-forge
glib 2.58.3 h2836805_1001 conda-forge
hdf4 4.2.13 hf3c6af0_1002 conda-forge
hdf5 1.10.4 nompi_h646315f_1105 conda-forge
icu 58.2 h0a44026_1000 conda-forge
jpeg 9c h1de35cc_1001 conda-forge
json-c 0.13.1 h1de35cc_1001 conda-forge
kealib 1.4.10 hf5ed860_1002 conda-forge
kiwisolver 1.0.1 py37h04f5b5a_1002 conda-forge
krb5 1.16.3 hcfa6398_1001 conda-forge
libcurl 7.64.0 he376013_2 conda-forge
libcxx 7.0.0 h2d50403_1 conda-forge
libdap4 3.19.1 hae55d67_1000 conda-forge
libedit 3.1.20170329 hcfe32e1_1001 conda-forge
libffi 3.2.1 h0a44026_1005 conda-forge
libgdal 2.4.0 h947adae_1003 conda-forge
libgfortran 3.0.1 0 conda-forge
libiconv 1.15 h1de35cc_1004 conda-forge
libkml 1.3.0 h71ee1b2_1009 conda-forge
libnetcdf 4.6.2 h6b88ef6_1001 conda-forge
libpng 1.6.36 ha441bb4_1000 conda-forge
libpq 11.2 h29c6f28_0 conda-forge
libspatialindex 1.8.5 h0a44026_1003 conda-forge
libspatialite 4.3.0a h0cd9627_1026 conda-forge
libssh2 1.8.0 hb1dc21d_1004 conda-forge
libtiff 4.0.10 h344961e_1002 conda-forge
libxml2 2.9.8 hf14e9c8_1005 conda-forge
llvm-meta 7.0.0 0 conda-forge
mapclassify 2.0.1 py_0 conda-forge
matplotlib 3.0.3 py37_0 conda-forge
matplotlib-base 3.0.3 py37hf043ca5_0 conda-forge
munch 2.3.2 py_0 conda-forge
ncurses 6.1 h0a44026_1002 conda-forge
numpy 1.16.2 py37_blas_openblash486cb9f_0 [blas_openblas] conda-forge
openblas 0.3.3 hdc02c5d_1001 conda-forge
openjpeg 2.3.0 h3bf0609_1003 conda-forge
openssl 1.1.1b h1de35cc_1 conda-forge
pandas 0.24.2 py37h0a44026_0 conda-forge
pcre 8.41 h0a44026_1003 conda-forge
pip 19.0.3 py37_0 conda-forge
pixman 0.34.0 h1de35cc_1003 conda-forge
poppler 0.67.0 hb974355_6 conda-forge
poppler-data 0.4.9 1 conda-forge
postgresql 11.2 h16efa30_0 conda-forge
proj4 5.2.0 h1de35cc_1001 conda-forge
pyparsing 2.3.1 py_0 conda-forge
pyproj 1.9.6 py37h9c430a6_1000 conda-forge
python 3.7.1 hbdd33cc_1003 conda-forge
python-dateutil 2.8.0 py_0 conda-forge
pytz 2018.9 py_0 conda-forge
readline 7.0 hcfe32e1_1001 conda-forge
rtree 0.8.3 py37_1000 conda-forge
scipy 1.2.1 py37_blas_openblash486cb9f_0 [blas_openblas] conda-forge
setuptools 40.8.0 py37_0 conda-forge
shapely 1.6.4 py37h2bcc7ef_1002 conda-forge
six 1.12.0 py37_1000 conda-forge
sqlite 3.26.0 h1765d9f_1001 conda-forge
tk 8.6.9 ha441bb4_1000 conda-forge
tornado 6.0.1 py37h1de35cc_0 conda-forge
tzcode 2018g h1de35cc_1001 conda-forge
wheel 0.33.1 py37_0 conda-forge
xerces-c 3.2.2 h44e365a_1001 conda-forge
xz 5.2.4 h1de35cc_1001 conda-forge
zlib 1.2.11 h1de35cc_1004 conda-forge
zstd 1.3.3 1 conda-forge
fiona
was installed with version 1.8.4
which was the issue previously. As far as I can tell the only potentially relevant difference between the packages in this environment and the last environment I created with python=3.7
and geopandas
is that the build for libgdal
in this env is h947adae_1003
while in the previous env it was h89caebc_1002
but even when I specified the installation with that build
conda create --name TEST2 python=3.7 geopandas libgdal=2.4.0=h89caebc_1002
I received a similar error:
ImportError: dlopen(/anaconda/envs/TEST2/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libgif.7.dylib
Referenced from: /anaconda/envs/TEST2/lib/libgdal.20.dylib
I recently updated conda
to version 4.6.8
which updated some packages on the base
env, could that be interfering with the builds in this new environment?
We are experiencing an issue with OS X in our CIs. I'm working on it and I'll report back as soon as I have a fix for it.
Thanks for the update!! Glad to hear it's not only me haha
Thanks for the update!! Glad to hear it's not only me haha
If you can try it again today please let me know how it goes.
Hi, I have the same issue as widal001, and have tried all that you mentioned on this thread (creating a test environment with python3.7), but I receive an error message concerning libgdal.20.dylib.
Let me know how I can help solving this issue!
creating a test environment with python3.7
That is not the only thing. Did you issue the commands below in order?
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create --name TEST python=3.7 geopandas --yes
conda activate TEST
python -c "import geopandas; print(geopandas.__version__)"
If so please send the contents of your .condarc
and the results of conda list
on that TEST
environment.
Thank you for your answer, it worked after I configured the test environment.
@ocefpaf worked for me too! Thanks for all of your help troubleshooting!
I followed a very similar perspective as above, and it definitely solved my problems.
But I wanted to added that I can simplify the procedure slightly with:
conda create --name gpd -c conda-forge python=3.7 geopandas ipython --yes
I don't like to delete defaults
; and I've previously had trouble after-the-fact when setting --set channel_priority strict
. The above command line minimizes the global impact to my other environments.
I have a bit of a mystery surrounding this. May have to do with priority channels in a way I don't understand.
This works.
conda create --name TEST -c conda-forge python=3.7 geopandas
(TEST) MacBook-Pro:DeepForest_JointPrediction ben$ python
Python 3.7.6 | packaged by conda-forge | (default, Jun 1 2020, 18:33:30)
[Clang 9.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import geopandas
>>>
but this fails as part of .yml. I use these approach to make reproducible work.
(DeepForest_JointPrediction) MacBook-Pro:DeepForest_JointPrediction ben$ cat environment.yml
name: DeepForest_JointPrediction
channels:
- conda-forge
dependencies:
- python==3.7
- geopandas
MacBook-Pro:DeepForest_JointPrediction ben$ conda env create -f=environment.yml
MacBook-Pro:DeepForest_JointPrediction ben$ conda activate DeepForest_JointPrediction
(DeepForest_JointPrediction) MacBook-Pro:DeepForest_JointPrediction ben$ python
Python 3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 12:34:36)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import geopandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/python3.7/site-packages/geopandas/__init__.py", line 5, in <module>
from geopandas.io.file import read_file # noqa
File "/Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/python3.7/site-packages/geopandas/io/file.py", line 6, in <module>
import fiona
File "/Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/python3.7/site-packages/fiona/__init__.py", line 83, in <module>
from fiona.collection import BytesCollection, Collection
File "/Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/python3.7/site-packages/fiona/collection.py", line 9, in <module>
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: dlopen(/Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libpoppler.76.dylib
Referenced from: /Users/ben/miniconda3/envs/DeepForest_JointPrediction/lib/libgdal.20.dylib
Reason: image not found
OSX 14.1
(DeepForest_JointPrediction) MacBook-Pro:DeepForest_JointPrediction ben$ conda list
# packages in environment at /Users/ben/miniconda3/envs/DeepForest_JointPrediction:
#
# Name Version Build Channel
attrs 19.3.0 py_0 conda-forge
boost-cpp 1.70.0 hd59e818_1 conda-forge
bzip2 1.0.8 h0b31af3_2 conda-forge
ca-certificates 2020.4.5.1 hecc5488_0 conda-forge
cairo 1.16.0 h0ab9d94_1001 conda-forge
certifi 2020.4.5.1 py37hc8dfbb8_0 conda-forge
click 7.1.2 pyh9f0ad1d_0 conda-forge
click-plugins 1.1.1 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
curl 7.64.0 heae2a1f_0 conda-forge
expat 2.2.9 h4a8c4bd_2 conda-forge
fiona 1.8.4 py37h8e9a8e4_1001 conda-forge
fontconfig 2.13.1 h1027ab8_1000 conda-forge
freetype 2.10.2 h8da9a1a_0 conda-forge
freexl 1.0.5 h1de35cc_1002 conda-forge
gdal 2.3.2 py37h3f5b778_0
geopandas 0.6.3 py_0 conda-forge
geos 3.6.2 h0a44026_1004 conda-forge
gettext 0.19.8.1 h46ab8bc_1002 conda-forge
giflib 5.1.7 h01d97ff_1 conda-forge
glib 2.64.3 h577aef8_0 conda-forge
hdf4 4.2.13 h84186c3_1003 conda-forge
hdf5 1.10.2 hc401514_3 conda-forge
icu 58.2 h0a44026_1000 conda-forge
jpeg 9d h0b31af3_0 conda-forge
json-c 0.13.1 h575e443_1002 conda-forge
kealib 1.4.7 h40e48e4_6
krb5 1.16.3 h24a3359_1000 conda-forge
libblas 3.8.0 14_openblas conda-forge
libcblas 3.8.0 14_openblas conda-forge
libcurl 7.64.0 h76de61e_0 conda-forge
libcxx 10.0.0 h1af66ff_2 conda-forge
libdap4 3.19.1 hae55d67_1000 conda-forge
libedit 3.1.20170329 hcfe32e1_1001 conda-forge
libffi 3.2.1 h4a8c4bd_1007 conda-forge
libgdal 2.3.2 h7b1ea53_0
libgfortran 3.0.1 0 conda-forge
libiconv 1.15 h0b31af3_1006 conda-forge
libkml 1.3.0 hed7d534_1010 conda-forge
liblapack 3.8.0 14_openblas conda-forge
libnetcdf 4.6.1 h34af652_200 conda-forge
libopenblas 0.3.7 hd44dcd8_1 conda-forge
libpng 1.6.37 hbbe82c9_1 conda-forge
libpq 10.6 hbe1e24e_1000 conda-forge
libspatialindex 1.9.3 h4a8c4bd_3 conda-forge
libspatialite 4.3.0a ha12ebda_19
libssh2 1.8.0 hf30b1f0_1003 conda-forge
libtiff 4.1.0 h2ae36a8_6 conda-forge
libwebp-base 1.1.0 h0b31af3_3 conda-forge
libxml2 2.9.9 hd80cff7_2 conda-forge
lz4-c 1.9.2 h4a8c4bd_1 conda-forge
munch 2.5.0 py_0 conda-forge
ncurses 6.1 h0a44026_1002 conda-forge
numpy 1.18.4 py37h7687784_0 conda-forge
openjpeg 2.3.1 h254dc36_3 conda-forge
openssl 1.0.2u h0b31af3_0 conda-forge
pandas 1.0.4 py37h94625e5_0 conda-forge
pcre 8.44 h4a8c4bd_0 conda-forge
pip 20.1.1 py_1 conda-forge
pixman 0.38.0 h01d97ff_1003 conda-forge
poppler 0.75.0 hd5eb092_0 conda-forge
poppler-data 0.4.9 1 conda-forge
proj4 5.0.1 h1de35cc_0
pyproj 1.9.5.1 py37h833a5d7_1
python 3.7.0 h145921a_1006 conda-forge
python-dateutil 2.8.1 py_0 conda-forge
python_abi 3.7 1_cp37m conda-forge
pytz 2020.1 pyh9f0ad1d_0 conda-forge
readline 7.0 hcfe32e1_1001 conda-forge
rtree 0.9.4 py37h8526d28_1 conda-forge
setuptools 47.1.1 py37hc8dfbb8_0 conda-forge
shapely 1.6.4 py37h2e8a847_1000 conda-forge
six 1.15.0 pyh9f0ad1d_0 conda-forge
sqlite 3.28.0 h9721f7c_0 conda-forge
tk 8.6.10 hbbe82c9_0 conda-forge
wheel 0.34.2 py_1 conda-forge
xerces-c 3.2.2 h4db8090_1003 conda-forge
xz 5.2.5 h0b31af3_0 conda-forge
zlib 1.2.11 h0b31af3_1006 conda-forge
zstd 1.4.4 h4b3e974_3 conda-forge
how are these commands different? Default isn't listed in the channels in the .yml?
I'm going to leave this comment here since it may be of use, but the problem was specifically, python 3.7.0.
Changing to
(DeepForest_JointPrediction) MacBook-Pro:DeepForest_JointPrediction ben$ cat environment.yml
name: DeepForest_JointPrediction
channels:
- conda-forge
dependencies:
- python=3.7
- geopandas
(DeepForest_JointPrediction) MacBook-Pro:DeepForest_JointPrediction ben$ python
Python 3.7.6 | packaged by conda-forge | (default, Jun 1 2020, 18:33:30)
[Clang 9.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import geopandas
>>> geopandas.__version__
'0.7.0'
so its just python 3.7.0 that has a problem. Unless there is some very particular need, this shouldn't be an issue, but it did trip me up.
how are these commands different? Default isn't listed in the channels in the .yml?
conda will use the channels that are in your .condarc
. Please see https://conda-forge.org/docs/user/tipsandtricks.html#how-to-fix-it
Issue:
ImportError: dlopen(/anaconda3/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libkea.1.4.7.dylib Referenced from: /anaconda3/lib/libgdal.20.dylib Reason: image not found
Environment (
conda list
):Details about
conda
and system (conda info
):