-
Notifications
You must be signed in to change notification settings - Fork 4
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 notebooks don't work with the ghcr.io/dask/dask-notebook:dev-py3.12
image
#299
Comments
I'm not familiar with that particular container. My guess is that it has an entrypoint that's getting in the way of us running In more detail, here's more detail about what we want to work: https://docs.coiled.io/user_guide/software/docker.html#verification
|
Yeah I am familiar so we can definitely find a way to fix this up. Thanks for the verification docs, those are very helpful. It looks like the quotes are being stripped from the JSON string during the entrypoint of the upstream image. $ docker run --rm ghcr.io/dask/dask-notebook:dev-py3.12 python -m distributed.cli.dask_spec --spec '{"cls":"dask.distributed.Scheduler", "opts":{}}'
+ '[' '' ']'
+ '[' '' == true ']'
+ CONDA_BIN=/opt/conda/bin/conda
+ '[' -e /opt/app/environment.yml ']'
+ echo 'no environment.yml'
no environment.yml
+ '[' '' ']'
+ '[' '' ']'
+ exec start.sh python -m distributed.cli.dask_spec --spec '{"cls":"dask.distributed.Scheduler",' '"opts":{}}'
Entered start.sh with args: python -m distributed.cli.dask_spec --spec {"cls":"dask.distributed.Scheduler", "opts":{}}
Running hooks in: /usr/local/bin/start-notebook.d as uid: 1000 gid: 100
Done running hooks in: /usr/local/bin/start-notebook.d
Running hooks in: /usr/local/bin/before-notebook.d as uid: 1000 gid: 100
Sourcing shell script: /usr/local/bin/before-notebook.d/10activate-conda-env.sh
Done running hooks in: /usr/local/bin/before-notebook.d
Executing the command: python -m distributed.cli.dask_spec --spec {"cls":"dask.distributed.Scheduler", "opts":{}}
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/conda/lib/python3.12/site-packages/distributed/cli/dask_spec.py", line 67, in <module>
main()
File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/site-packages/distributed/cli/dask_spec.py", line 33, in main
_spec.update(json.loads(spec))
^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.12/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 37 (char 36) |
When trying to use the
ghcr.io/dask/dask-notebook:dev-py3.12
container with Coiled Notebooks it fails to start up. Am I doing something wrong? Do we need to fix something in the Dask container images?The text was updated successfully, but these errors were encountered: