0

我正在使用Dask 0.10最新的Anaconda发行版,调用后遇到以下错误.compute(get=dask.multiprocessing.get)

  File "<ipython-input-8-cd6a1c9a02b6>", line 309, in find_matches
    merged = data.merge(matches, on='url', how='left')

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\dask\dataframe\core.py", line 1664, in merge
    suffixes=suffixes, npartitions=npartitions)

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\dask\dataframe\multi.py", line 428, in merge
    how, npartitions, suffixes)

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\dask\dataframe\multi.py", line 257, in hash_join
    lhs2 = shuffle(lhs, left_on, npartitions)

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\dask\dataframe\shuffle.py", line 160, in shuffle
    import partd

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\partd\__init__.py", line 16, in <module>
    from .zmq import Client, Server

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\partd\zmq.py", line 33, in <module>
    log('Import zmq')

  File "C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\partd\zmq.py", line 29, in log
    with open('log', 'a') as f:

IOError: [Errno 13] Permission denied: 'log' 

我不知道是什么原因造成的。Dask需要写在根目录吗?我正在一台没有管理员权限且有防火墙的机器上工作。

4

1 回答 1

1

Dask是否需要写在根目录上?

不,Dask 完全在用户空间内运行,Anaconda 通常也是如此。在提供的回溯中,错误似乎来自尝试打开"log"本地目录中命名的文件。也许您在没有写权限的地方运行 Dask?

于 2016-07-01T22:20:59.047 回答