ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

Bug: Issue installing new kernel from main

Open mlucool opened this issue 1 year ago • 2 comments
trafficstars

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

mlucool avatar May 22 '24 23:05 mlucool

It looks like you didn't call the initialize() method: https://github.com/ipython/ipykernel/blob/772dfb8ab87b524bcc6f34dd1f631cf05126e25c/ipykernel/kernelapp.py#L748-L750

davidbrochart avatar May 23 '24 07:05 davidbrochart

Sorry for the bad error report, I ran python -m ipykernel install --name mykernel --user, which works for 6.x

mlucool avatar May 23 '24 12:05 mlucool