Closed willyyang closed 2 years ago
Are you able to open a Python prompt and run import dask_labextension
?
@jacobtomlinson seeing this error:
(2021-11-22 16:05:30) (~)
-$ pip list | grep dask
dask 2021.11.1
dask-labextension 5.1.0
(2021-11-22 16:05:37) (~)
-$ python
Python 3.8.8 (default, Apr 13 2021, 19:58:26)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dask_labextension
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.8/site-packages/dask_labextension/__init__.py", line 6, in <module>
from .clusterhandler import DaskClusterHandler
File "/opt/conda/lib/python3.8/site-packages/dask_labextension/clusterhandler.py", line 11, in <module>
from .manager import manager
File "/opt/conda/lib/python3.8/site-packages/dask_labextension/manager.py", line 12, in <module>
from dask.distributed import Adaptive, utils
File "/opt/conda/lib/python3.8/site-packages/dask/distributed.py", line 11, in <module>
from distributed import *
File "/opt/conda/lib/python3.8/site-packages/distributed/__init__.py", line 7, in <module>
from .actor import Actor, ActorFuture
File "/opt/conda/lib/python3.8/site-packages/distributed/actor.py", line 6, in <module>
from .client import Future, default_client
File "/opt/conda/lib/python3.8/site-packages/distributed/client.py", line 30, in <module>
from dask.compatibility import apply
ImportError: cannot import name 'apply' from 'dask.compatibility' (/opt/conda/lib/python3.8/site-packages/dask/compatibility.py)
Ok thanks. Looks like some issue between Dask and Distirbuted. I see you have dask
2021.11.1
. Does your distributed
version match that?
Thanks that update worked to align the two package versions.
On Mon, Nov 22, 2021 at 8:10 AM Jacob Tomlinson @.***> wrote:
Ok thanks. Looks like some issue between Dask and Distirbuted. I see you have dask 2021.11.1. Does your distributed version match that?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dask/dask-labextension/issues/214#issuecomment-975682180, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQZSYJXXI5TCWDQEAU7BXLUNJTRDANCNFSM5IKNN6BQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Awesome. Strange that they managed to get out of sync, we usually hard pin them. Glad it's working for you.
I'm running into the error
Failed to list clusters: might the server extension not be installed/enabled?
after I've ran the following steps and start up JupyterLab in JupyterHub:I'm able to see
dask-labextension v5.1.0 enabled OK (python, dask_labextension)
onjupyter labextension list
I've also tried following another comment from a similar error thread (https://github.com/dask/dask-labextension/issues/87#issuecomment-553630615) for enabling serverextension after the
jupyter lab build..
(didnt really expect this to work since I have jupyter notebook version > 5.2) which results in :Environment: os: Debian GNU/Linux 10 (buster) python: 3.8.8
installed via pip dask: 2021.11.1 dask-labextension: 5.1.0 jupyterhub: 1.4.2
jupyter --version jupyter core: 4.7.1 jupyter-notebook: 6.4.1 jupyter lab: 3.0.17
Thanks for any help or tips in advance.