Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243559

Re: jupyter-notebook and bullseye

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod
From "D. R. Evans" <doc.evans@gmail.com>
Newsgroups linux.debian.user
Subject Re: jupyter-notebook and bullseye
Date Fri, 31 Dec 2021 21:40:02 +0100
Message-ID <DAwQW-5Py-7@gated-at.bofh.it> (permalink)
References <Dv4Vk-8d5-9@gated-at.bofh.it> <Dvlt7-2Kg-1@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Dec 31 20:36:07 2021
Old-Return-Path <doc.evans@gmail.com>
X-Amavis-Spam-Status No, score=-4.197 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, NICE_REPLY_A=-0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SARE_MLH_Stock10=1.66, WEIRD_PORT=0.001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOAM531ctQdccn1hIYwOeY9snbpoDyFtUSgQzt17xgqUTxZSveA+2O2b vbcD/T4dR2TBZ8hRH3W0izPAe8EibLA=
X-Google-SMTP-Source ABdhPJwu7rnWWY6mMIA0tFIoHmeJPxFiKAB2tzPOhbtDAhIHXG5+rPSXcRbwXuW2osQDBE/2z3oFkA==
X-Received by 2002:a05:6808:1315:: with SMTP id y21mr28357283oiv.103.1640982949609; Fri, 31 Dec 2021 12:35:49 -0800 (PST)
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEU9SUDm19m4kXjWsayD albOq5mnenD5+/3q5+z+///fxL/EmY0vLy8vLy8vLy8vLy/YC6JiAAACWklEQVR4nKWTPW/bMBCG hYDw0qVEWkBwloCJNdRLEkFGQS+CIWgO7GqxFlcxOJRjh9ajhhb6B662MoqDgF4KqfJQ/rkeGUdS 3Gy9gRDu4XtfOlrW/1gwmfov+ScRIc4L/ncRGHH+0RzNpPS8ASEH/l7k0QIkU3IgmUznlLoF3ZDz ZwQlkVtI0Zf0PDl9JiCR60ohhNyFSUdyRAbRzKXStrEHny0JyLAGIOwsxcdUXjcgZERFBnzN8Fx+ aFIHAGrIge0sw5tp20sQEhJDdqztENTjJ3AbNaEQY0zpejV4G3UVjNT7UGIzGDQKKCupqaRGcUua eSEoK+EwXg36J8mk7ZAxzs6oydLvL5dtqACMKaUql2K5DJ8UgR889q+PT/JqftF0bq6ghT7C+Sa+ bsBCE/Tb6MRGnTbAhOrdGyC3cQt83wrRqxMUIM7weLboKHzf58dLhLiS27N2JAwBrvAI+qnEdtzp D/oIb/AYhnkpxZsGJAl4Qk4Lpiop8esGhA4DxFXFFMxSXjQAJQ5hMHuueE1FYbUWKsLCkFU7AopF B0yIVnCl4Lfcd/ywcY4OpfiwKu66oEecJRTMElXRn12AVAn1shtVz+hpF1gJxNpx5cWR9Pd3zflx XJpGvHgu/Ob2H1jlUenAao09V9rrb3v/e9hXPFI7ELiwDg95/tmILsGfihEvdUmu1CD/8cuyHtI0 hW0qE0WGKoJBiVW+zvPvVmanOMWi3A1jeAkA7C+5NiszAlyyYQ2vrZDUXq3WBkDmPhZXhNf6fUph r1frFYDHFHhbwmObmVC5AX8BHZP5RM9Y5N0AAAAASUVORK5CYII=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Language en-US
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-user@lists.debian.org> archive/latest/784351
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/8f8a2993-e5c4-1ada-55fb-e7d51028f6f9@gmail.com
Approved robomod@news.nic.it
Lines 143
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 31 Dec 2021 13:35:47 -0700
X-Original-Message-ID <8f8a2993-e5c4-1ada-55fb-e7d51028f6f9@gmail.com>
X-Original-References <deb20b09-0dc7-cc76-bffa-a32e759114d8@gmail.com> <E1myD0U-0003MM-1j@enotuniq.net>
Xref csiph.com linux.debian.user:243559

Show key headers only | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

jupyter-notebook and bullseye "D. R. Evans" <doc.evans@gmail.com> - 2021-12-16 20:50 +0100
  Re: jupyter-notebook and bullseye Reco <recoverym4n@enotuniq.net> - 2021-12-17 14:40 +0100
    Re: jupyter-notebook and bullseye "D. R. Evans" <doc.evans@gmail.com> - 2021-12-31 21:40 +0100
      Re: jupyter-notebook and bullseye Reco <recoverym4n@enotuniq.net> - 2021-12-31 22:10 +0100
        Re: jupyter-notebook and bullseye "D. R. Evans" <doc.evans@gmail.com> - 2021-12-31 23:10 +0100
          Re: jupyter-notebook and bullseye Dan Ritter <dsr@randomstring.org> - 2021-12-31 23:40 +0100
          Re: jupyter-notebook and bullseye Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-01-01 00:40 +0100
          Re: jupyter-notebook and bullseye David Wright <deblis@lionunicorn.co.uk> - 2022-01-03 04:00 +0100

csiph-web