TimeoutError:工作程序无法启动

时间:2019-09-16 10:34:26

标签: python-3.x jupyter tornado dask dask-distributed

我在jupyter笔记本电脑上的环境conda中工作。 尝试使用如下流程创建客户端

from dask.distributed import Client, progress

client = Client(processes = True)

发生以下错误

 TimeoutError                              Traceback (most recent call last)
    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

回调(f)               827尝试:           -> 828 result_list.append(f.result())               829例外,例如e:

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py
     

结果(自身,超时)               237尝试:           -> 238 raise_exc_info(self._exc_info)               终于239:

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/util.py in
     

raise_exc_info(exc_info)

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

运行(个体经营)              1068其他:           -> 1069产生= self.gen.send(值)              1070

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     _start_worker中的

(自身,死亡超时,**虚假)               228个self.workers.remove(w)           -> 229提高gen.TimeoutError(“工作程序无法启动”)               230

    TimeoutError: Worker failed to start

    During handling of the above exception, another exception occurred:

    TimeoutError                              Traceback (most recent call last)
    <ipython-input-26-9ebe205475b6> in <module>()
          3 
          4 # Use all 8 cores
    ----> 5 cluster = LocalCluster(processes = True, n_workers = 4)
          6 ##client = Client(processes = True)
          7 ##client = Client('localhost:8789')

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     

init 中的(自身,n_workers,threads_per_worker,进程,循环,   开始,ip,scheduler_port,silence_logs,diagnostics_port,服务,   worker_services,service_kwargs,异步,安全性,   ** worker_kwargs)               140 self.worker_kwargs ['security'] =安全               141           -> 142 self.start(ip = ip,n_workers = n_workers)               143               144 clusters_to_close.add(self)

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     

开始时(自身,**)               177.开始=开始。**开始(** kwargs)               178其他:           -> 179 self.sync(self._start,** kwargs)               180               181 @ gen.coroutine

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     同步

(自我,函数,* args,** kwargs)               170返回未来               其他171条:           -> 172 return sync(self.loop,func,* args,** kwargs)               173               174 def start(自我,**):

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/utils.py
     同步中的

(循环,函数,* args,** kwargs)               275等待(10)               276,如果错误[0]:           -> 277 six.reraise(* error [0])               其他278               279返回结果[0]

    /home/vlad/anaconda3/lib/python3.6/site-packages/six.py in reraise(tp, value, tb)
        691             if value.__traceback__ is not tb:
        692                 raise value.with_traceback(tb)
    --> 693             raise value
        694         finally:
        695             value = None

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/utils.py
     

在f()中               260如果超时不为None:               261未来= gen.with_timeout(timedelta(seconds = timeout),未来)           -> 262结果[0] =产生收益               263例外除外,例如:               264错误[0] = sys.exc_info()

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

运行(个体经营)              1053              1054试试:           -> 1055值= future.result()              1056除了例外:              1057 self.had_exception = True

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py
     

结果(自身,超时)               236如果self._exc_info不为None:               237尝试:           -> 238 raise_exc_info(self._exc_info)               239终于:               240自我=无

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/util.py in
     

raise_exc_info(exc_info)

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

运行(个体经营)              1061如果exc_info不为None:              1062试试:           -> 1063产生= self.gen.throw(* exc_info)              1064最后:              1065#打破对自身的引用

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     

在_start(自己,ip,n_workers)中               197 self.scheduler.start(scheduler_address)               198           -> 199产量[i.range(n_workers)中的[self._start_worker(** self.worker_kwargs)]]               200               201 self.status ='running'

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

运行(个体经营)              1053              1054试试:           -> 1055值= future.result()              1056除了例外:              1057 self.had_exception = True

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py
     

结果(自身,超时)               236如果self._exc_info不为None:               237尝试:           -> 238 raise_exc_info(self._exc_info)               239终于:               240自我=无

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/util.py in
     

raise_exc_info(exc_info)

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

回调(f)               儿童中的826:               827尝试:           -> 828 result_list.append(f.result())               829除e例外:               830,如果future.done():

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py
     

结果(自身,超时)               236如果self._exc_info不为None:               237尝试:           -> 238 raise_exc_info(self._exc_info)               239终于:               240自我=无

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/util.py in
     

raise_exc_info(exc_info)

    /home/vlad/anaconda3/lib/python3.6/site-packages/tornado/gen.py in
     

运行(个体经营)              1067 exc_info =无              1068其他:           -> 1069产生= self.gen.send(值)              1070              1071年,如果stack_context._state.contexts不是orig_stack_contexts:

    /home/vlad/anaconda3/lib/python3.6/site-packages/distributed/deploy/local.py
     _start_worker中的

(自身,死亡超时,**虚假)               227如果w.status =='已关闭'并且self.scheduler.status =='正在运行':               228个self.workers.remove(w)           -> 229提高gen.TimeoutError(“工作程序无法启动”)               230               231提高gen.Return(w)

    TimeoutError: Worker failed to start

如何解决此问题?我有以下设置
python版本: 3.6.9
达标版本 1.1.4
分发版本 1.26.0
龙卷风版本 4.5
康达 4.6.14

1 个答案:

答案 0 :(得分:0)

通过将dask,distributed,tornado软件包分别更新到版本2.4.0、2.4.0、6.0.3解决了该问题