ipython / ipython/ipykernel

IPyKernel throws cannot import name write_connection_file

未关闭
#967 6 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
734
派生
412
平均合并
1 天 5 小时
30 天内合并 PR
8

描述

Name: ipykernel
Version: 6.15.1

On Apple M1 Pro Mac. OS: Monterey 12.3

On Python 3.9.13 with the following versions, IPyKernel fails "python -m ipykernel install --user --name=myenv"

```
jupyter 1.0.0
jupyter-client 7.3.4
jupyter-console 6.4.4
jupyter-core 4.11.1
jupyterlab-pygments 0.2.2
jupyterlab-widgets 1.1.1
```

Stack Trace:
```
[REMOVED]lib/python3.9/site-packages/jupyter_client/__init__.py:23: UserWarning: Could not import submodules
warnings.warn("Could not import submodules")
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "[REMOVED]lib/python3.9/site-packages/ipykernel/__init__.py", line 5, in
from .connect import * # noqa
File "[REMOVED]/lib/python3.9/site-packages/ipykernel/connect.py", line 12, in
from jupyter_client import write_connection_file
ImportError: cannot import name 'write_connection_file' from 'jupyter_client' ([REMOVED]/lib/python3.9/site-packages/jupyter_client/__init__.py)
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。