Reco wrote on 12/17/21 6:10 AM:
Hi.
On Thu, Dec 16, 2021 at 12:43:51PM -0700, D. R. Evans wrote:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python'
...
Can someone suggest how I might get back to the fully-working set of kernels
that I had in buster?
Try this:
apt install python-is-python3
Thank you very much.
That was certainly a help (although I wonder why it was necessary for me to do
that manually), but ultimately I am still unable to do anything.
"jupyter kernelspec list" now looks better:
----
[ZB:jupyter] jupyter kernelspec list
Available kernels:
ir /home/n7dr/.local/share/jupyter/kernels/ir
markdown /home/n7dr/.local/share/jupyter/kernels/markdown
bash /usr/local/share/jupyter/kernels/bash
gnuplot /usr/local/share/jupyter/kernels/gnuplot
sos /usr/local/share/jupyter/kernels/sos
python3 /usr/share/jupyter/kernels/python3
[ZB:jupyter]
----
But if I actually run jupyter-notebook on a known-good .ipynb file I get the
following:
----
[ZB:jupyter] jn CQ*
[I 13:22:37.809 NotebookApp] Loading IPython parallel extension
[I 13:22:37.824 NotebookApp] Serving notebooks from local directory:
/home/n7dr/notebooks/jupyter
[I 13:22:37.824 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 13:22:37.824 NotebookApp]
http://localhost:8888/?token=5e06127359465bc598e53eb5b48ef202592e96e3a1fe4ba7
[I 13:22:37.824 NotebookApp] or
http://127.0.0.1:8888/?token=5e06127359465bc598e53eb5b48ef202592e96e3a1fe4ba7
[I 13:22:37.825 NotebookApp] Use Control-C to stop this server and shut down
all kernels (twice to skip confirmation).
[C 13:22:42.319 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/n7dr/.local/share/jupyter/runtime/nbserver-2497406-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=5e06127359465bc598e53eb5b48ef202592e96e3a1fe4ba7
or
http://127.0.0.1:8888/?token=5e06127359465bc598e53eb5b48ef202592e96e3a1fe4ba7
[W 13:22:50.477 NotebookApp] 404 GET
/nbextensions/widgets/notebook/js/extension.js?v=20211231132234 (127.0.0.1)
96.380000ms referer=http://localhost:8888/notebooks/CQ%20WW.ipynb
[I 13:22:51.078 NotebookApp] 302 GET /notebooks/activity-160.png (127.0.0.1)
0.670000ms
[I 13:22:51.171 NotebookApp] 302 GET /notebooks/2017-ALL.png (127.0.0.1)
0.610000ms
[I 13:22:51.394 NotebookApp] 302 GET /notebooks/cq-ww-qso-nlogs-a-u.png
(127.0.0.1) 0.620000ms
[I 13:22:51.456 NotebookApp] 302 GET /notebooks/cq-ww-qso-percentiles.png
(127.0.0.1) 0.640000ms
[I 13:22:51.576 NotebookApp] Kernel started:
9636f23d-6e5c-4ce6-931a-f0844f8876e5, name: bash
/usr/bin/python: No module named bash_kernel
[I 13:22:54.576 NotebookApp] KernelRestarter: restarting kernel (1/5), new
random ports
/usr/bin/python: No module named bash_kernel
[I 13:22:57.590 NotebookApp] KernelRestarter: restarting kernel (2/5), new
random ports
/usr/bin/python: No module named bash_kernel
[I 13:23:00.598 NotebookApp] KernelRestarter: restarting kernel (3/5), new
random ports
/usr/bin/python: No module named bash_kernel
[I 13:23:03.605 NotebookApp] KernelRestarter: restarting kernel (4/5), new
random ports
/usr/bin/python: No module named bash_kernel
[W 13:23:06.621 NotebookApp] KernelRestarter: restart failed
[W 13:23:06.621 NotebookApp] Kernel 9636f23d-6e5c-4ce6-931a-f0844f8876e5 died,
removing from map.
[W 13:23:12.691 NotebookApp] Replacing stale connection:
9636f23d-6e5c-4ce6-931a-f0844f8876e5:1820effccd3749579998b085be46704b
[W 13:23:34.746 NotebookApp] Replacing stale connection:
9636f23d-6e5c-4ce6-931a-f0844f8876e5:1820effccd3749579998b085be46704b
[W 13:23:51.683 NotebookApp] Timeout waiting for kernel_info reply from
9636f23d-6e5c-4ce6-931a-f0844f8876e5
[E 13:23:51.686 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel
does not exist: 9636f23d-6e5c-4ce6-931a-f0844f8876e5)
[W 13:23:51.689 NotebookApp] 404 GET
/api/kernels/9636f23d-6e5c-4ce6-931a-f0844f8876e5/channels?session_id=1820effccd3749579998b085be46704b
(127.0.0.1): Kernel does not exist: 9636f23d-6e5c-4ce6-931a-f0844f8876e5
[W 13:23:51.690 NotebookApp] 404 GET
/api/kernels/9636f23d-6e5c-4ce6-931a-f0844f8876e5/channels?session_id=1820effccd3749579998b085be46704b
(127.0.0.1) 39005.310000ms referer=None
[W 13:23:51.690 NotebookApp] 404 GET
/api/kernels/9636f23d-6e5c-4ce6-931a-f0844f8876e5/channels?session_id=1820effccd3749579998b085be46704b
(127.0.0.1): Kernel does not exist: 9636f23d-6e5c-4ce6-931a-f0844f8876e5
[W 13:23:51.691 NotebookApp] 404 GET
/api/kernels/9636f23d-6e5c-4ce6-931a-f0844f8876e5/channels?session_id=1820effccd3749579998b085be46704b
(127.0.0.1) 16950.430000ms referer=None
[W 13:23:55.701 NotebookApp] Replacing stale connection:
9636f23d-6e5c-4ce6-931a-f0844f8876e5:1820effccd3749579998b085be46704b
[W 13:24:23.733 NotebookApp] Replacing stale connection:
9636f23d-6e5c-4ce6-931a-f0844f8876e5:1820effccd3749579998b085be46704b
----
And in the browser window that opens, the message: "kernel starting, please
wait" is shown for perhaps twenty seconds, and then it says: "Connecting to
kernel", but never actually completes the connection.
Presumably this is a result of the message:
No module named bash_kernel
that appears above.
If I look for /usr/local/share/jupyter/kernels/bash, I see:
----
[ZB:jupyter] ls -al /usr/local/share/jupyter/kernels/bash
total 7
drwxr-xr-x 2 root root 3 Mar 1 2020 .
drwxr-xr-x 5 root root 5 Mar 1 2020 ..
-rw-r--r-- 1 root root 170 Mar 1 2020 kernel.json
[ZB:jupyter]
----
So I don't know what the problem is. As I said in my prior post, all this
worked fine before the upgrade to bullseye.
Doc
--
Web: http://enginehousebooks.com/drevans