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

Clearer error when forgetting distributed in pip= requirements #122

Open
gjoseph92 opened this issue Mar 1, 2021 · 0 comments
Open

Clearer error when forgetting distributed in pip= requirements #122

gjoseph92 opened this issue Mar 1, 2021 · 0 comments
Assignees

Comments

@gjoseph92
Copy link

When creating a cluster from a software environment that's missing distributed, you just get an error like cluster unexpectedly STOPPED. Going to the logs on the Coiled dashboard, I'm able to find

/opt/conda/envs/coiled/bin/python: Error while finding module specification for 'distributed.cli.dask_spec' (ModuleNotFoundError: No module named 'distributed')

But it would be nice to try-except that and display a more informative error on the client side.

I suppose it would be even nicer to catch at environment creation time—but perhaps there's a use-case for creating an environment that doesn't include distributed, only for local use?

Also, it's probably worth noting in the docs (and, better, via a warning at environment creation time) that bokeh is not included automatically either, nor is it a dependency of distributed (or dask[distributed], as recommended), so it should also be included explicitly. Seeing this and having to recreate everything was disappointing:

Dask needs bokeh >= 0.13.0 for the dashboard.

Install with conda: conda install bokeh>=0.13.0

Install with pip: pip install bokeh>=0.13.0
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

2 participants