Closed rabernat closed 4 years ago
@rabernat I'm not able to reproduce this with a brand new environment.
This are the steps I used:
$ conda create -t tmp
$ conda activate tmp
$ conda install xarray netcdf4 ipython
$ # can open a netCDF4 file with in ipyhton
$ conda install -c conda-forge cfgrib
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/amici/devel/conda3/envs/tmp
added / updated specs:
- cfgrib
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2019.6.16 | py36_1 149 KB conda-forge
------------------------------------------------------------
Total: 149 KB
The following NEW packages will be INSTALLED:
attrs conda-forge/noarch::attrs-19.1.0-py_0
cffi conda-forge/osx-64::cffi-1.12.3-py36hccf1714_0
cfgrib conda-forge/noarch::cfgrib-0.9.7.1-py_0
click conda-forge/noarch::click-7.0-py_0
eccodes conda-forge/osx-64::eccodes-2.12.3-hac8aea4_1
jasper conda-forge/osx-64::jasper-1.900.1-h636a363_1006
libaec conda-forge/osx-64::libaec-1.0.4-h0a44026_0
libpng conda-forge/osx-64::libpng-1.6.37-h2573ce8_0
pycparser conda-forge/osx-64::pycparser-2.19-py36_1
The following packages will be UPDATED:
ca-certificates pkgs/main::ca-certificates-2019.5.15-1 --> conda-forge::ca-certificates-2019.6.16-hecc5488_0
jpeg pkgs/main::jpeg-9b-he5867d9_2 --> conda-forge::jpeg-9c-h1de35cc_1001
libnetcdf pkgs/main::libnetcdf-4.6.1-hd5207e6_2 --> conda-forge::libnetcdf-4.6.2-h6b88ef6_1001
The following packages will be SUPERSEDED by a higher-priority channel:
certifi pkgs/main --> conda-forge
openssl pkgs/main::openssl-1.1.1d-h1de35cc_0 --> conda-forge::openssl-1.1.1c-h01d97ff_0
Downloading and Extracting Packages
certifi-2019.6.16 | 149 KB | ########################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
After that I can open both netCDF4 and GRIB files with xarray in IPyhton.
Note that eccodes appears to depend on the conda-forge version of the netCDF4 package that in turns appear to update openssl.
This issue should probably be moved to https://github.com/conda-forge/eccodes-feedstock as it is dpoesn't appear to be cfgrib-specific. cc @StephanSiemen
Thanks @alexamici for checking on this.
It's good to know that everything works in a fresh environment. What puzzles me is that I have the same exact library versions (libnetcdf, openssl) as your environment.
libnetcdf 4.6.2 h6b88ef6_1001 conda-forge
openssl 1.1.1c h01d97ff_0 conda-forge
I would prefer not to completely abandon my old environment if possible. This sounds like a problem for binary dependency guru @ocefpaf.
I am happy if you want to transfer the issue to eccodes.
I would prefer not to completely abandon my old environment if possible. This sounds like a problem for binary dependency guru @ocefpaf.
I don't have a macOS available to debug that env but I tried something similar on Linux and everything worked. See the command and list of packages below.
Can you try to force conda install libssh2=1.8.2
and see if that helps? Also, I would update to conda 4.7
and activate strict in your .condarc
before trying that.
> conda create --name TEST xarray netcdf4 ipython cfgrib --yes
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
attrs conda-forge/noarch::attrs-19.1.0-py_0
backcall conda-forge/noarch::backcall-0.1.0-py_0
bzip2 conda-forge/linux-64::bzip2-1.0.8-h516909a_1
ca-certificates conda-forge/linux-64::ca-certificates-2019.6.16-hecc5488_0
certifi conda-forge/linux-64::certifi-2019.6.16-py37_1
cffi conda-forge/linux-64::cffi-1.12.3-py37h8022711_0
cfgrib conda-forge/noarch::cfgrib-0.9.7.1-py_0
cftime conda-forge/linux-64::cftime-1.0.3.4-py37hd352d35_1001
click conda-forge/noarch::click-7.0-py_0
curl conda-forge/linux-64::curl-7.65.3-hf8cf82a_0
decorator conda-forge/noarch::decorator-4.4.0-py_0
eccodes conda-forge/linux-64::eccodes-2.13.1-hec26673_1
hdf4 conda-forge/linux-64::hdf4-4.2.13-h9a582f1_1002
hdf5 conda-forge/linux-64::hdf5-1.10.5-nompi_h3c11f04_1103
ipython conda-forge/linux-64::ipython-7.8.0-py37h5ca1d4c_0
ipython_genutils conda-forge/noarch::ipython_genutils-0.2.0-py_1
jasper conda-forge/linux-64::jasper-1.900.1-h07fcdf6_1006
jedi conda-forge/linux-64::jedi-0.15.1-py37_0
jpeg conda-forge/linux-64::jpeg-9c-h14c3975_1001
krb5 conda-forge/linux-64::krb5-1.16.3-h05b26f9_1001
libaec conda-forge/linux-64::libaec-1.0.4-hf484d3e_0
libblas conda-forge/linux-64::libblas-3.8.0-12_openblas
libcblas conda-forge/linux-64::libcblas-3.8.0-12_openblas
libcurl conda-forge/linux-64::libcurl-7.65.3-hda55be3_0
libedit conda-forge/linux-64::libedit-3.1.20170329-hf8c457e_1001
libffi conda-forge/linux-64::libffi-3.2.1-he1b5a44_1006
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
libgfortran-ng pkgs/main/linux-64::libgfortran-ng-7.3.0-hdf63c60_0
liblapack conda-forge/linux-64::liblapack-3.8.0-12_openblas
libnetcdf conda-forge/linux-64::libnetcdf-4.6.2-h303dfb8_1003
libopenblas conda-forge/linux-64::libopenblas-0.3.7-h6e990d7_1
libpng conda-forge/linux-64::libpng-1.6.37-hed695b0_0
libssh2 conda-forge/linux-64::libssh2-1.8.2-h22169c7_2
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
ncurses conda-forge/linux-64::ncurses-6.1-hf484d3e_1002
netcdf4 conda-forge/linux-64::netcdf4-1.5.1.2-py37h73a1b54_1
numpy conda-forge/linux-64::numpy-1.17.2-py37h95a1406_0
openssl conda-forge/linux-64::openssl-1.1.1c-h516909a_0
pandas conda-forge/linux-64::pandas-0.25.1-py37hb3f55d8_0
parso conda-forge/noarch::parso-0.5.1-py_0
pexpect conda-forge/linux-64::pexpect-4.7.0-py37_0
pickleshare conda-forge/linux-64::pickleshare-0.7.5-py37_1000
pip conda-forge/linux-64::pip-19.2.3-py37_0
prompt_toolkit conda-forge/noarch::prompt_toolkit-2.0.9-py_0
ptyprocess conda-forge/noarch::ptyprocess-0.6.0-py_1001
pycparser conda-forge/linux-64::pycparser-2.19-py37_1
pygments conda-forge/noarch::pygments-2.4.2-py_0
python conda-forge/linux-64::python-3.7.3-h33d41f4_1
python-dateutil conda-forge/noarch::python-dateutil-2.8.0-py_0
pytz conda-forge/noarch::pytz-2019.2-py_0
readline conda-forge/linux-64::readline-8.0-hf8c457e_0
setuptools conda-forge/linux-64::setuptools-41.2.0-py37_0
six conda-forge/linux-64::six-1.12.0-py37_1000
sqlite conda-forge/linux-64::sqlite-3.29.0-hcee41ef_1
tk conda-forge/linux-64::tk-8.6.9-hed695b0_1002
traitlets conda-forge/linux-64::traitlets-4.3.2-py37_1000
wcwidth conda-forge/noarch::wcwidth-0.1.7-py_1
wheel conda-forge/linux-64::wheel-0.33.6-py37_0
xarray conda-forge/noarch::xarray-0.12.3-py_0
xz conda-forge/linux-64::xz-5.2.4-h14c3975_1001
zlib conda-forge/linux-64::zlib-1.2.11-h516909a_1006
Thanks for the suggestions @ocefpaf! But I just bit the bullet and created a fresh environment.
Thanks for providing this very valuable conda package!
I tried to use it for the first time to help with https://github.com/pydata/xarray/pull/3199. I had a perfectly working relatively recent conda environment. Then I ran
conda install -c conda-forge cfgrib
. It brought along dozens of new binaries which broke my netCDF4 library.I tried
conda update -c conda-forge netCDF4
, but it told me I already had the latest version.I would prefer not to have to choose between cfgrib and netCDF4, as these are both common file formats.
Would appreciate any advice for how to resolve this dependency mess.
Environment (
conda list
):Details about
conda
and system (conda info
):