Closed yugaophd closed 5 years ago
Seems the same as #19. Does the workaround there work?
I did try but it seems irrelevant. the error happened before importing netcdf:
error---> 11 import ESMF.api.constants as constants 12 from ESMF.util.decorators import deprecated, netcdf 13 from ESMF.interface.loadESMF import _ESMF
I think this is related to the Operating System(Centos) because ESMF works fine under Mac OS.
I can only find CentOS 6.6 on Docker Hub: https://hub.docker.com/_/centos/
It seems to work fine:
$ docker pull centos:6.6
$ docker run --rm -it centos:6.6 /bin/bash
$ yum install -y wget bzip2 tar which
$ cd $HOME
$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
$ bash miniconda.sh -b -p $HOME/miniconda
$ export PATH=$HOME/miniconda/bin:$PATH
$ conda install -c conda-forge esmpy
$ python -c 'import ESMF' # no error
OK I found a terribly old AMI on AWS: https://aws.amazon.com/marketplace/pp/B00IOYDTV6 (It is so old that it doesn't even support recent hardware types!)
But I can still run the above commands to install and import ESMPy without problems. Not sure how to reproduce your error...
Closing as no further responses. Feel free to re-open.
I installed the required library but got the following error when
import xesmf
. It has problem when import ESMF. I am working under CentOS 6.5. I installed xESMF usingconda install -c conda-forge esmpy
.Below is the error:
AttributeError Traceback (most recent call last)