ipython / ipython/ipykernel

"ModuleNotFoundError: No module named 'comm'" when running 'python -m ipykernel install'

未關閉
#1,225 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
734
分支
412
平均合併
1 天 5 小時
30 天內合併 PR
8

描述

Python version: 3.10.14
ipykernel version: 6.29.4

Command:
```shell
$ python -m ipykernel install --user --name=my-venv
```

Result:
```shell
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.10/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/homebrew/Cellar/python@3.10/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/beise/[redacted]/.venv/lib/python3.10/site-packages/ipykernel/__main__.py", line 3, in
from ipykernel import kernelapp as app
File "/Users/beise/[redacted]/.venv/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 54, in
from .ipkernel import IPythonKernel
File "/Users/beise/[redacted]/.venv/lib/python3.10/site-packages/ipykernel/ipkernel.py", line 15, in
import comm
ModuleNotFoundError: No module named 'comm'
```

Expected result:
```shell
Installed kernelspec my-venv in /Users/beise/Library/Application Support/Jupyter/kernels/my-venv
```

Works properly with v 6.29.3.

貢獻指南

開啟貢獻指南

研究方向

Reproduce the failure with Python 3.10.14 and ipykernel 6.29.4 using the reported install command, then compare it with 6.29.3. Start at ipykernel/__main__.py, kernelapp.py, and ipkernel.py, and verify completion when the command installs the my-venv kernelspec at the reported Jupyter path.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。