Skip to content

Jupyter Notebook Kernel Not Connecting: Connection Failed after changing from 3.8.3 to 3.13.0 python #7589

Closed
@SanjeevYaswanth

Description

@SanjeevYaswanth
  • Have both Python 3.8.3 and Python 3.13.0 version and respective jupyter packages.

  • Added Python 3.13.0 version to jupyter notebook kernel using ipykernel command.

  • Launched the Jupyter notebook using Python 3.8.3 version.

  • Now I'm changing the jupyter kernel from 3.8.3 to 3.13.0 . Facing below error in terminal and failed to connect the python 3.13.0 kernel attached image below.

  • With the help of below error, checked _bootstrap_external py file, it have _find_module_shim function/method.

[I 17:42:14.805 NotebookApp] Creating new notebook in 
[E 17:42:14.981 NotebookApp] Could not open static file ''
[W 17:42:15.641 NotebookApp] 404 GET /static/components/bootstrap-tour/build/css/bootstrap-tour.min.css (127.0.0.1) 14.120000ms referer=http://localhost:8889/notebooks/Untitled9.ipynb?kernel_name=python3
[W 17:42:15.673 NotebookApp] 404 GET /static/components/bootstrap-tour/build/css/bootstrap-tour.min.css (127.0.0.1) 1.170000ms referer=http://localhost:8889/notebooks/Untitled9.ipynb?kernel_name=python3
[W 17:42:16.119 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20250218174153 (127.0.0.1) 3.250000ms referer=http://localhost:8889/notebooks/Untitled9.ipynb?kernel_name=python3
[I 17:42:16.352 NotebookApp] Kernel started: 2ac91ba4-fe7f-4fc1-8d75-a4fa5be01f2f, name: python3
[I 17:42:31.946 NotebookApp] Creating new notebook in 
[W 17:42:32.481 NotebookApp] 404 GET /static/components/bootstrap-tour/build/css/bootstrap-tour.min.css (127.0.0.1) 1.650000ms referer=http://localhost:8889/notebooks/Untitled10.ipynb?kernel_name=python-3.13.0
[W 17:42:32.552 NotebookApp] 404 GET /static/components/bootstrap-tour/build/css/bootstrap-tour.min.css (127.0.0.1) 1.340000ms referer=http://localhost:8889/notebooks/Untitled10.ipynb?kernel_name=python-3.13.0
[W 17:42:32.888 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20250218174153 (127.0.0.1) 1.560000ms referer=http://localhost:8889/notebooks/Untitled10.ipynb?kernel_name=python-3.13.0
[I 17:42:32.956 NotebookApp] Kernel started: 80714420-93e0-4bb7-b4cf-5f77c6114e11, name: python-3.13.0
Could not import runpy module
Traceback (most recent call last):
  File "/lnx64/python-3.8.3/lib/python3.8/runpy.py", line 15, in <module>
    import importlib.util
  File "/lnx64/python-3.8.3/lib/python3.8/importlib/util.py", line 2, in <module>
    from . import abc
  File "/lnx64/python-3.8.3/lib/python3.8/importlib/abc.py", line 87, in <module>
    class PathEntryFinder(Finder):
  File "/lnx64/python-3.8.3/lib/python3.8/importlib/abc.py", line 126, in PathEntryFinder
    find_module = _bootstrap_external._find_module_shim
AttributeError: module 'importlib._bootstrap_external' has no attribute '_find_module_shim'

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions