Bug: Issue installing new kernel from main

Open
#1,238 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter, python
Domain
backend, tooling

Research direction

Reproduce the failure by installing ipykernel from main and creating a new kernel, then inspect .venv/lib64/python3.11/site-packages/ipykernel/kernelapp.py around line 734. Compare this path with the manually created kernel case; done means new-kernel creation no longer raises the reported AttributeError.

Written by the indexing model from the issue text.

Description

While I was able to install the ipykernel from main, when I tried to make a new kernel I ran into the following error:

.venv/lib64/python3.11/site-packages/ipykernel/kernelapp.py", line 734, in main
    if self.kernel.eventloop:
       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'eventloop'

Manually creating a kernel worked fine

Dominant language
Python
Stars
734
Forks
411
Avg merge
1d 2h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ipython/ipykernel

All issues in ipython/ipykernel

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.