-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
dask.distributed.Client() keeps spawning new workers with FileNotFoundError #7515
Comments
Thanks for reporting @FlorisCalkoen. I'm able to reproduce the issue. It looks like there's an issue spawning subprocesses when we attempt to create workers, though I'll admit based on the error message I have no idea what might be causing it. You seemed to FWIW you can configure dask.config.set({"distributed.worker.multiprocessing-method": "fork"}) |
Thanks for the workaround! So I think it's related to mamba create -n testenv jupyterlab dask distributed
mamba activate testenv
jupyter lab Now you can start a client without any problem: from dask.distributed import Client
Client() However, when you would install a package that triggers a downgrade of |
Microsoft planetary computer has both voila and dask available in their JupyterLab environment. These are their versions: import voila
import jupyter_server
import dask
import distributed
import jupyter_resource_usage
print(f"voila: {voila.__version__}")
print(f"jupyter_server: {jupyter_server.__version__}")
print(f"jupyter_resource_usage: {jupyter_resource_usage.__version__}")
print(f"dask: {dask.__version__}")
print(f"distributed: {distributed.__version__}")
voila: 0.3.6
jupyter_server: 1.18.1
jupyter_resource_usage: 0.6.2
dask: 2022.8.0
distributed: 2022.8.0 |
@jrbourbeau , you're right that it doesn't seem related to having older versions of |
this seems at least related to jupyter-server/jupyter_server#1198, and I think we can pin |
Thanks for tracking that down @keewis. @FlorisCalkoen does pinning |
Thank you @keewis, @jrbourbeau the solution by @keewis works! |
@FlorisCalkoen just noting there's a new Given there's a workaround and a new upstream |
Pinning ipykernel to avoid issue raised in dask/distributed#7536 dask/distributed#7515
* Pin ipykernel>6.21.2 Pinning ipykernel to avoid issue raised in dask/distributed#7536 dask/distributed#7515 * [condalock-command] autogenerated conda-lock files --------- Co-authored-by: pangeo-bot <pangeo-bot@users.noreply.github.com>
Describe the issue:
While installing some JupyterLab extensions into my JupyterLab mamba environment I found out that
dask.distributed.Client()
breaks in JupyterLab when older versions of jupyter_server are used. For example, installing voila downgradesjupyter_server
to 1.23.5. After that downgrade Client keeps spawning clients with FileNotFoundError.Minimal Complete Verifiable Example:
Create an environment that fails:
Open a new notebook and run:
Traceback
Environment:
The text was updated successfully, but these errors were encountered: