I need a little guidance on how to run Dask properly on cheyenne. I have been doing most of my development on Casper until now, and it's my understanding I have to switch from using SLURMCluster to NCARCluster when working on cheyenne. But I get errors:
import dask from ncar_jobqueue import NCARCluster from distributed import Client cluster = NCARCluster() ~/miniconda3/envs/lens-conversion/lib/python3.8/site-packages/dask/config.py in get(key, default, config) 452 k = canonical_name(k, result) 453 try: --> 454 result = result[k] 455 except (TypeError, IndexError, KeyError): 456 if default is not no_default: KeyError: 'death-timeout'
I am using a conda environment that I built through miniconda3 on Casper. I have no idea if it works to use such an environment on cheyenne, but I had the feeling it should be OK. Anyone see what I should fix? Thanks!
ugh i have this stupid issue too and it has persisted even after recereating my environment. It's really weird. The code is supposed to catch KeyError
but is apparently not doing that!
My solution is to import distributed
after creating the cluster. I thought this was some weirdness with my env but this makes me thing there's some more fundamental issue
Thanks Deepak! That worked for me.
This topic was moved here from #jupyterlab-hub > NCARCLuster errors on cheyenne jupyterhub by Anderson Banihirwe
Last updated: May 16 2025 at 17:14 UTC