ipython / ipython/ipyparallel

low-frequency error on module object with `use_dill`

Aberta
#113 9 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
2.6k
Forks
1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.