Stream: ESDS

Topic: CESM-intake


view this post on Zulip Rich Neale (Mar 14 2022 at 15:40):

Trying to use intake for pretty much the first time and getting the error below. I think I have pretty much reproduced this example https://ncar.github.io/esds/posts/2021/kay-et-al-cesm2-le/?highlight=intake%20cesm but am getting the following error message.
Is it package incompatibility as I have just installed intake.

Cheers
Rich


KeyError Traceback (most recent call last)
/glade/work/rneale/python/miniconda3/envs/neale_myenv/lib/python3.8/site-packages/intake/__init__.py in __getattr__(attr)
60 try:
---> 61 return gl[attr]
62 except KeyError:

KeyError: 'open_esm_datastore'

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last)
/glade/scratch/rneale/ipykernel_206413/457533812.py in <module>
----> 1 catalog = intake.open_esm_datastore(
2 '/glade/collections/cmip/catalog/intake-esm-datastore/catalogs/glade-cesm2-le.json'
3 )
4 catalog

/glade/work/rneale/python/miniconda3/envs/neale_myenv/lib/python3.8/site-packages/intake/__init__.py in __getattr__(attr)
61 return gl[attr]
62 except KeyError:
---> 63 raise AttributeError(attr)
64
65

AttributeError: open_esm_datastore

view this post on Zulip Kevin Paul (Mar 14 2022 at 15:42):

It’s looks like it is saying it can’t find intake-esm in your Python environment.

view this post on Zulip Michael Levy (Mar 14 2022 at 16:26):

@Rich Neale -- to expand on @Kevin Paul's comment, you need to install both intake and intake-esm in your environment. Even though there is no direct import statement to use it, without intake-esm installed the intake.open_esm_datastore() function won't be available

view this post on Zulip Kevin Paul (Mar 14 2022 at 16:26):

(Thanks, @Michael Levy!)

view this post on Zulip Rich Neale (Mar 14 2022 at 16:44):

Oh great, missed that, thanks both!


Last updated: May 16 2025 at 17:14 UTC