enthought / enthought/distarray
IPython cleanup fails with non-standard Client profile
- 主要言語
- Python
- スター
- 5
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
# Problem
The `IPythonClient` instantiation in `cleanup_all` in `ipython_cleanup.py` is problematic since the default profile is used:
``` python
def cleanup_all(module_name, prefix):
""" Connects to all engines and runs ``cleanup()`` on them. """
c = IPythonClient()
if c is None:
return
try:
v = c[:]
cleanup(v, module_name, prefix)
finally:
c.close()
```
# Steps to Reproduce
Create a new ipython profile `distarray`
``` bash
$ ipython profile create --parallel --profile=distarray
```
Start up controller
``` bash
$ ipcontroller --ip='*' --profile=distarray
```
and engine
``` bash
$ ipcluster engines -n 1 --profile=distarray
```
The run the following script
``` python
import numpy as np
import distarray.globalapi
from distarray.globalapi import Context, Distribution
from distarray.globalapi.ipython_utils import IPythonClient as Client
context = Context(client=Client(profile='distarray'))
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
ipython_cleanup.py の cleanup_all から始め、再現手順に示されている Client(profile='distarray') の設定と IPythonClient のインスタンス化を比較します。profile、controller、engine、script の手順を実行して失敗を確認します。cleanup が標準ではない Client プロファイルで、デフォルトプロファイルにフォールバックせずに動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- distributed-systems
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100