File "/usr/local/lib/python3.10/site-packages/dask_kubernetes/classic/kubecluster.py", line 503, in __init__
super().__init__(**self.kwargs)
File "/usr/local/lib/python3.10/site-packages/distributed/deploy/spec.py", line 275, in __init__
self.sync(self._start)
File "/usr/local/lib/python3.10/site-packages/distributed/utils.py", line 338, in sync
return sync(
File "/usr/local/lib/python3.10/site-packages/distributed/utils.py", line 405, in sync
raise exc.with_traceback(tb)
File "/usr/local/lib/python3.10/site-packages/distributed/utils.py", line 378, in f
result = yield future
File "/usr/local/lib/python3.10/site-packages/tornado/gen.py", line 762, in run
value = future.result()
File "/usr/local/lib/python3.10/site-packages/dask_kubernetes/classic/kubecluster.py", line 648, in _start
self.scheduler.service.metadata.name,
AttributeError: 'Scheduler' object has no attribute 'service'. Did you mean: 'services'?
After #525, I am seeing the following when trying to start a (classic) KubeCluster with
deploy_mode="local":It seems that
self.schedulerhere is thedistributed.Schedulerobject, not thePod. Without the deploy_mode kwarg it works fine.cc @jacobtomlinson