Is anyone using xESMF successfully on Casper? I have installed following the instruction on its website (https://xesmf.readthedocs.io/en/latest/installation.html), but I failed to load the package:
import xesmf as xe
ModuleNotFoundError: No module named 'xesmf'
are you in the right environment? i.e. the one you installed xesmf in?
I generated a new environment and install it along with dash and netcdf4 as recommended in the website
but is your notebook "in" that environment?
I believe so. I also tried from the command line and didn't work from there too.
hmmm... i don;t know then. cc @Anderson Banihirwe
I just created a new environment again. I didn't specify python version before because I know the version is 3.7 (in the example on the website python version is specified as 3.7, ie., conda create -n xesmf_env python=3.7). With this specification the version of python bumped up to 3.7.6 from 3.7.3 and xESMF seems working (or at least I can load it).
Is anyone using xESMF successfully on Casper? I have installed following the instruction on its website (https://xesmf.readthedocs.io/en/latest/installation.html), but I failed to load the package:
import xesmf as xe
ModuleNotFoundError: No module named 'xesmf'
Another way to diagnose this issue is to look at the path of the Python executable used within your kernel:
import sys print(sys.executable)
Last updated: May 16 2025 at 17:14 UTC