# Recursion depth issues when using intake-esm

**URL:** <https://discourse.pangeo.io/t/recursion-depth-issues-when-using-intake-esm/740>\
**Category:** Uncategorized\
**Created:** [July 15, 2020, 2:23pm UTC](https://discourse.pangeo.io/t/recursion-depth-issues-when-using-intake-esm/740 "2020-07-15T14:23:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndMei](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@AndMei](https://discourse.pangeo.io/u/AndMei)\
**Post date:** [July 15, 2020, 2:23pm UTC](https://discourse.pangeo.io/t/recursion-depth-issues-when-using-intake-esm/740/1 "2020-07-15T14:23:56Z")

</div>

Hi folks,

Yet more issues for the hivemind. When using intake-esm to load numerous models to dictionary via ‘to\_dataset\_dict’ I’m encountering a recursion error, specifically:

> RecursionError: maximum recursion depth exceeded while calling a Python object

From the intake-esm forums this appears to be related to models with incompatible vertical coordinates (even though I’m preprocessing prior to intake with the preprocess= modifier). My question is, how can I tell which models/variable, out of potentially dozens, is causing the recursion error, if it is indeed the cause.

Code below:

> col\_url=‘[https://raw.githubusercontent.com/NCAR/intake-esm-datastore/master/catalogs/pangeo-cmip6.json](https://raw.githubusercontent.com/NCAR/intake-esm-datastore/master/catalogs/pangeo-cmip6.json)’  
> col = intake.open\_esm\_datastore(col\_url)  
> col.aggregation\_info[‘aggregations’][0].update({‘options’: {‘compat’: ‘override’}})
> 
> cat = col.search(require\_all\_on=[“source\_id”],experiment\_id=[‘ssp585’],table\_id=‘Omon’,variable\_id=[‘thetao’,‘so’,‘vmo’,‘dissic’],grid\_label=‘gn’)
> 
> dset\_dict\_thetaso = cat.to\_dataset\_dict(zarr\_kwargs={‘consolidated’: True, ‘decode\_times’: True},cdf\_kwargs={‘chunks’: {}, ‘decode\_times’: True})

---

<div class="post-metadata">

**Author:** ![rabernat](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/rabernat/32/22_2.png) [@rabernat](https://discourse.pangeo.io/u/rabernat)\
**Post date:** [July 15, 2020, 2:47pm UTC](https://discourse.pangeo.io/t/recursion-depth-issues-when-using-intake-esm/740/2 "2020-07-15T14:47:41Z")

</div>

Hi @AndMei, thanks for this question!

Since it’s a technical question, possibly a bug, about a specific software package, it would be best as a github issue:

> **[intake/intake-esm](https://github.com/intake/intake-esm/issues)**
>
> An intake plugin for parsing an Earth System Model (ESM) catalog and loading assets into xarray datasets. - intake/intake-esm

Would you feel comfortable re-asking your same question there?

---

<div class="post-metadata">

**Author:** ![AndMei](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@AndMei](https://discourse.pangeo.io/u/AndMei)\
**Post date:** [July 15, 2020, 2:49pm UTC](https://discourse.pangeo.io/t/recursion-depth-issues-when-using-intake-esm/740/3 "2020-07-15T14:49:58Z")

</div>

Will do! Thanks Ryan, I’ll post over there.
