esgf-nimbus / nimbus

0 stars 2 forks source link

[BUG] xcdat has ESMF dependency that fails #18

Closed durack1 closed 2 months ago

durack1 commented 3 months ago

Describe the bug Attempting to import xcdat on Nimbus currently returns an error associated with ESMF.

To Reproduce Steps to reproduce the behavior:

  1. Open a "Climate notebook"
  2. Create a new notebook
  3. Attempt to import xcdat import xcdat as xc
  4. See error

Expected behavior This should launch, but instead returns an error:

import xcdat as xc

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/esmpy/interface/loadESMF.py", line 154, in <module>
    _ESMF = ct.CDLL(os.path.join(libsdir,'libesmf_fullylinked.so'),
  File "/opt/conda/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcurl.so.4: cannot open shared object file: No such file or directory

Screenshots see above

Desktop (please complete the following information): Nimbus jupyterhub env - current "Climate notebook" env

Additional context A similar issue occurred in the past https://github.com/esgf-nimbus/nimbus/issues/15, but the error this time is different

durack1 commented 3 months ago

It seems like this issue also impacts xarray, so effectively jupyterlab is not working at all on nimbus at the moment

import xarray as xr
ds = xr.open_mfdataset("".join([filePath, "*"]))

yields

ImportError: libcurl.so.4: cannot open shared object file: No such file or directory
mbarcodia commented 3 months ago

When trying to import xcdat, I encounter the following error, which prohibits me from opening files. In the "minimal notebook" I get:

Screenshot 2024-06-18 at 12 24 23 PM

With the climate notebook, I get an error saying "no module named ESMF": image (1) image

jasonb5 commented 3 months ago

@durack1 Thanks for reporting, now that everything is sorted out I will start looking at this today. @mbarcodia Thanks for the details, I'll have an update soon.

jasonb5 commented 2 months ago

@durack1 @mbarcodia It looks like that library was being deleted on the host systems which propagated to the JupyterHub instances. I'm resolving this with the machine maintainer and will have an update soon.

jasonb5 commented 2 months ago

@durack1 @mbarcodia Go ahead and try the "Climate Environment" again.

durack1 commented 2 months ago

@jasonb5 perfect, works for me - @mbarcodia did you want to check to make sure it's fixed for you too?

mbarcodia commented 2 months ago

It worked for me too! @Paul, I am running the full querySosData.ipynb notebook without issue.

Thank you both for your help! -Marybeth


Marybeth C. Arcodia, Ph.D. | she/her Research Scientist Dept of Atmospheric Science Colorado State University Email: @.*** Website: marybetharcodia.wixsite.com/earth

On Fri, Jun 21, 2024 at 11:00 AM Paul J. Durack @.***> wrote:

Closed #18 https://github.com/esgf-nimbus/nimbus/issues/18 as completed.

— Reply to this email directly, view it on GitHub https://github.com/esgf-nimbus/nimbus/issues/18#event-13245081432, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3SJDPI7AGFAOF4IQNG4FPDZIRLZPAVCNFSM6AAAAABIY75ITOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGI2DKMBYGE2DGMQ . You are receiving this because you were mentioned.Message ID: @.***>