Example code fails on Windows 10
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- jupyter-notebook, python
调研方向
在 Windows 10 上使用所列出的 Python、Jupyter Notebook 和 ipyparallel 版本,从 ipp.Cluster() 开始复现文档示例。检查 error_output.txt 和删除日志失败的消息;示例在清理过程中不出现 WinError 32 失败即表示完成。
由索引模型根据 Issue 内容生成。
描述
I am using a pristine notebook and kernel to run the example from the documentation. Execution fails with error messages.
Environment
- Jupyter Notebook 6.4.5
- Python 3.8.5
- ipyparallel 8.0.0
Code
import time
import ipyparallel as ipp
task_durations = [1] * 25
# request a cluster
with ipp.Cluster() as rc:
# get a view on the cluster
view = rc.load_balanced_view()
# submit the tasks
asyncresult = view.map_async(time.sleep, task_durations)
# wait interactively for results
asyncresult.wait_interactive()
# retrieve actual results
result = asyncresult.get()
# at this point, the cluster processes have been shutdown
Error
Starting 24 engines with <class 'ipyparallel.cluster.launcher.LocalEngineSetLauncher'>
sleep: 16%|█▌ | 4/25 [00:05<00:00, 36.36tasks/s]Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-2.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-2.log'
Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-1.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-1.log'
Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-8.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-8.log'
Full output:
error_output.txt
- 主要语言
- Jupyter Notebook
- 星标
- 2.6k
- 派生
- 1k
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipython/ipyparallel 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
ipython/ipyparallel#1029 · 9 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
ipython/ipyparallel#984 ·
-
难度 4/5 3-5 天 新手友好度 35/100
ipython/ipyparallel#937 · 4 条评论 ·
-
question
难度 5/5 一周以上 新手友好度 25/100
ipython/ipyparallel#897 · 12 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
ipython/ipyparallel#882 ·
查看 ipython/ipyparallel 的全部 Issue
相似的 Issue
-
bug examples invalid iris
难度 2/5 1-3 小时 新手友好度 70/100
-
ai_reviewed
难度 2/5 1-3 小时 新手友好度 68/100
ydb-platform/ydb#53838 · 3 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
NovaSky-AI/SkyRL#2263 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
johanhaleby/occurrent#1106 ·
-
ShuffleManagerRegistry.register recursion guard is inverted, permits GlutenShuffleManager subclasses 未关闭
难度 2/5 1-3 小时 新手友好度 78/100