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

xesmf doesn't work in pangeo-notebook #101

Closed
rabernat opened this issue Jul 18, 2020 · 11 comments
Closed

xesmf doesn't work in pangeo-notebook #101

rabernat opened this issue Jul 18, 2020 · 11 comments

Comments

@rabernat
Copy link
Member

As reported on discourse: https://discourse.pangeo.io/t/regridding-error-while-using-xesmf-mpi-module-missing/749

@dcherian
Copy link
Contributor

You have to do something special to get the right environment with MPI. @ocefpaf helped me with this on the pangeo gitter a while ago.

@ocefpaf
Copy link

ocefpaf commented Jul 22, 2020

You need to request the mpi variant you want with "mpi=*=openmpi". Conda is not smart enough, or maybe it is to allow multiple mpis?

conda create --name TEST xesmf "mpi=*=openmpi"

If you want mpich you can do,

conda create --name TEST xesmf "mpi=*=mpich"

Note that the solver may choke on packages that are not built with the desired mpi implementation.

@scottyhq
Copy link
Member

scottyhq commented Jul 24, 2020

Thanks @ocefpaf these two variants seem to work:

  1. conda create --name TEST "mpi=*=openmpi" "esmpy=*=mpi_openmpi*" xesmf
  2. conda create --name TEST "mpi=*=mpich" esmpy xesmf

@rabernat or @dcherian which do you recommend? I've not used xesmf before...

@dcherian
Copy link
Contributor

i got mpich working on my laptop but that's the extent of my knowledge :)

@ocefpaf
Copy link

ocefpaf commented Jul 24, 2020

  1. conda create --name TEST "mpi==openmpi" "esmpy==mpi_openmpi*" xesmf

There is probably a mistake somewhere in the package that made this extra string required. I'll look into it.

@scottyhq
Copy link
Member

scottyhq commented Aug 6, 2020

If anyone wants to open a PR with the your favorite xesmf variant we can definitely get it merged.

@shunzi-work
Copy link
Contributor

Hi everyone, from this issue reply (JiaweiZhuang/xESMF#47 (comment)), it seems that we can get MPI to install with esmpy last version, therefore, adding esmpy explicitly into the environmet.yml file list may solve this problem. I've tried it and it works for my pangeo binder, but I am not sure if this also works for pangeo cloud.

@amvaruolo-clarke
Copy link

Hi all, any chance one of you who understands the xesmf issue better than I could help me with @scottyhq's suggestion to open a PR for fixing this? I would really like to be able to use xesmf again on the us-central1-b.gcp.pangeo.io cluster

@TomAugspurger
Copy link
Member

@amv10070 if I understand #101 (comment) correctly, it sounds like adding esmpy to https://github.com/pangeo-data/pangeo-docker-images/blob/master/pangeo-notebook/environment.yml will be all we need. Then bots will rebuild everything else.

@scottyhq
Copy link
Member

@amv10070 and @shunzlu - please do open a PR with the instructions above ! Then we can get new images on the hubs ASAP.

shunzi-work added a commit to shunzi-work/pangeo-docker-images that referenced this issue Sep 1, 2020
See pangeo-data#101 . For some reason, we also need to force cartopy >= 0.18 to get mpi installed.
@scottyhq
Copy link
Member

scottyhq commented Sep 1, 2020

closed by #122 so xesmf should work with pangeo/pangeo-notebook:2020.09.01 and later tags

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

No branches or pull requests

7 participants