ipython / ipython/ipykernel

Exception on ipc file cleanup resulting in socket leak

Open
#730 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

Running an ipython kernel with `--transport=ipc` and stopping it (via sending an `quit` command though a jupyter-client), generates the following exception:

```
Traceback (most recent call last):
File "/home/amorenoz/.local/share/virtualenvs/insights-cmd-nQG3uYIv/lib/python3.9/site-packages/ipykernel/kernelapp.py", line 242, in cleanup_connection_file
self.cleanup_ipc_files()
File "/home/amorenoz/.local/share/virtualenvs/insights-cmd-nQG3uYIv/lib/python3.9/site-packages/jupyter_client/connect.py", line 426, in cleanup_ipc_files
for port in self.ports:
TypeError: %i format: a number is required, not str
```

The socket files are not cleaned up and leaked

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.