-
Notifications
You must be signed in to change notification settings - Fork 290
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
Errors with jupyter-client 8.X and 7.X on raw Ubuntu 22.04 container with Python 3.10.1 and 3.9.10 #927
Comments
Hi @AntoineMorcos. FWIW, I can reproduce the issue related to
|
Hi @kevin-bates , thanks for your response! Would you mind sharing your python version and OS release please ? |
I'm using the
To prevent having to reinstall python for additional test attempts, I committed that image after python's installation as |
@kevin-bates Thanks for that, I started a container with this image, at first it seemed like I couldn't reproduce with it but then I was able to reproduce 3 or 4 times within a few minutes |
Screen recording to show the crash using the |
After holding down the Return key to produce 116 prompts, I did receive the asyncio events exception to which you refer and, when this happens, I am unable to break out of the console application and have to terminate my container instance.[*] Since this looks like the process is entirely in the kernel, I decided to try this with the
With this, the issue reproduced about 140 prompts, but at least with this, the command prompt was restored after producing this output (although I'm still unable to exit the console the prompt, so the traditional "exit commands" are not working):
I suspect the underlying issue is related to [*] If I exec into the container from another shell, I can issue a process-status:
so there might be some further troubleshooting you can do with this and/or keep the container running this way by terminating (and restarting) the console app. ((Currently, after being in the container for a bit, I can honestly say I can't reproduce this - at least after multiple hundreds of prompts (750 and counting) - so this is quickly falling into the highly intermittent category and, again believe you might be treading on a python/asyncio anomaly.)) |
@kevin-bates I tried with I'm aware that holding the Return key isn't the usual use of the terminal but I believe it might help identify the issue since there is no other known way to reliably reproduce it. xeus.python.kernel.mp4 |
Hi @AntoineMorcos - this is beyond my area of expertise. All The other, somewhat non-standard thing At any rate, I need to defer to those that know the kernel, |
I've opened jupyter/jupyter_console#276 |
Whoa. I thought Thanks @blink1073 for pointing this in the right direction. |
|
I just published https://github.com/jupyter/jupyter_console/releases/tag/v6.5.0 which fixes support for |
I have been trying out the newest versions of
jupyter-console
andjupyter-client
in order to find the latest bundle that doesn't give errors. I found the latest sane combination of versions to bejupyter-console==6.4.2
withjupyter-client==6.1.12
The way I tested this was by following these steps (links point to a gist showing my environment, commands and errors)
jupyter-console
andjupyter-client
, check package versions then runjupyter console
jupyter-console>=6.4.3
withjupyter-client==8.X
[event loop error]jupyter-console>=6.4.3
withjupyter-client==7.X
[context is already entered] - this one isn't always easily reproducible but the easiest way is to hold "Return" button for secondsjupyter-console==6.4.2
withjupyter-client==6.1.13
[coroutine object is not subscriptable]jupyter-console==6.4.2
withjupyter-client=6.1.12
[OK]I repeated the same experiments in a 3.9.10 pyenv and had the same results
The text was updated successfully, but these errors were encountered: