Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under certain conditions, the kernel fails to start #15559

Closed
lihaicheng7003 opened this issue Dec 22, 2023 · 6 comments
Closed

Under certain conditions, the kernel fails to start #15559

lihaicheng7003 opened this issue Dec 22, 2023 · 6 comments
Labels

Comments

@lihaicheng7003
Copy link

Description

Expected behavior

When there is a "html.py" in the directory, jupyter cannot connect to any kernel

image

Context

jupyter-lsp 2.2.0 pyhd8ed1ab_0 conda-forge
jupyter_client 8.3.0 pyhd8ed1ab_0 conda-forge
jupyter_core 5.3.1 py311h38be061_0 conda-forge
jupyter_events 0.6.3 pyhd8ed1ab_0 conda-forge
jupyter_server 2.7.0 pyhd8ed1ab_0 conda-forge
jupyter_server_terminals 0.4.4 pyhd8ed1ab_1 conda-forge
jupyterlab 4.0.9 pyhd8ed1ab_0 conda-forge
jupyterlab_code_formatter 2.2.1 pyhd8ed1ab_0 conda-forge
jupyterlab_execute_time 3.0.0 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_server 2.23.0 pyhd8ed1ab_0 conda-forge
nb_conda_kernels 2.3.1 py311h38be061_2 conda-forge

environment

  • ipykernel: 6.26.0

system
CentOS Linux release 7.8.2003 (Core)
Linux version 3.10.0-1127.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

Copy link

welcome bot commented Dec 22, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Dec 22, 2023
@JasonWeill
Copy link
Contributor

@lihaicheng7003 Thank you for opening this issue! Do you see this issue with all kernels? Do you see any errors in the console where you started JupyterLab, or in the browser console in developer tools?

@RRosio
Copy link
Contributor

RRosio commented Jan 2, 2024

Adding here that I was able to reproduce this in Notebook 7.0.3 and JupyterLab 4.0.5

The error in the terminal for me was:

[I 2024-01-02 09:36:48.618 ServerApp] Kernel started: d5beddf2-5ba6-4996-aec6-3ee7120f4b5f
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/ipykernel/__init__.py", line 5, in <module>
    from .connect import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/ipykernel/connect.py", line 11, in <module>
    import jupyter_client
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/jupyter_client/__init__.py", line 3, in <module>
    from .asynchronous import AsyncKernelClient
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
    from .client import AsyncKernelClient  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/jupyter_client/asynchronous/client.py", line 8, in <module>
    from ..channels import AsyncZMQSocketChannel, HBChannel
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/jupyter_client/channels.py", line 16, in <module>
    from .session import Session
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/jupyter_client/session.py", line 31, in <module>
    from tornado.ioloop import IOLoop
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/tornado/ioloop.py", line 39, in <module>
    from tornado.concurrent import (
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/tornado/concurrent.py", line 34, in <module>
    from tornado.log import app_log
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/tornado/log.py", line 34, in <module>
    from tornado.escape import _unicode
  File "/Users/rosioreyes/miniconda3/envs/nb7/lib/python3.11/site-packages/tornado/escape.py", line 22, in <module>
    import html.entities
ModuleNotFoundError: No module named 'html.entities'; 'html' is not a package

@krassowski
Copy link
Member

Should we close this as a duplicate of #12914?

@RRosio
Copy link
Contributor

RRosio commented Jan 2, 2024

Thank you @krassowski, I think that would be good. I will go ahead and close this issue! Thanks again for reporting this @lihaicheng7003!

@RRosio RRosio closed this as completed Jan 2, 2024
@lihaicheng7003
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants