Closed xigrug closed 5 years ago
libgcc-ng 7.3.0
from conda-forge
is currently marked as broken. The only way to install netcdf4=1.4.1
currently is to include the current libgcc-ng
from the defaults
channel. Could you try creating a new environment as follows and see if you are able to import netcdf4
successfully there?
$ conda create -n test_netcdf4 -c conda-forge -c defaults python=3.6 netcdf4=1.4.1
...
The following NEW packages will be INSTALLED:
...
libgcc-ng pkgs/main/linux-64::libgcc-ng-8.2.0-hdf63c60_1
...
netcdf4 conda-forge/linux-64::netcdf4-1.4.1-py36ha292673_200
...
$ conda activate test_netcdf4
$ python -c "import netCDF4"
That worked successfully for me. If that works for you, I'm afraid your best option might be to build a new environment with a different libgcc
. It looks like you've got a lot of packages installed in your current one so that might take some time but I doubt you will have much success if you just try to reinstall packages in your current environment even if you replace the broken libgcc-ng
and other packages.
@ocefpaf, would your advice be any different?
The problem is not libgcc
but the fact that the package is too old and the openssl
migrated to a new version. We won't rebuild netcdf4 1.4.1
with latest openssl
I recommend you to upgrade your version.
Hello! I am also having this problem in netcdf4 version 1.5.0.1.
from ._netCDF4 import * ImportError: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
What is the version for the new openssl?
[root@mtl-hdops01d ~]# ls -lrth /hadoop/opt/anaconda3-5.0.1/lib/|grep -i cryp -rwxrwxr-x 2 otdsi-dev-bot hadoop 135K Feb 26 13:17 libk5crypto.so.3.1 lrwxrwxrwx 1 otdsi-dev-bot hadoop 18 Apr 22 05:45 libk5crypto.so.3 -> libk5crypto.so.3.1 lrwxrwxrwx 1 otdsi-dev-bot hadoop 18 Apr 22 05:45 libk5crypto.so -> libk5crypto.so.3.1 -rwxrwxr-x 1 otdsi-dev-bot hadoop 6.4M Apr 22 07:40 libcrypto.a -rwxrwxr-x 1 otdsi-dev-bot hadoop 3.3M Apr 22 07:40 libcrypto.so.1.1 lrwxrwxrwx 1 otdsi-dev-bot hadoop 16 Apr 22 07:40 libcrypto.so -> libcrypto.so.1.1
Hello! I am also having this problem in netcdf4 version 1.5.0.1.
Please open a new issue with provide all the information requested in the issue boilerplate. We cannot help without that information. BTW, a fresh installation works for me on Linux:
conda create --name TEST python=3.7 netcdf4
conda activate TEST
python -c "import netCDF4; print(netCDF4.__version__)"
1.5.0.1
Also see https://conda-forge.org/docs/user/tipsandtricks.html#how-to-fix-it
Issue: from ._netCDF4 import * ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Environment (
conda list
):Details about
conda
and system (conda info
): conda 4.6.6 Linux admin 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux ``` $ conda info ``` active environment : None shell level : 0 user config file : /public/home/hysplit/.condarc populated config files : /public/home/hysplit/.condarc conda version : 4.6.6 conda-build version : 3.4.1 python version : 3.6.7.final.0 base environment : /public/home/hysplit/software/anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/linux-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /public/home/hysplit/software/anaconda3/pkgs /public/home/hysplit/.conda/pkgs envs directories : /public/home/hysplit/software/anaconda3/envs /public/home/hysplit/.conda/envs platform : linux-64 user-agent : conda/4.6.6 requests/2.13.0 CPython/3.6.7 Linux/3.10.0-693.el7.x86_64 centos/7.4.1708 glibc/2.17 UID:GID : 1006:100 netrc file : /public/home/hysplit/.netrc offline mode : False