xESMF icon indicating copy to clipboard operation
xESMF copied to clipboard

ModuleNotFoundError: No module named 'ESMF'

Open sbeale007 opened this issue 1 year ago • 6 comments

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

sbeale007 avatar May 11 '23 21:05 sbeale007

the same problem encounted! i also do not know why

Xieleilab avatar Jun 11 '23 11:06 Xieleilab

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

mkyoungs avatar Jul 01 '23 00:07 mkyoungs

Read this:https://xesmf.readthedocs.io/en/latest/installation.html#notes-about-esmpy

yorkchen33 avatar Jul 19 '23 12:07 yorkchen33

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

dluks avatar Aug 07 '23 06:08 dluks

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

huili77 avatar Nov 16 '23 23:11 huili77

@huili77 I use this when the issue comes up: https://github.com/conda-forge/esmf-feedstock/issues/91#issuecomment-1387279692

kthyng avatar Feb 09 '24 18:02 kthyng