Stream: python-questions
Topic: xESMF on Casper
Who Kim (Jun 22 2020 at 22:39):
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'
Deepak Cherian (Jun 22 2020 at 22:44):
are you in the right environment? i.e. the one you installed xesmf in?
Who Kim (Jun 22 2020 at 22:45):
I generated a new environment and install it along with dash and netcdf4 as recommended in the website
Deepak Cherian (Jun 22 2020 at 22:59):
but is your notebook "in" that environment?
Who Kim (Jun 22 2020 at 23:07):
I believe so. I also tried from the command line and didn't work from there too.
Deepak Cherian (Jun 22 2020 at 23:11):
hmmm... i don;t know then. cc @Anderson Banihirwe
Who Kim (Jun 22 2020 at 23:18):
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).
Anderson Banihirwe (Jun 23 2020 at 14:21):
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: Jan 30 2022 at 12:01 UTC