Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import xesmf package using Google Colab #2

Open
ktcarr opened this issue Jul 19, 2024 · 0 comments
Open

Can't import xesmf package using Google Colab #2

ktcarr opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ktcarr
Copy link
Owner

ktcarr commented Jul 19, 2024

Related issues: see here and here.

Error message:

KeyError                                  Traceback (most recent call last)
[/usr/local/lib/python3.10/site-packages/esmpy/interface/loadESMF.py](https://q53thv21z3c-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240717-060213_RC00_653143945#) in <module>
     25 try:
---> 26     esmfmk = os.environ["ESMFMKFILE"]
     27 except KeyError:

8 frames
KeyError: 'ESMFMKFILE'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
ImportError: The esmf.mk file cannot be found. Pass its path in the ESMFMKFILE environment variable.

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
[/usr/local/lib/python3.10/site-packages/xesmf/util.py](https://q53thv21z3c-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240717-060213_RC00_653143945#) in <module>
      8     import esmpy as ESMF
      9 except ImportError:
---> 10     import ESMF
     11 
     12 LON_CF_ATTRS = {'standard_name': 'longitude', 'units': 'degrees_east'}

ModuleNotFoundError: No module named 'ESMF'
@ktcarr ktcarr added the bug Something isn't working label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant