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

Coiled runs if distributed is not included in environment #310

Open
jacobtomlinson opened this issue Dec 6, 2024 · 1 comment
Open

Coiled runs if distributed is not included in environment #310

jacobtomlinson opened this issue Dec 6, 2024 · 1 comment

Comments

@jacobtomlinson
Copy link

jacobtomlinson commented Dec 6, 2024

I made a software environment that doesn't include dask or distributed. When using coiled run I get an error about distributed being missing. I was surprised that dask was required as a dependency for coiled run and that I'm not warned about this when creating the environment.

import coiled
coiled.create_software_environment(
    name="pandas-only",
    conda={
        "channels": ["conda-forge"],
        "dependencies": ["python=3.12", "pandas"],
    },
)
$ coiled run --software pandas-only -- python -c "import pandas; print(pandas.__version__)"
...
There was an unexpected error:
Cluster status is error (reason: Scheduler Stopped -> Docker reported `ModuleNotFoundError: No module named 'distributed'`.
Software environments for Dask clusters must include `dask` and `distributed`.
Please see https://docs.coiled.io/user_guide/software/docker.html for more about using Coiled with a Docker image.) (cluster_id:
678783)
@dchudz
Copy link
Contributor

dchudz commented Dec 6, 2024

Yes, coiled run requires dask & distributed. I know that's pretty unintuitive/surprising. Sorry.

You may enjoy our newer API (more experimental, in active development) that doesn't require dask & distributed: coiled batch run.

https://docs.coiled.io/blog/slurm-job-arrays.html

We built this with job arrays in mind, but it's also fine for executing a single script.

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