ipython / ipython/ipyparallel

low-frequency error on module object with `use_dill`

未关闭
#113 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
2.6k
派生
1k
PR 合并指标
30 天内没有已合并 PR

描述

Apparently there's a low-frequency issue (submitted by @jakirkham) that surfaces with code similar to this:

```
from ipyparallel import Client

client = Client()
client[:].use_dill().get()

with client[:].sync_imports():
import nest
from nest import A, B
```

Which produces:

```
AttributeError: 'module' object has no attribute '__main__'
```

I have not been able to reproduce the error, however @tcwalther has -- and provides a workaround.

See https://github.com/uqfoundation/dill/issues/133.

To me, it smells like something `ipyparallel` should be handling… so, I'm punting this over to an `ipyparallel` ticket until I hear differently.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。