【发布时间】:2021-03-02 21:36:54
【问题描述】:
我在 3 台 AWS T2 机器上有一个小型开发集群。一台机器作为客户端,一台作为调度器,最后一台作为工作者。在所有这些上,我都执行了git clone 并在所有 3 上手动安装了 Numpy 版本1.21.0。但是,在遵循基本设置时,执行 A = client.map(square, range(10)) 时会产生以下错误在 Python3(3.8) 解释器上。如何解决这个问题?似乎是内部错误,Dask 是通过客户端机器上的 pip install 获得的。
ubuntu@ip-172...:~$ python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask.distributed import Client
>>> client = Client('IPv4Addr:8786')
>>> client
<Client: 'tcp://172...:8786' processes=1 threads=4, memory=8.18 GB>
>>> def square(x):
... return x ** 2
...
>>> A = client.map(square, range(10))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/distributed-2021.2.0+19.g2c5d2cf8-py3.8.egg/distributed/client.py", line 1764, in map
futures = self._graph_to_futures(
File "/usr/local/lib/python3.8/dist-packages/distributed-2021.2.0+19.g2c5d2cf8-py3.8.egg/distributed/client.py", line 2542, in _graph_to_futures
dsk = dsk.__dask_distributed_pack__(self, keyset)
AttributeError: 'HighLevelGraph' object has no attribute '__dask_distributed_pack__'
【问题讨论】:
标签: dask dask-distributed