Skip to content
New issue

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

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

Already on GitHub? # to your account

ModuleNotFoundError: No module named 'ESMF' #131

Open
sbeale007 opened this issue May 11, 2023 · 6 comments
Open

ModuleNotFoundError: No module named 'ESMF' #131

sbeale007 opened this issue May 11, 2023 · 6 comments

Comments

@sbeale007
Copy link

Hello, I have installed xesmf using https://xesmf.readthedocs.io/en/latest/installation.html#install-on-local-machine-with-conda

I tried to import it in a jupyter notebook and got this error

Screen Shot 2023-05-11 at 1 52 35 PM

This is my environment:
Screen Shot 2023-05-11 at 1 58 37 PM

Screen Shot 2023-05-11 at 1 58 50 PM Screen Shot 2023-05-11 at 1 59 07 PM Screen Shot 2023-05-11 at 1 59 14 PM

It looks to me like I have esmf so I'm not too sure why I am having that error.

I ran the pytest on xesmf and got this message

ERROR anaconda3/envs/test-env/lib/python3.10/site-packages/xesmf/tests/test_backend.py
ERROR anaconda3/envs/test-env/lib/python3.10/site-packages/xesmf/tests/test_frontend.py
ERROR anaconda3/envs/test-env/lib/python3.10/site-packages/xesmf/tests/test_util.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

but I am not sure how to solve the problem

Any help is appreciated!

Thank you

@Xieleilab
Copy link

the same problem encounted! i also do not know why

@mkyoungs
Copy link

mkyoungs commented Jul 1, 2023

I have the same error message, but it only shows up when I am running the regridder. The test package seems to work fine (after some tinkering). esmpy has been installed.

Screenshot 2023-06-30 at 5 10 48 PM

@yorkchen33
Copy link

@dluks
Copy link

dluks commented Aug 7, 2023

@sbeale007 this can happen if you don't restart your jupyter kernel after installing xesmf.

@huili77
Copy link

huili77 commented Nov 16, 2023

I just had the same issue... do we have a solution yet?

@kthyng
Copy link

kthyng commented Feb 9, 2024

@huili77 I use this when the issue comes up: conda-forge/esmf-feedstock#91 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants