ipython / ipython/ipykernel

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

Đang mở
#1,225 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
734
Fork
412
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
8

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.