0s autopkgtest [09:55:57]: starting date and time: 2026-01-24 09:55:57+0000 0s autopkgtest [09:55:57]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [09:55:57]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.u9qc84sc/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-4.secgroup --name adt-resolute-amd64-jupyter-notebook-20260124-095557-juju-7f2275-prod-proposed-migration-environment-2-c64d60d5-abb1-4257-b5ad-43142310327e --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-amd64-jupyter-notebook-20260124-095557-juju-7f2275-prod-proposed-migration-environment-2-c64d60d5-abb1-4257-b5ad-43142310327e from image adt/ubuntu-resolute-amd64-server-20260124.img (UUID 46811f22-3700-43f4-953b-ee3c613d71bb)... 79s autopkgtest [09:57:16]: testbed dpkg architecture: amd64 79s autopkgtest [09:57:16]: testbed apt version: 3.1.13 79s autopkgtest [09:57:16]: @@@@@@@@@@@@@@@@@@@@ test bed setup 79s autopkgtest [09:57:16]: testbed release detected to be: None 80s autopkgtest [09:57:17]: updating testbed package index (apt update) 80s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 80s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 80s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 80s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 80s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1014 kB] 80s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [91.6 kB] 80s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 80s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [24.3 kB] 80s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [115 kB] 80s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [98.2 kB] 80s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3712 B] 80s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [12.3 kB] 80s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3696 B] 81s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 81s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [922 kB] 81s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [388 kB] 81s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [25.0 kB] 81s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [4704 B] 81s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [12.4 kB] 81s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [824 B] 81s Fetched 2843 kB in 1s (3075 kB/s) 82s Reading package lists... 82s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 82s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 82s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 82s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 83s Reading package lists... 83s Reading package lists... 83s Building dependency tree... 83s Reading state information... 83s Calculating upgrade... 83s The following packages were automatically installed and are no longer required: 83s python3.13 python3.13-minimal 83s Use 'sudo apt autoremove' to remove them. 83s The following NEW packages will be installed: 83s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 83s The following packages will be upgraded: 83s libpython3-stdlib python3 python3-gdbm python3-minimal rust-coreutils 83s 5 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 83s Need to get 10.4 MB of archives. 83s After this operation, 25.2 MB of additional disk space will be used. 83s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 84s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 84s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.14.2-1 [28.2 kB] 84s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.14.2-1 [22.9 kB] 84s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 84s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 84s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.14.2-1 [10.9 kB] 84s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 rust-coreutils amd64 0.5.0-0ubuntu1 [3628 kB] 84s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-gdbm amd64 3.14.2-1 [11.1 kB] 84s dpkg-preconfigure: unable to re-open stdin: No such file or directory 84s Fetched 10.4 MB in 1s (20.5 MB/s) 84s Selecting previously unselected package libpython3.14-minimal:amd64. 84s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124177 files and directories currently installed.) 84s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_amd64.deb ... 84s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 84s Selecting previously unselected package python3.14-minimal. 84s Preparing to unpack .../python3.14-minimal_3.14.2-1_amd64.deb ... 84s Unpacking python3.14-minimal (3.14.2-1) ... 84s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 84s Setting up python3.14-minimal (3.14.2-1) ... 85s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124519 files and directories currently installed.) 85s Preparing to unpack .../python3-minimal_3.14.2-1_amd64.deb ... 85s Unpacking python3-minimal (3.14.2-1) over (3.13.9-3) ... 85s Setting up python3-minimal (3.14.2-1) ... 85s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124519 files and directories currently installed.) 85s Preparing to unpack .../python3_3.14.2-1_amd64.deb ... 85s running python pre-rtupdate hooks for python3.14... 85s Unpacking python3 (3.14.2-1) over (3.13.9-3) ... 85s Selecting previously unselected package libpython3.14-stdlib:amd64. 85s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_amd64.deb ... 85s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 85s Selecting previously unselected package python3.14. 85s Preparing to unpack .../python3.14_3.14.2-1_amd64.deb ... 85s Unpacking python3.14 (3.14.2-1) ... 85s Preparing to unpack .../libpython3-stdlib_3.14.2-1_amd64.deb ... 85s Unpacking libpython3-stdlib:amd64 (3.14.2-1) over (3.13.9-3) ... 85s Preparing to unpack .../rust-coreutils_0.5.0-0ubuntu1_amd64.deb ... 85s Unpacking rust-coreutils (0.5.0-0ubuntu1) over (0.2.2-0ubuntu2) ... 86s Setting up rust-coreutils (0.5.0-0ubuntu1) ... 86s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124980 files and directories currently installed.) 86s Preparing to unpack .../python3-gdbm_3.14.2-1_amd64.deb ... 86s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-3) ... 86s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 86s Setting up python3.14 (3.14.2-1) ... 86s Setting up libpython3-stdlib:amd64 (3.14.2-1) ... 86s Setting up python3-gdbm (3.14.2-1) ... 86s Setting up python3 (3.14.2-1) ... 86s running python rtupdate hooks for python3.14... 86s running python post-rtupdate hooks for python3.14... 86s Processing triggers for man-db (2.13.1-1) ... 87s Processing triggers for systemd (259-1ubuntu2) ... 87s autopkgtest [09:57:24]: upgrading testbed (apt dist-upgrade and autopurge) 87s Reading package lists... 87s Building dependency tree... 87s Reading state information... 87s Calculating upgrade... 87s The following packages were automatically installed and are no longer required: 87s python3.13 python3.13-minimal 87s Use 'sudo apt autoremove' to remove them. 87s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 87s Reading package lists... 88s Building dependency tree... 88s Reading state information... 88s Solving dependencies... 88s The following packages will be REMOVED: 88s python3.13* python3.13-minimal* 88s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 88s After this operation, 7860 kB disk space will be freed. 88s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124978 files and directories currently installed.) 88s Removing python3.13 (3.13.11-1) ... 88s Removing python3.13-minimal (3.13.11-1) ... 88s Processing triggers for man-db (2.13.1-1) ... 89s Processing triggers for systemd (259-1ubuntu2) ... 89s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124951 files and directories currently installed.) 89s Purging configuration files for python3.13-minimal (3.13.11-1) ... 91s autopkgtest [09:57:28]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 91s autopkgtest [09:57:28]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 93s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 93s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 93s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 93s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 93s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 93s gpgv: Can't check signature: No public key 93s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 93s autopkgtest [09:57:30]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 93s autopkgtest [09:57:30]: build not needed 94s autopkgtest [09:57:31]: test pytest: preparing testbed 94s Reading package lists... 94s Building dependency tree... 94s Reading state information... 94s Solving dependencies... 94s The following NEW packages will be installed: 94s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 94s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libipt2 94s libjs-backbone libjs-bootstrap libjs-bootstrap-tour libjs-codemirror 94s libjs-es6-promise libjs-jed libjs-jquery libjs-jquery-typeahead 94s libjs-jquery-ui libjs-marked libjs-mathjax libjs-moment libjs-requirejs 94s libjs-requirejs-text libjs-text-encoding libjs-underscore libjs-xterm 94s libnorm1t64 libpgm-5.3-0t64 libsodium23 libsource-highlight-common 94s libsource-highlight4t64 libzmq5 node-jed python-notebook-doc 94s python-tinycss2-common python3-all python3-argon2 94s python3-argon2-cffi-bindings python3-astroid python3-asttokens 94s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 94s python3-debugpy python3-decorator python3-defusedxml python3-executing 94s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 94s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 94s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 94s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 94s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 94s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 94s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 94s python3-pytest python3-requests-unixsocket python3-send2trash 94s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 94s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 94s python3-webencodings python3-zmq python3.13 python3.13-minimal 94s sphinx-rtd-theme-common 95s 0 upgraded, 93 newly installed, 0 to remove and 0 not upgraded. 95s Need to get 35.3 MB of archives. 95s After this operation, 174 MB of additional disk space will be used. 95s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13-minimal amd64 3.13.11-1 [2408 kB] 95s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-lato all 2.015-1build1 [2779 kB] 95s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13 amd64 3.13.11-1 [758 kB] 95s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 95s Get:5 http://ftpmaster.internal/ubuntu resolute/universe amd64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 95s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 95s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libbabeltrace1 amd64 1.5.11-5 [166 kB] 95s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libipt2 amd64 2.1.2-3 [49.2 kB] 95s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 95s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight4t64 amd64 3.1.9-4.3build2 [273 kB] 95s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 gdb amd64 17.1-1ubuntu1 [4174 kB] 95s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.5.1-1 [17.1 kB] 95s Get:13 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 95s Get:14 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 95s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-core all 5.9.1-1 [6938 B] 95s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 95s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 95s Get:18 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 95s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 95s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 95s Get:21 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 95s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 95s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 node-jed all 1.1.1-4 [15.2 kB] 95s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jed all 1.1.1-4 [2584 B] 95s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 95s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 95s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 95s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 95s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-moment all 2.29.4+ds-1 [147 kB] 95s Get:30 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 95s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs-text all 2.0.12-2 [9732 B] 95s Get:32 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-text-encoding all 0.7.0-5 [140 kB] 95s Get:33 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-xterm all 5.3.0-4 [475 kB] 95s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-tornado amd64 6.5.4-0.1 [306 kB] 95s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-terminado all 0.18.1-1 [13.2 kB] 95s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 libargon2-1 amd64 0~20190702+dfsg-5 [21.3 kB] 95s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-ply all 3.11-10 [45.9 kB] 95s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-pycparser all 2.23-1build1 [77.3 kB] 95s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-cffi all 2.0.0-2 [75.5 kB] 95s Get:40 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2-cffi-bindings amd64 25.1.0-2 [15.3 kB] 95s Get:41 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2 amd64 25.1.0-2 [13.8 kB] 95s Get:42 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-comm all 0.2.1-1build1 [7148 B] 95s Get:43 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1ubuntu1 [159 kB] 95s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-debugpy amd64 1.8.19+ds-1ubuntu1 [942 kB] 95s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 95s Get:46 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-parso all 0.8.5-1 [68.0 kB] 95s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 95s Get:48 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 95s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 95s Get:50 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 95s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 95s Get:52 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 95s Get:53 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-asttokens all 3.0.1-1 [20.7 kB] 95s Get:54 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-executing all 2.2.1-0.1 [26.2 kB] 95s Get:55 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pure-eval all 0.2.3-1 [11.4 kB] 95s Get:56 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-stack-data all 0.6.3-3 [22.2 kB] 95s Get:57 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython all 8.35.0-2 [575 kB] 95s Get:58 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psutil amd64 7.1.0-1ubuntu1 [191 kB] 95s Get:59 http://ftpmaster.internal/ubuntu resolute/universe amd64 libnorm1t64 amd64 1.5.9+dfsg-4 [158 kB] 95s Get:60 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpgm-5.3-0t64 amd64 5.3.128~dfsg-2.1build2 [168 kB] 95s Get:61 http://ftpmaster.internal/ubuntu resolute/main amd64 libsodium23 amd64 1.0.18-2 [165 kB] 95s Get:62 http://ftpmaster.internal/ubuntu resolute/universe amd64 libzmq5 amd64 4.3.5-1build3 [262 kB] 95s Get:63 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-zmq amd64 27.1.0-1 [234 kB] 95s Get:64 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 95s Get:65 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nest-asyncio all 1.6.0-1 [6686 B] 95s Get:66 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipykernel all 6.30.1-1 [82.8 kB] 95s Get:67 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 95s Get:68 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 95s Get:69 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 95s Get:70 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 95s Get:71 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-html5lib all 1.2-3 [90.6 kB] 95s Get:72 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-bleach all 6.3.0-1 [44.2 kB] 95s Get:73 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-soupsieve all 2.8.1-1 [33.7 kB] 95s Get:74 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 95s Get:75 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 95s Get:76 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 95s Get:77 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-mistune all 3.1.4-1 [35.0 kB] 95s Get:78 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 95s Get:79 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbformat all 5.10.4-1 [39.2 kB] 95s Get:80 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbclient all 0.10.4-1 [22.6 kB] 95s Get:81 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 96s Get:82 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbconvert all 7.16.6-1 [140 kB] 96s Get:83 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 96s Get:84 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-send2trash all 1.8.3-1 [14.6 kB] 96s Get:85 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 96s Get:86 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 96s Get:87 http://ftpmaster.internal/ubuntu resolute/main amd64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 96s Get:88 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 96s Get:89 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.14.2-1 [890 B] 96s Get:90 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 96s Get:91 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 96s Get:92 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 96s Get:93 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 96s Fetched 35.3 MB in 1s (27.9 MB/s) 96s Selecting previously unselected package python3.13-minimal. 96s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 124953 files and directories currently installed.) 96s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_amd64.deb ... 96s Unpacking python3.13-minimal (3.13.11-1) ... 96s Selecting previously unselected package fonts-lato. 96s Preparing to unpack .../01-fonts-lato_2.015-1build1_all.deb ... 96s Unpacking fonts-lato (2.015-1build1) ... 96s Selecting previously unselected package python3.13. 96s Preparing to unpack .../02-python3.13_3.13.11-1_amd64.deb ... 96s Unpacking python3.13 (3.13.11-1) ... 96s Selecting previously unselected package fonts-font-awesome. 96s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 96s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 96s Selecting previously unselected package fonts-glyphicons-halflings. 96s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 96s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 96s Selecting previously unselected package fonts-mathjax. 96s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 96s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 96s Selecting previously unselected package libbabeltrace1:amd64. 96s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_amd64.deb ... 96s Unpacking libbabeltrace1:amd64 (1.5.11-5) ... 96s Selecting previously unselected package libipt2. 96s Preparing to unpack .../07-libipt2_2.1.2-3_amd64.deb ... 96s Unpacking libipt2 (2.1.2-3) ... 96s Selecting previously unselected package libsource-highlight-common. 96s Preparing to unpack .../08-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 96s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 96s Selecting previously unselected package libsource-highlight4t64:amd64. 96s Preparing to unpack .../09-libsource-highlight4t64_3.1.9-4.3build2_amd64.deb ... 96s Unpacking libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 96s Selecting previously unselected package gdb. 96s Preparing to unpack .../10-gdb_17.1-1ubuntu1_amd64.deb ... 96s Unpacking gdb (17.1-1ubuntu1) ... 96s Selecting previously unselected package python3-platformdirs. 96s Preparing to unpack .../11-python3-platformdirs_4.5.1-1_all.deb ... 96s Unpacking python3-platformdirs (4.5.1-1) ... 96s Selecting previously unselected package python3-traitlets. 96s Preparing to unpack .../12-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 96s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 96s Selecting previously unselected package python3-jupyter-core. 96s Preparing to unpack .../13-python3-jupyter-core_5.9.1-1_all.deb ... 96s Unpacking python3-jupyter-core (5.9.1-1) ... 96s Selecting previously unselected package jupyter-core. 96s Preparing to unpack .../14-jupyter-core_5.9.1-1_all.deb ... 96s Unpacking jupyter-core (5.9.1-1) ... 96s Selecting previously unselected package libjs-underscore. 96s Preparing to unpack .../15-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 96s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 96s Selecting previously unselected package libjs-backbone. 96s Preparing to unpack .../16-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 96s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 96s Selecting previously unselected package libjs-bootstrap. 96s Preparing to unpack .../17-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 96s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 96s Selecting previously unselected package libjs-jquery. 96s Preparing to unpack .../18-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 96s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 96s Selecting previously unselected package libjs-bootstrap-tour. 96s Preparing to unpack .../19-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 96s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 96s Selecting previously unselected package libjs-codemirror. 96s Preparing to unpack .../20-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 96s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 96s Selecting previously unselected package libjs-es6-promise. 97s Preparing to unpack .../21-libjs-es6-promise_4.2.8-12_all.deb ... 97s Unpacking libjs-es6-promise (4.2.8-12) ... 97s Selecting previously unselected package node-jed. 97s Preparing to unpack .../22-node-jed_1.1.1-4_all.deb ... 97s Unpacking node-jed (1.1.1-4) ... 97s Selecting previously unselected package libjs-jed. 97s Preparing to unpack .../23-libjs-jed_1.1.1-4_all.deb ... 97s Unpacking libjs-jed (1.1.1-4) ... 97s Selecting previously unselected package libjs-jquery-typeahead. 97s Preparing to unpack .../24-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 97s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 97s Selecting previously unselected package libjs-jquery-ui. 97s Preparing to unpack .../25-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 97s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 97s Selecting previously unselected package libjs-marked. 97s Preparing to unpack .../26-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 97s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 97s Selecting previously unselected package libjs-mathjax. 97s Preparing to unpack .../27-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 97s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 97s Selecting previously unselected package libjs-moment. 97s Preparing to unpack .../28-libjs-moment_2.29.4+ds-1_all.deb ... 97s Unpacking libjs-moment (2.29.4+ds-1) ... 97s Selecting previously unselected package libjs-requirejs. 97s Preparing to unpack .../29-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 97s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 97s Selecting previously unselected package libjs-requirejs-text. 97s Preparing to unpack .../30-libjs-requirejs-text_2.0.12-2_all.deb ... 97s Unpacking libjs-requirejs-text (2.0.12-2) ... 97s Selecting previously unselected package libjs-text-encoding. 97s Preparing to unpack .../31-libjs-text-encoding_0.7.0-5_all.deb ... 97s Unpacking libjs-text-encoding (0.7.0-5) ... 97s Selecting previously unselected package libjs-xterm. 97s Preparing to unpack .../32-libjs-xterm_5.3.0-4_all.deb ... 97s Unpacking libjs-xterm (5.3.0-4) ... 97s Selecting previously unselected package python3-tornado. 97s Preparing to unpack .../33-python3-tornado_6.5.4-0.1_amd64.deb ... 97s Unpacking python3-tornado (6.5.4-0.1) ... 97s Selecting previously unselected package python3-terminado. 97s Preparing to unpack .../34-python3-terminado_0.18.1-1_all.deb ... 97s Unpacking python3-terminado (0.18.1-1) ... 97s Selecting previously unselected package libargon2-1:amd64. 97s Preparing to unpack .../35-libargon2-1_0~20190702+dfsg-5_amd64.deb ... 97s Unpacking libargon2-1:amd64 (0~20190702+dfsg-5) ... 97s Selecting previously unselected package python3-ply. 97s Preparing to unpack .../36-python3-ply_3.11-10_all.deb ... 97s Unpacking python3-ply (3.11-10) ... 97s Selecting previously unselected package python3-pycparser. 97s Preparing to unpack .../37-python3-pycparser_2.23-1build1_all.deb ... 97s Unpacking python3-pycparser (2.23-1build1) ... 97s Selecting previously unselected package python3-cffi. 97s Preparing to unpack .../38-python3-cffi_2.0.0-2_all.deb ... 97s Unpacking python3-cffi (2.0.0-2) ... 97s Selecting previously unselected package python3-argon2-cffi-bindings. 97s Preparing to unpack .../39-python3-argon2-cffi-bindings_25.1.0-2_amd64.deb ... 97s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 97s Selecting previously unselected package python3-argon2. 97s Preparing to unpack .../40-python3-argon2_25.1.0-2_amd64.deb ... 97s Unpacking python3-argon2 (25.1.0-2) ... 97s Selecting previously unselected package python3-comm. 97s Preparing to unpack .../41-python3-comm_0.2.1-1build1_all.deb ... 97s Unpacking python3-comm (0.2.1-1build1) ... 97s Selecting previously unselected package python3-coverage. 97s Preparing to unpack .../42-python3-coverage_7.8.2+dfsg1-1ubuntu1_amd64.deb ... 97s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 97s Selecting previously unselected package python3-debugpy. 97s Preparing to unpack .../43-python3-debugpy_1.8.19+ds-1ubuntu1_amd64.deb ... 97s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 97s Selecting previously unselected package python3-decorator. 97s Preparing to unpack .../44-python3-decorator_5.2.1-2_all.deb ... 97s Unpacking python3-decorator (5.2.1-2) ... 97s Selecting previously unselected package python3-parso. 97s Preparing to unpack .../45-python3-parso_0.8.5-1_all.deb ... 97s Unpacking python3-parso (0.8.5-1) ... 97s Selecting previously unselected package python3-typeshed. 97s Preparing to unpack .../46-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 97s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 97s Selecting previously unselected package python3-jedi. 97s Preparing to unpack .../47-python3-jedi_0.19.1+ds1-1build1_all.deb ... 97s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 97s Selecting previously unselected package python3-matplotlib-inline. 97s Preparing to unpack .../48-python3-matplotlib-inline_0.2.1-1_all.deb ... 97s Unpacking python3-matplotlib-inline (0.2.1-1) ... 97s Selecting previously unselected package python3-wcwidth. 97s Preparing to unpack .../49-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 97s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 97s Selecting previously unselected package python3-prompt-toolkit. 97s Preparing to unpack .../50-python3-prompt-toolkit_3.0.52-2_all.deb ... 97s Unpacking python3-prompt-toolkit (3.0.52-2) ... 97s Selecting previously unselected package python3-astroid. 97s Preparing to unpack .../51-python3-astroid_4.0.2-1ubuntu1_all.deb ... 97s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 97s Selecting previously unselected package python3-asttokens. 97s Preparing to unpack .../52-python3-asttokens_3.0.1-1_all.deb ... 97s Unpacking python3-asttokens (3.0.1-1) ... 97s Selecting previously unselected package python3-executing. 97s Preparing to unpack .../53-python3-executing_2.2.1-0.1_all.deb ... 97s Unpacking python3-executing (2.2.1-0.1) ... 98s Selecting previously unselected package python3-pure-eval. 98s Preparing to unpack .../54-python3-pure-eval_0.2.3-1_all.deb ... 98s Unpacking python3-pure-eval (0.2.3-1) ... 98s Selecting previously unselected package python3-stack-data. 98s Preparing to unpack .../55-python3-stack-data_0.6.3-3_all.deb ... 98s Unpacking python3-stack-data (0.6.3-3) ... 98s Selecting previously unselected package python3-ipython. 98s Preparing to unpack .../56-python3-ipython_8.35.0-2_all.deb ... 98s Unpacking python3-ipython (8.35.0-2) ... 98s Selecting previously unselected package python3-psutil. 98s Preparing to unpack .../57-python3-psutil_7.1.0-1ubuntu1_amd64.deb ... 98s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 98s Selecting previously unselected package libnorm1t64:amd64. 98s Preparing to unpack .../58-libnorm1t64_1.5.9+dfsg-4_amd64.deb ... 98s Unpacking libnorm1t64:amd64 (1.5.9+dfsg-4) ... 98s Selecting previously unselected package libpgm-5.3-0t64:amd64. 98s Preparing to unpack .../59-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_amd64.deb ... 98s Unpacking libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 98s Selecting previously unselected package libsodium23:amd64. 98s Preparing to unpack .../60-libsodium23_1.0.18-2_amd64.deb ... 98s Unpacking libsodium23:amd64 (1.0.18-2) ... 98s Selecting previously unselected package libzmq5:amd64. 98s Preparing to unpack .../61-libzmq5_4.3.5-1build3_amd64.deb ... 98s Unpacking libzmq5:amd64 (4.3.5-1build3) ... 98s Selecting previously unselected package python3-zmq. 98s Preparing to unpack .../62-python3-zmq_27.1.0-1_amd64.deb ... 98s Unpacking python3-zmq (27.1.0-1) ... 98s Selecting previously unselected package python3-jupyter-client. 98s Preparing to unpack .../63-python3-jupyter-client_8.7.0-1_all.deb ... 98s Unpacking python3-jupyter-client (8.7.0-1) ... 98s Selecting previously unselected package python3-nest-asyncio. 98s Preparing to unpack .../64-python3-nest-asyncio_1.6.0-1_all.deb ... 98s Unpacking python3-nest-asyncio (1.6.0-1) ... 98s Selecting previously unselected package python3-ipykernel. 98s Preparing to unpack .../65-python3-ipykernel_6.30.1-1_all.deb ... 98s Unpacking python3-ipykernel (6.30.1-1) ... 98s Selecting previously unselected package python3-ipython-genutils. 98s Preparing to unpack .../66-python3-ipython-genutils_0.2.0-7_all.deb ... 98s Unpacking python3-ipython-genutils (0.2.0-7) ... 98s Selecting previously unselected package python-tinycss2-common. 98s Preparing to unpack .../67-python-tinycss2-common_1.5.1-1_all.deb ... 98s Unpacking python-tinycss2-common (1.5.1-1) ... 98s Selecting previously unselected package python3-webencodings. 98s Preparing to unpack .../68-python3-webencodings_0.5.1-5build1_all.deb ... 98s Unpacking python3-webencodings (0.5.1-5build1) ... 98s Selecting previously unselected package python3-tinycss2. 98s Preparing to unpack .../69-python3-tinycss2_1.5.1-1_all.deb ... 98s Unpacking python3-tinycss2 (1.5.1-1) ... 98s Selecting previously unselected package python3-html5lib. 98s Preparing to unpack .../70-python3-html5lib_1.2-3_all.deb ... 98s Unpacking python3-html5lib (1.2-3) ... 98s Selecting previously unselected package python3-bleach. 98s Preparing to unpack .../71-python3-bleach_6.3.0-1_all.deb ... 98s Unpacking python3-bleach (6.3.0-1) ... 98s Selecting previously unselected package python3-soupsieve. 98s Preparing to unpack .../72-python3-soupsieve_2.8.1-1_all.deb ... 98s Unpacking python3-soupsieve (2.8.1-1) ... 98s Selecting previously unselected package python3-bs4. 98s Preparing to unpack .../73-python3-bs4_4.14.3-2build1_all.deb ... 98s Unpacking python3-bs4 (4.14.3-2build1) ... 98s Selecting previously unselected package python3-defusedxml. 98s Preparing to unpack .../74-python3-defusedxml_0.7.1-3build1_all.deb ... 98s Unpacking python3-defusedxml (0.7.1-3build1) ... 98s Selecting previously unselected package python3-jupyterlab-pygments. 98s Preparing to unpack .../75-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 98s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 98s Selecting previously unselected package python3-mistune. 98s Preparing to unpack .../76-python3-mistune_3.1.4-1_all.deb ... 98s Unpacking python3-mistune (3.1.4-1) ... 98s Selecting previously unselected package python3-fastjsonschema. 98s Preparing to unpack .../77-python3-fastjsonschema_2.21.1-1_all.deb ... 98s Unpacking python3-fastjsonschema (2.21.1-1) ... 98s Selecting previously unselected package python3-nbformat. 98s Preparing to unpack .../78-python3-nbformat_5.10.4-1_all.deb ... 98s Unpacking python3-nbformat (5.10.4-1) ... 98s Selecting previously unselected package python3-nbclient. 98s Preparing to unpack .../79-python3-nbclient_0.10.4-1_all.deb ... 98s Unpacking python3-nbclient (0.10.4-1) ... 98s Selecting previously unselected package python3-pandocfilters. 98s Preparing to unpack .../80-python3-pandocfilters_1.5.1-1_all.deb ... 98s Unpacking python3-pandocfilters (1.5.1-1) ... 98s Selecting previously unselected package python3-nbconvert. 98s Preparing to unpack .../81-python3-nbconvert_7.16.6-1_all.deb ... 98s Unpacking python3-nbconvert (7.16.6-1) ... 98s Selecting previously unselected package python3-prometheus-client. 98s Preparing to unpack .../82-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 98s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 98s Selecting previously unselected package python3-send2trash. 98s Preparing to unpack .../83-python3-send2trash_1.8.3-1_all.deb ... 98s Unpacking python3-send2trash (1.8.3-1) ... 98s Selecting previously unselected package python3-notebook. 98s Preparing to unpack .../84-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 98s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 98s Selecting previously unselected package jupyter-notebook. 98s Preparing to unpack .../85-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 98s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 98s Selecting previously unselected package sphinx-rtd-theme-common. 98s Preparing to unpack .../86-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 98s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 98s Selecting previously unselected package python-notebook-doc. 98s Preparing to unpack .../87-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 98s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 98s Selecting previously unselected package python3-all. 98s Preparing to unpack .../88-python3-all_3.14.2-1_amd64.deb ... 98s Unpacking python3-all (3.14.2-1) ... 98s Selecting previously unselected package python3-iniconfig. 98s Preparing to unpack .../89-python3-iniconfig_2.1.0-2_all.deb ... 98s Unpacking python3-iniconfig (2.1.0-2) ... 98s Selecting previously unselected package python3-pluggy. 98s Preparing to unpack .../90-python3-pluggy_1.6.0-2_all.deb ... 98s Unpacking python3-pluggy (1.6.0-2) ... 98s Selecting previously unselected package python3-pytest. 98s Preparing to unpack .../91-python3-pytest_9.0.2-2_all.deb ... 98s Unpacking python3-pytest (9.0.2-2) ... 98s Selecting previously unselected package python3-requests-unixsocket. 98s Preparing to unpack .../92-python3-requests-unixsocket_1.0.1-1_all.deb ... 98s Unpacking python3-requests-unixsocket (1.0.1-1) ... 98s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 98s Setting up python3-iniconfig (2.1.0-2) ... 98s Setting up python3-tornado (6.5.4-0.1) ... 99s Setting up libnorm1t64:amd64 (1.5.9+dfsg-4) ... 99s Setting up python3-pure-eval (0.2.3-1) ... 99s Setting up python3-send2trash (1.8.3-1) ... 99s Setting up fonts-lato (2.015-1build1) ... 99s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 99s Setting up libsodium23:amd64 (1.0.18-2) ... 99s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 99s Setting up libjs-requirejs-text (2.0.12-2) ... 99s Setting up python3-parso (0.8.5-1) ... 99s Setting up python3-defusedxml (0.7.1-3build1) ... 99s Setting up python3-ipython-genutils (0.2.0-7) ... 99s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 99s Setting up libargon2-1:amd64 (0~20190702+dfsg-5) ... 99s Setting up python3-ply (3.11-10) ... 100s Setting up libjs-moment (2.29.4+ds-1) ... 100s Setting up python3-pandocfilters (1.5.1-1) ... 100s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 100s Setting up libjs-es6-promise (4.2.8-12) ... 100s Setting up libjs-text-encoding (0.7.0-5) ... 100s Setting up python3-webencodings (0.5.1-5build1) ... 100s Setting up python3-platformdirs (4.5.1-1) ... 100s Setting up python3-psutil (7.1.0-1ubuntu1) ... 100s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 100s Setting up python3-pycparser (2.23-1build1) ... 101s Setting up python3-requests-unixsocket (1.0.1-1) ... 101s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 101s Setting up libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 101s Setting up python3-decorator (5.2.1-2) ... 101s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 101s Setting up node-jed (1.1.1-4) ... 101s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 101s Setting up libjs-xterm (5.3.0-4) ... 101s Setting up python3-nest-asyncio (1.6.0-1) ... 101s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 101s Setting up libjs-jed (1.1.1-4) ... 101s Setting up libipt2 (2.1.2-3) ... 101s Setting up python3-html5lib (1.2-3) ... 101s Setting up libbabeltrace1:amd64 (1.5.11-5) ... 101s Setting up python3-pluggy (1.6.0-2) ... 102s Setting up python3-fastjsonschema (2.21.1-1) ... 102s Setting up python3-terminado (0.18.1-1) ... 102s Setting up python3-astroid (4.0.2-1ubuntu1) ... 102s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 102s Setting up python-tinycss2-common (1.5.1-1) ... 102s Setting up python3.13-minimal (3.13.11-1) ... 103s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 103s Setting up python3-mistune (3.1.4-1) ... 103s Setting up python3-soupsieve (2.8.1-1) ... 103s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 103s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 103s Setting up python3-jupyter-core (5.9.1-1) ... 103s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 103s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 103s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 103s Setting up python3-prompt-toolkit (3.0.52-2) ... 104s Setting up python3-tinycss2 (1.5.1-1) ... 104s Setting up libzmq5:amd64 (4.3.5-1build3) ... 104s Setting up python3-jedi (0.19.1+ds1-1build1) ... 104s Setting up python3.13 (3.13.11-1) ... 105s Setting up python3-asttokens (3.0.1-1) ... 105s Setting up python3-pytest (9.0.2-2) ... 105s Setting up python3-cffi (2.0.0-2) ... 106s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 106s Setting up python3-all (3.14.2-1) ... 106s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 106s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 106s Setting up libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 106s Setting up python3-nbformat (5.10.4-1) ... 106s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 106s Setting up python3-bs4 (4.14.3-2build1) ... 106s Setting up python3-bleach (6.3.0-1) ... 106s Setting up python3-matplotlib-inline (0.2.1-1) ... 106s Setting up python3-comm (0.2.1-1build1) ... 107s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 107s Setting up gdb (17.1-1ubuntu1) ... 107s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 107s Setting up python3-executing (2.2.1-0.1) ... 107s Setting up python3-zmq (27.1.0-1) ... 107s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 107s Setting up python3-argon2 (25.1.0-2) ... 107s Setting up python3-jupyter-client (8.7.0-1) ... 107s Setting up jupyter-core (5.9.1-1) ... 107s Setting up python3-stack-data (0.6.3-3) ... 108s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 108s Setting up python3-nbclient (0.10.4-1) ... 108s Setting up python3-ipython (8.35.0-2) ... 109s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 109s return result 109s Setting up python3-ipykernel (6.30.1-1) ... 109s Setting up python3-nbconvert (7.16.6-1) ... 109s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 110s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 110s Processing triggers for systemd (259-1ubuntu2) ... 110s Processing triggers for man-db (2.13.1-1) ... 110s Processing triggers for libc-bin (2.42-2ubuntu4) ... 111s autopkgtest [09:57:48]: test pytest: [----------------------- 111s Testing with python3.13 111s *** STARTING RUN 1: python3.13 -m pytest --pyargs notebook -rsfE --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 113s ============================= test session starts ============================== 113s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 113s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 113s plugins: typeguard-4.4.4 113s collected 330 items / 6 deselected / 324 selected 113s 114s auth/tests/test_login.py .. [ 0%] 114s auth/tests/test_security.py .... [ 1%] 114s bundler/tests/test_bundler_api.py ..... [ 3%] 114s bundler/tests/test_bundler_tools.py ............. [ 7%] 114s bundler/tests/test_bundlerextension.py ... [ 8%] 114s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 114s services/api/tests/test_api.py ... [ 11%] 114s services/config/tests/test_config_api.py ... [ 12%] 115s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 115s ................s...........ss..s......................... [ 38%] 115s services/contents/tests/test_fileio.py ... [ 39%] 115s services/contents/tests/test_largefilemanager.py . [ 39%] 116s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 116s .... [ 50%] 126s services/kernels/tests/test_kernels_api.py ........... [ 54%] 126s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 126s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 126s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 132s services/sessions/tests/test_sessions_api.py ...................... [ 66%] 136s terminal/tests/test_terminals_api.py ........ [ 68%] 136s tests/test_config_manager.py . [ 68%] 136s tests/test_files.py ..... [ 70%] 136s tests/test_gateway.py ...... [ 72%] 136s tests/test_i18n.py . [ 72%] 136s tests/test_log.py . [ 72%] 137s tests/test_nbextensions.py ................................... [ 83%] 137s tests/test_notebookapp.py .......................... [ 91%] 137s tests/test_paths.py ... [ 92%] 137s tests/test_serialize.py .. [ 93%] 138s tests/test_serverextensions.py ..... [ 94%] 138s tests/test_traittypes.py ........... [ 98%] 138s tests/test_utils.py ....s [ 99%] 139s tree/tests/test_tree_handler.py . [100%] 139s 139s =============================== warnings summary =============================== 139s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 139s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 139s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 139s return LooseVersion(v) >= LooseVersion(check) 139s 139s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 139s auth/tests/test_login.py: 2 warnings 139s bundler/tests/test_bundler_api.py: 2 warnings 139s services/api/tests/test_api.py: 4 warnings 139s services/config/tests/test_config_api.py: 7 warnings 139s services/contents/tests/test_contents_api.py: 318 warnings 139s services/kernels/tests/test_kernels_api.py: 105 warnings 139s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 139s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 139s services/sessions/tests/test_sessionmanager.py: 9 warnings 139s services/sessions/tests/test_sessions_api.py: 128 warnings 139s terminal/tests/test_terminals_api.py: 50 warnings 139s tests/test_files.py: 2 warnings 139s tests/test_gateway.py: 21 warnings 139s tests/test_notebookapp.py: 8 warnings 139s tests/test_paths.py: 2 warnings 139s tree/tests/test_tree_handler.py: 2 warnings 139s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 139s dt = unaware(*args, **kwargs) 139s 139s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 139s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 139s pytestmark = pytest.mark.integration_tests 139s 139s bundler/tests/test_bundler_api.py: 6 warnings 139s services/api/tests/test_api.py: 6 warnings 139s services/contents/tests/test_contents_api.py: 806 warnings 139s services/contents/tests/test_largefilemanager.py: 42 warnings 139s services/contents/tests/test_manager.py: 526 warnings 139s tests/test_files.py: 8 warnings 139s tree/tests/test_tree_handler.py: 6 warnings 139s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). 139s dt = unaware(*args, **kwargs) 139s 139s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 139s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 139s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 139s loop.make_current() 139s 139s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 139s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 139s /usr/lib/python3/dist-packages/jupyter_client/kernelspec.py:302: UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).): /tmp/tmp6bttmygz/data/kernels/sample 2 139s d = self.find_kernel_specs() 139s 139s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 139s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: 139s 139s Traceback (most recent call last): 139s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 68, in __del__ 139s self.close() 139s ~~~~~~~~~~^^ 139s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 63, in close 139s self._cursor.close() 139s ~~~~~~~~~~~~~~~~~~^^ 139s sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 134542800388608 and this is thread id 134542602008256. 139s 139s Enable tracemalloc to get traceback where the object was allocated. 139s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 139s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 139s 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 139s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 139s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 139s /usr/lib/python3.13/pty.py:95: DeprecationWarning: This process (pid=3632) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 139s pid, fd = os.forkpty() 139s 139s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 139s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 139s /usr/lib/python3/dist-packages/notebook/tests/test_gateway.py:34: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 139s dt = datetime.utcnow().isoformat() + 'Z' 139s 139s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 139s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 139s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 139s /usr/lib/python3/dist-packages/notebook/nbextensions.py:154: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. 139s archive.extractall(nbext) 139s 139s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 139s =========================== short test summary info ============================ 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 139s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 139s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 139s ======== 304 passed, 20 skipped, 6 deselected, 2092 warnings in 27.04s ========= 139s *** END OF RUN 1: ALL TESTS RUN HAVE NOW PASSED/XFAILED *** 139s Testing with python3.14 139s *** STARTING RUN 1: python3.14 -m pytest --pyargs notebook -rsfE --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 141s ============================= test session starts ============================== 141s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 141s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 141s plugins: typeguard-4.4.4 141s collected 330 items / 6 deselected / 324 selected 141s 141s auth/tests/test_login.py .. [ 0%] 141s auth/tests/test_security.py .... [ 1%] 142s bundler/tests/test_bundler_api.py ..... [ 3%] 142s bundler/tests/test_bundler_tools.py ............. [ 7%] 142s bundler/tests/test_bundlerextension.py ... [ 8%] 142s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 142s services/api/tests/test_api.py ... [ 11%] 142s services/config/tests/test_config_api.py ... [ 12%] 142s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 143s ................s...........ss..s......................... [ 38%] 143s services/contents/tests/test_fileio.py ... [ 39%] 143s services/contents/tests/test_largefilemanager.py . [ 39%] 143s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 143s .... [ 50%] 153s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 153s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 153s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 154s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 155s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 155s F [ 66%] 159s terminal/tests/test_terminals_api.py ........ [ 68%] 159s tests/test_config_manager.py . [ 68%] 159s tests/test_files.py ..... [ 70%] 159s tests/test_gateway.py ...... [ 72%] 159s tests/test_i18n.py . [ 72%] 159s tests/test_log.py . [ 72%] 159s tests/test_nbextensions.py ................................... [ 83%] 160s tests/test_notebookapp.py .......................... [ 91%] 160s tests/test_paths.py ... [ 92%] 160s tests/test_serialize.py .. [ 93%] 161s tests/test_serverextensions.py ..... [ 94%] 161s tests/test_traittypes.py ........... [ 98%] 161s tests/test_utils.py ....s [ 99%] 162s tree/tests/test_tree_handler.py . [100%] 162s 162s ==================================== ERRORS ==================================== 162s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 162s 162s self = 162s 162s def tearDown(self): 162s for k in self.kern_api.list().json(): 162s > self.kern_api.shutdown(k['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 49, in 162s import signal 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1396, in find_spec 162s File "", line 494, in _verbose_message 162s KeyboardInterrupt 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "/usr/lib/python3.14/asyncio/base_events.py", line 38, in 162s from . import constants 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1365, in find_spec 162s File "", line 152, in _path_stat 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-d8775663-5b4a-4cb0-879f-ace8b118e2d8.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55499 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34301 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: d8775663-5b4a-4cb0-879f-ace8b118e2d8, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.910000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40017 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43507 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.150000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7 162s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7/interrupt (::1) 0.530000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 162s yield maybe_future(km.restart_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 162s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 162s await ensure_async(kernel.restart_kernel(now=now)) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 162s await self._async_shutdown_kernel(now=now, restart=True) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7/restart (::1) 2.520000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.170000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 162s yielded = ctx_run(next, result) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 (::1) 5.460000ms referer=None 162s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 162s 162s self = 162s 162s def tearDown(self): 162s for k in self.kern_api.list().json(): 162s > self.kern_api.shutdown(k['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 162s import ssl 162s File "/usr/lib/python3.14/ssl.py", line 100, in 162s import _ssl # if we can't import it, let the error propagate 162s ^^^^^^^^^^^ 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-904ad2bc-b2ce-4685-8f38-8976335c019c.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50511 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34387 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 904ad2bc-b2ce-4685-8f38-8976335c019c, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.870000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-5ef48c10-c243-480c-8a9a-3c0d8116a5b9.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54167 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37939 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ef48c10-c243-480c-8a9a-3c0d8116a5b9, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.800000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5ef48c10-c243-480c-8a9a-3c0d8116a5b9 162s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9/interrupt (::1) 1.240000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 162s yield maybe_future(km.restart_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 162s result = coro.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 162s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 162s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 162s yield self # This tells Task to wait for completion. 162s ^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 162s await ensure_async(kernel.restart_kernel(now=now)) 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 162s await self._async_shutdown_kernel(now=now, restart=True) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9/restart (::1) 4.030000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 904ad2bc-b2ce-4685-8f38-8976335c019c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 904ad2bc-b2ce-4685-8f38-8976335c019c 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c (::1) 7.460000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 985, in find_spec 162s KeyboardInterrupt 162s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-8e07f24a-c5f5-4ed0-adab-45f4d6c242e2.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40235 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44997 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.910000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.480000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.560000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/080be876-0b2c-41e2-a7a8-807db7d2f3dc (::1) 1.270000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924 (::1) 3.800000ms referer=None 162s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-ac36137f-29a5-46ae-b1a2-af8cc432c247.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47639 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34077 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac36137f-29a5-46ae-b1a2-af8cc432c247, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.230000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42819 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38479 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.760000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac36137f-29a5-46ae-b1a2-af8cc432c247 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac36137f-29a5-46ae-b1a2-af8cc432c247 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 162s km.shutdown_kernel(before['kernel']['id']) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 8.070000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 6.810000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 52, in 162s import warnings 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 851, in get_code 162s File "", line 950, in get_data 162s KeyboardInterrupt 162s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.550000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-d700b15f-0c1b-4b17-9f5a-fda80fb87c04.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55553 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39887 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: d700b15f-0c1b-4b17-9f5a-fda80fb87c04, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 14.790000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d700b15f-0c1b-4b17-9f5a-fda80fb87c04 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d700b15f-0c1b-4b17-9f5a-fda80fb87c04 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 5.400000ms referer=None 162s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-ae21ab39-80d1-488e-80ab-321a9db5c2c6.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44515 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59723 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae21ab39-80d1-488e-80ab-321a9db5c2c6, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.090000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.700000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72 (::1) 1.360000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae21ab39-80d1-488e-80ab-321a9db5c2c6 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae21ab39-80d1-488e-80ab-321a9db5c2c6 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f (::1) 3.710000ms referer=None 162s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 924, in _load_unlocked 162s File "", line 822, in module_from_spec 162s File "", line 801, in _init_module_attrs 162s File "", line 641, in cached 162s File "", line 372, in _get_cached 162s File "", line 266, in cache_from_source 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-2d9f579c-97c2-46d1-8ba8-3d2e2104a51d.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46859 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57739 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.190000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-b314192f-de70-4c99-a0d1-0181d426162a.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35751 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41767 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: b314192f-de70-4c99-a0d1-0181d426162a, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.780000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 162s yield maybe_future( 162s km.shutdown_kernel(before['kernel']['id']) 162s ) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 10.370000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b314192f-de70-4c99-a0d1-0181d426162a 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b314192f-de70-4c99-a0d1-0181d426162a 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 49, in 162s import signal 162s KeyboardInterrupt 162s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-7ca971c5-04d7-48a2-908b-a16de1c18cd3.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44873 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50667 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ca971c5-04d7-48a2-908b-a16de1c18cd3, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b314192f-de70-4c99-a0d1-0181d426162a 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b314192f-de70-4c99-a0d1-0181d426162a 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 14.200000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ca971c5-04d7-48a2-908b-a16de1c18cd3 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ca971c5-04d7-48a2-908b-a16de1c18cd3 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 3.700000ms referer=None 162s =================================== FAILURES =================================== 162s ______________________ KernelAPITest.test_default_kernel _______________________ 162s 162s self = 162s 162s def tearDown(self): 162s for k in self.kern_api.list().json(): 162s > self.kern_api.shutdown(k['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c918e205-5246-474e-88c8-69e401de0ee6 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log setup ------------------------------ 162s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpxt1nno26/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpxt1nno26/etc/jupyter'] for config files 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxt1nno26/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxt1nno26/config 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxt1nno26/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxt1nno26/config 162s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpxt1nno26/notebooks 162s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 162s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 162s WARNING NotebookApp:handlers.py:612 Forbidden 162s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-c918e205-5246-474e-88c8-69e401de0ee6.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49475 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38885 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: c918e205-5246-474e-88c8-69e401de0ee6, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 31.370000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c918e205-5246-474e-88c8-69e401de0ee6 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c918e205-5246-474e-88c8-69e401de0ee6 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c918e205-5246-474e-88c8-69e401de0ee6 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c918e205-5246-474e-88c8-69e401de0ee6', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 162s yielded = ctx_run(next, result) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c918e205-5246-474e-88c8-69e401de0ee6 (::1) 5.190000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 851, in get_code 162s File "", line 951, in get_data 162s KeyboardInterrupt 162s ______________________ KernelAPITest.test_kernel_handler _______________________ 162s 162s self = 162s 162s def test_kernel_handler(self): 162s # GET kernel with given id 162s kid = self.kern_api.start().json()['id'] 162s r = self.kern_api.get(kid) 162s kern1 = r.json() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(kern1, dict) 162s self.assertIn('id', kern1) 162s self.assertEqual(kern1['id'], kid) 162s 162s # Request a bad kernel id and check that a JSON 162s # message is returned! 162s bad_id = '111-111-111-111-111' 162s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 162s self.kern_api.get(bad_id) 162s 162s # DELETE kernel with id 162s > r = self.kern_api.shutdown(kid) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-3d01e75f-38c2-4f1e-8dc1-df1dcde7df07.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43165 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50281 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3d01e75f-38c2-4f1e-8dc1-df1dcde7df07, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.210000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 162s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 162s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.410000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 162s yielded = ctx_run(next, result) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 (::1) 5.670000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c918e205-5246-474e-88c8-69e401de0ee6 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c918e205-5246-474e-88c8-69e401de0ee6 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c918e205-5246-474e-88c8-69e401de0ee6 (::1) 0.490000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3d01e75f-38c2-4f1e-8dc1-df1dcde7df07 (::1) 1.290000ms 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1365, in find_spec 162s File "", line 145, in _path_stat 162s KeyboardInterrupt 162s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 162s 162s self = 162s 162s def test_main_kernel_handler(self): 162s # POST request 162s r = self.kern_api.start() 162s kern1 = r.json() 162s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 162s self.assertEqual(r.status_code, 201) 162s self.assertIsInstance(kern1, dict) 162s 162s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 162s expected_csp = '; '.join([ 162s "frame-ancestors 'self'", 162s 'report-uri ' + report_uri, 162s "default-src 'none'" 162s ]) 162s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 162s 162s # GET request 162s r = self.kern_api.list() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(r.json(), list) 162s self.assertEqual(r.json()[0]['id'], kern1['id']) 162s self.assertEqual(r.json()[0]['name'], kern1['name']) 162s 162s # create another kernel and check that they both are added to the 162s # list of kernels from a GET request 162s kern2 = self.kern_api.start().json() 162s assert isinstance(kern2, dict) 162s r = self.kern_api.list() 162s kernels = r.json() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(kernels, list) 162s self.assertEqual(len(kernels), 2) 162s 162s # Interrupt a kernel 162s r = self.kern_api.interrupt(kern2['id']) 162s self.assertEqual(r.status_code, 204) 162s 162s # Restart a kernel 162s > r = self.kern_api.restart(kern2['id']) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 162s return self._req('POST', url_path_join(id, 'restart')) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7/restart 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 49, in 162s import signal 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1396, in find_spec 162s File "", line 494, in _verbose_message 162s KeyboardInterrupt 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "/usr/lib/python3.14/asyncio/base_events.py", line 38, in 162s from . import constants 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1365, in find_spec 162s File "", line 152, in _path_stat 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-d8775663-5b4a-4cb0-879f-ace8b118e2d8.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55499 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34301 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: d8775663-5b4a-4cb0-879f-ace8b118e2d8, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.910000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxt1nno26/runtime/kernel-ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40017 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43507 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.150000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7 162s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7/interrupt (::1) 0.530000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 162s yield maybe_future(km.restart_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 162s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 162s await ensure_async(kernel.restart_kernel(now=now)) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 162s await self._async_shutdown_kernel(now=now, restart=True) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7/restart (::1) 2.520000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.170000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 162s yielded = ctx_run(next, result) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 (::1) 5.460000ms referer=None 162s ________________________ KernelAPITest.test_no_kernels _________________________ 162s 162s self = 162s 162s def test_no_kernels(self): 162s """Make sure there are no kernels running at the start""" 162s kernels = self.kern_api.list().json() 162s > self.assertEqual(kernels, []) 162s E AssertionError: Lists differ: [{'id': 'd8775663-5b4a-4cb0-879f-ace8b118e[281 chars]: 0}] != [] 162s E 162s E First list contains 2 additional elements. 162s E First extra element 0: 162s E {'id': 'd8775663-5b4a-4cb0-879f-ace8b118e2d8', 'name': 'python3', 'last_activity': '2026-01-24T09:58:20.182313Z', 'execution_state': 'starting', 'connections': 0} 162s E 162s E + [] 162s E - [{'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': 'd8775663-5b4a-4cb0-879f-ace8b118e2d8', 162s E - 'last_activity': '2026-01-24T09:58:20.182313Z', 162s E - 'name': 'python3'}, 162s E - {'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': 'ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7', 162s E - 'last_activity': '2026-01-24T09:58:20.200676Z', 162s E - 'name': 'python3'}] 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8775663-5b4a-4cb0-879f-ace8b118e2d8 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d8775663-5b4a-4cb0-879f-ace8b118e2d8 (::1) 1.210000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ee8a6dbe-fb6f-4a95-b4d4-333472f1a2a7 (::1) 0.510000ms 162s ---------------------------- Captured log teardown ----------------------------- 162s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 162s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 162s _____________________ AsyncKernelAPITest.test_connections ______________________ 162s 162s self = 162s 162s def tearDown(self): 162s for k in self.kern_api.list().json(): 162s > self.kern_api.shutdown(k['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log setup ------------------------------ 162s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpu_1kp6vh/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpu_1kp6vh/etc/jupyter'] for config files 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu_1kp6vh/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu_1kp6vh/config 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu_1kp6vh/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu_1kp6vh/config 162s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpu_1kp6vh/notebooks 162s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 162s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 162s WARNING NotebookApp:handlers.py:612 Forbidden 162s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.300000ms referer=None 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-461ae108-2730-489f-b0fc-13b2c38c1132.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53283 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57019 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 461ae108-2730-489f-b0fc-13b2c38c1132, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.930000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 0.890000ms 162s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132/channels 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 162s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 461ae108-2730-489f-b0fc-13b2c38c1132 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39159 162s DEBUG NotebookApp:kernelmanager.py:423 activity on 461ae108-2730-489f-b0fc-13b2c38c1132: status (starting) 162s DEBUG NotebookApp:kernelmanager.py:423 activity on 461ae108-2730-489f-b0fc-13b2c38c1132: status (busy) 162s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 162s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 461ae108-2730-489f-b0fc-13b2c38c1132) to 5.4 (client). 162s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132/channels (::1) 435.780000ms 162s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132/channels 162s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 461ae108-2730-489f-b0fc-13b2c38c1132 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57019 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39159 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53283 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48113 162s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 461ae108-2730-489f-b0fc-13b2c38c1132 162s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 162s Setting websocket_ping_timeout=30000 162s DEBUG NotebookApp:kernelmanager.py:423 activity on 461ae108-2730-489f-b0fc-13b2c38c1132: status (idle) 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 0.430000ms 162s DEBUG NotebookApp:handlers.py:579 Websocket closed 461ae108-2730-489f-b0fc-13b2c38c1132:c4c32f30-e67360007e7562b2725e8aef 162s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 461ae108-2730-489f-b0fc-13b2c38c1132:c4c32f30-e67360007e7562b2725e8aef 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 461ae108-2730-489f-b0fc-13b2c38c1132 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 0.310000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 1.090000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 461ae108-2730-489f-b0fc-13b2c38c1132 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 461ae108-2730-489f-b0fc-13b2c38c1132 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 5.490000ms referer=None 162s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 162s 162s self = 162s 162s def tearDown(self): 162s for k in self.kern_api.list().json(): 162s > self.kern_api.shutdown(k['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ed3266b5-554a-4066-b28b-d4a107d8a727 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-ed3266b5-554a-4066-b28b-d4a107d8a727.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41095 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42361 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ed3266b5-554a-4066-b28b-d4a107d8a727, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.300000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 461ae108-2730-489f-b0fc-13b2c38c1132 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 461ae108-2730-489f-b0fc-13b2c38c1132 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/461ae108-2730-489f-b0fc-13b2c38c1132 (::1) 2.740000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed3266b5-554a-4066-b28b-d4a107d8a727 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed3266b5-554a-4066-b28b-d4a107d8a727 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ed3266b5-554a-4066-b28b-d4a107d8a727 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ed3266b5-554a-4066-b28b-d4a107d8a727', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ed3266b5-554a-4066-b28b-d4a107d8a727 (::1) 8.780000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 162s from pathlib import Path 162s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 162s class PureWindowsPath(PurePath): 162s ...<7 lines>... 162s __slots__ = () 162s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 162s import ntpath 162s File "/usr/lib/python3.14/ntpath.py", line 557, in 162s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1266, in _get_spec 162s File "", line 1393, in find_spec 162s File "", line 131, in _path_join 162s KeyboardInterrupt 162s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 162s 162s self = 162s 162s def test_kernel_handler(self): 162s # GET kernel with given id 162s kid = self.kern_api.start().json()['id'] 162s r = self.kern_api.get(kid) 162s kern1 = r.json() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(kern1, dict) 162s self.assertIn('id', kern1) 162s self.assertEqual(kern1['id'], kid) 162s 162s # Request a bad kernel id and check that a JSON 162s # message is returned! 162s bad_id = '111-111-111-111-111' 162s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 162s self.kern_api.get(bad_id) 162s 162s # DELETE kernel with id 162s > r = self.kern_api.shutdown(kid) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-c9227bd0-6d40-4f1d-adac-57e57ebcdd62.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58199 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50637 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: c9227bd0-6d40-4f1d-adac-57e57ebcdd62, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.500000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/c9227bd0-6d40-4f1d-adac-57e57ebcdd62 (::1) 2.460000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 162s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 162s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.410000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c9227bd0-6d40-4f1d-adac-57e57ebcdd62 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c9227bd0-6d40-4f1d-adac-57e57ebcdd62', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c9227bd0-6d40-4f1d-adac-57e57ebcdd62 (::1) 7.980000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed3266b5-554a-4066-b28b-d4a107d8a727 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed3266b5-554a-4066-b28b-d4a107d8a727 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ed3266b5-554a-4066-b28b-d4a107d8a727 (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "", line 1249, in _path_importer_cache 162s KeyError: '/usr/lib/python3.14/pathlib' 162s 162s During handling of the above exception, another exception occurred: 162s 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 162s from pathlib import Path 162s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 162s from pathlib._os import ( 162s ...<3 lines>... 162s ) 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 1292, in find_spec 162s File "", line 1264, in _get_spec 162s File "", line 1251, in _path_importer_cache 162s File "", line 1227, in _path_hooks 162s File "", line 67, in __init__ 162s KeyboardInterrupt 162s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 162s 162s self = 162s 162s def test_main_kernel_handler(self): 162s # POST request 162s r = self.kern_api.start() 162s kern1 = r.json() 162s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 162s self.assertEqual(r.status_code, 201) 162s self.assertIsInstance(kern1, dict) 162s 162s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 162s expected_csp = '; '.join([ 162s "frame-ancestors 'self'", 162s 'report-uri ' + report_uri, 162s "default-src 'none'" 162s ]) 162s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 162s 162s # GET request 162s r = self.kern_api.list() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(r.json(), list) 162s self.assertEqual(r.json()[0]['id'], kern1['id']) 162s self.assertEqual(r.json()[0]['name'], kern1['name']) 162s 162s # create another kernel and check that they both are added to the 162s # list of kernels from a GET request 162s kern2 = self.kern_api.start().json() 162s assert isinstance(kern2, dict) 162s r = self.kern_api.list() 162s kernels = r.json() 162s self.assertEqual(r.status_code, 200) 162s assert isinstance(kernels, list) 162s self.assertEqual(len(kernels), 2) 162s 162s # Interrupt a kernel 162s r = self.kern_api.interrupt(kern2['id']) 162s self.assertEqual(r.status_code, 204) 162s 162s # Restart a kernel 162s > r = self.kern_api.restart(kern2['id']) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 162s return self._req('POST', url_path_join(id, 'restart')) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9/restart 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 162s import ssl 162s File "/usr/lib/python3.14/ssl.py", line 100, in 162s import _ssl # if we can't import it, let the error propagate 162s ^^^^^^^^^^^ 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-904ad2bc-b2ce-4685-8f38-8976335c019c.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50511 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34387 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 904ad2bc-b2ce-4685-8f38-8976335c019c, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.870000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu_1kp6vh/runtime/kernel-5ef48c10-c243-480c-8a9a-3c0d8116a5b9.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54167 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37939 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ef48c10-c243-480c-8a9a-3c0d8116a5b9, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.800000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5ef48c10-c243-480c-8a9a-3c0d8116a5b9 162s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9/interrupt (::1) 1.240000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 162s yield maybe_future(km.restart_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 162s result = coro.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 162s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 162s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 162s yield self # This tells Task to wait for completion. 162s ^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 162s await ensure_async(kernel.restart_kernel(now=now)) 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 162s await self._async_shutdown_kernel(now=now, restart=True) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9/restart (::1) 4.030000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 904ad2bc-b2ce-4685-8f38-8976335c019c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 904ad2bc-b2ce-4685-8f38-8976335c019c 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 162s yield maybe_future(km.shutdown_kernel(kernel_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c (::1) 7.460000ms referer=None 162s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 162s 162s self = 162s 162s def test_no_kernels(self): 162s """Make sure there are no kernels running at the start""" 162s kernels = self.kern_api.list().json() 162s > self.assertEqual(kernels, []) 162s E AssertionError: Lists differ: [{'id': '904ad2bc-b2ce-4685-8f38-8976335c0[281 chars]: 0}] != [] 162s E 162s E First list contains 2 additional elements. 162s E First extra element 0: 162s E {'id': '904ad2bc-b2ce-4685-8f38-8976335c019c', 'name': 'python3', 'last_activity': '2026-01-24T09:58:20.894706Z', 'execution_state': 'starting', 'connections': 0} 162s E 162s E + [] 162s E - [{'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': '904ad2bc-b2ce-4685-8f38-8976335c019c', 162s E - 'last_activity': '2026-01-24T09:58:20.894706Z', 162s E - 'name': 'python3'}, 162s E - {'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': '5ef48c10-c243-480c-8a9a-3c0d8116a5b9', 162s E - 'last_activity': '2026-01-24T09:58:20.911202Z', 162s E - 'name': 'python3'}] 162s 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 904ad2bc-b2ce-4685-8f38-8976335c019c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 904ad2bc-b2ce-4685-8f38-8976335c019c 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/904ad2bc-b2ce-4685-8f38-8976335c019c (::1) 0.420000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ef48c10-c243-480c-8a9a-3c0d8116a5b9 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ef48c10-c243-480c-8a9a-3c0d8116a5b9 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5ef48c10-c243-480c-8a9a-3c0d8116a5b9 (::1) 0.440000ms 162s ---------------------------- Captured log teardown ----------------------------- 162s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 904ad2bc-b2ce-4685-8f38-8976335c019c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 461ae108-2730-489f-b0fc-13b2c38c1132 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9227bd0-6d40-4f1d-adac-57e57ebcdd62 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed3266b5-554a-4066-b28b-d4a107d8a727 162s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 162s __________________________ SessionAPITest.test_create __________________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log setup ------------------------------ 162s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpr4uqqa8t/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpr4uqqa8t/etc/jupyter'] for config files 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr4uqqa8t/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr4uqqa8t/config 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr4uqqa8t/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr4uqqa8t/config 162s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpr4uqqa8t/notebooks 162s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 162s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 162s WARNING NotebookApp:handlers.py:612 Forbidden 162s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.360000ms referer=None 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-8b0922e6-e3a5-44e7-9548-e16df6a2630c.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37419 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36731 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b0922e6-e3a5-44e7-9548-e16df6a2630c, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.300000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0 (::1) 0.420000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b0922e6-e3a5-44e7-9548-e16df6a2630c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b0922e6-e3a5-44e7-9548-e16df6a2630c 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0 (::1) 4.090000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 125, in 162s import selectors 162s File "/usr/lib/python3.14/selectors.py", line 11, in 162s import math 162s File "", line 1371, in _find_and_load 162s File "", line 1333, in _find_and_load_unlocked 162s File "", line 1267, in _find_spec 162s File "", line 988, in find_spec 162s File "", line 682, in spec_from_loader 162s KeyboardInterrupt 162s __________________ SessionAPITest.test_create_console_session __________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c18133ec-c24e-43f8-9d7a-9558c88c32fd 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-c73e3ba8-0931-4216-bf68-b9e7fcdcfba0.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58907 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55235 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: c73e3ba8-0931-4216-bf68-b9e7fcdcfba0, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.000000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b0922e6-e3a5-44e7-9548-e16df6a2630c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b0922e6-e3a5-44e7-9548-e16df6a2630c 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c11e8933-00b7-42a8-b710-1d74f0da05c0 (::1) 0.880000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c73e3ba8-0931-4216-bf68-b9e7fcdcfba0 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c73e3ba8-0931-4216-bf68-b9e7fcdcfba0 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c18133ec-c24e-43f8-9d7a-9558c88c32fd (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c18133ec-c24e-43f8-9d7a-9558c88c32fd', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c18133ec-c24e-43f8-9d7a-9558c88c32fd (::1) 3.860000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s ____________________ SessionAPITest.test_create_deprecated _____________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ed4d1bc8-a8c5-49fa-a273-7ccd54fdb51a 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-b52014bb-6150-4c8e-9a93-1ceca8de6135.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53455 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53261 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: b52014bb-6150-4c8e-9a93-1ceca8de6135, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.830000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c73e3ba8-0931-4216-bf68-b9e7fcdcfba0 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c73e3ba8-0931-4216-bf68-b9e7fcdcfba0 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c18133ec-c24e-43f8-9d7a-9558c88c32fd (::1) 1.590000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b52014bb-6150-4c8e-9a93-1ceca8de6135 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b52014bb-6150-4c8e-9a93-1ceca8de6135 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ed4d1bc8-a8c5-49fa-a273-7ccd54fdb51a (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ed4d1bc8-a8c5-49fa-a273-7ccd54fdb51a', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 851, in get_code 162s File "", line 950, in get_data 162s KeyboardInterrupt 162s ___________________ SessionAPITest.test_create_file_session ____________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/080be876-0b2c-41e2-a7a8-807db7d2f3dc 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43989 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58089 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.090000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b52014bb-6150-4c8e-9a93-1ceca8de6135 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b52014bb-6150-4c8e-9a93-1ceca8de6135 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ed4d1bc8-a8c5-49fa-a273-7ccd54fdb51a (::1) 0.500000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/080be876-0b2c-41e2-a7a8-807db7d2f3dc (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/080be876-0b2c-41e2-a7a8-807db7d2f3dc', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 46, in 162s import locale 162s File "/usr/lib/python3.14/locale.py", line 46, in 162s from _locale import * 162s KeyboardInterrupt 162s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 162s 162s self = 162s 162s def test_create_with_kernel_id(self): 162s # create a new kernel 162s r = self.request('POST', 'api/kernels') 162s r.raise_for_status() 162s kernel = r.json() 162s 162s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 162s self.assertEqual(resp.status_code, 201) 162s newsession = resp.json() 162s self.assertIn('id', newsession) 162s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 162s self.assertEqual(newsession['kernel']['id'], kernel['id']) 162s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 162s 162s sessions = self.sess_api.list().json() 162s > self.assertEqual(sessions, [newsession]) 162s E AssertionError: Lists differ: [{'id': '080be876-0b2c-41e2-a7a8-807db7d2f3dc', 'pa[552 chars]ne}}] != [{'id': '09529155-adf0-4332-b027-0e384774d924', 'pa[278 chars]ne}}] 162s E 162s E First differing element 0: 162s E {'id': '080be876-0b2c-41e2-a7a8-807db7d2f3dc', 'pa[217 chars]: 0}} 162s E {'id': '09529155-adf0-4332-b027-0e384774d924', 'pa[277 chars]one}} 162s E 162s E First list contains 1 additional elements. 162s E First extra element 1: 162s E {'id': '09529155-adf0-4332-b027-0e384774d924', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8e07f24a-c5f5-4ed0-adab-45f4d6c242e2', 'name': 'python3', 'last_activity': '2026-01-24T09:58:30.679287Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 162s E 162s E Diff is 830 characters long. Set self.maxDiff to None to see it. 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-8e07f24a-c5f5-4ed0-adab-45f4d6c242e2.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40235 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44997 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.910000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.480000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.560000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4e0eb02-6231-43ce-ae56-e39cb9d7ec2e 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/080be876-0b2c-41e2-a7a8-807db7d2f3dc (::1) 1.270000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e07f24a-c5f5-4ed0-adab-45f4d6c242e2 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/09529155-adf0-4332-b027-0e384774d924 (::1) 3.800000ms referer=None 162s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 162s 162s self = 162s 162s def test_modify_kernel_id(self): 162s before = self.sess_api.create('foo/nb1.ipynb').json() 162s sid = before['id'] 162s 162s # create a new kernel 162s r = self.request('POST', 'api/kernels') 162s r.raise_for_status() 162s kernel = r.json() 162s 162s # Attach our session to the existing kernel 162s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 162s return self._req('PATCH', id, body) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 162s import asyncio 162s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 162s from .base_events import * 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-ac36137f-29a5-46ae-b1a2-af8cc432c247.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47639 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34077 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac36137f-29a5-46ae-b1a2-af8cc432c247, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.230000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42819 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38479 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.760000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac36137f-29a5-46ae-b1a2-af8cc432c247 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac36137f-29a5-46ae-b1a2-af8cc432c247 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 162s km.shutdown_kernel(before['kernel']['id']) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 8.070000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 6.810000ms referer=None 162s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 162s 162s self = 162s 162s def test_modify_kernel_name(self): 162s before = self.sess_api.create('foo/nb1.ipynb').json() 162s sid = before['id'] 162s 162s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 162s self.assertEqual(after['id'], sid) 162s self.assertEqual(after['path'], before['path']) 162s self.assertEqual(after['type'], before['type']) 162s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 162s 162s # check kernel list, to be sure previous kernel was cleaned up 162s r = self.request('GET', 'api/kernels') 162s r.raise_for_status() 162s kernel_list = r.json() 162s after['kernel'].pop('last_activity') 162s [ k.pop('last_activity') for k in kernel_list ] 162s > self.assertEqual(kernel_list, [after['kernel']]) 162s E AssertionError: Lists differ: [{'id': 'ac36137f-29a5-46ae-b1a2-af8cc432c247', 'n[177 chars]: 0}] != [{'id': 'd700b15f-0c1b-4b17-9f5a-fda80fb87c04', 'n[61 chars]: 0}] 162s E 162s E First differing element 0: 162s E {'id': 'ac36137f-29a5-46ae-b1a2-af8cc432c247', 'n[60 chars]': 0} 162s E {'id': 'd700b15f-0c1b-4b17-9f5a-fda80fb87c04', 'n[60 chars]': 0} 162s E 162s E First list contains 1 additional elements. 162s E First extra element 1: 162s E {'id': 'd700b15f-0c1b-4b17-9f5a-fda80fb87c04', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 162s E 162s E [{'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': 'ac36137f-29a5-46ae-b1a2-af8cc432c247', 162s E - 'name': 'python3'}, 162s E - {'connections': 0, 162s E 'execution_state': 'starting', 162s E 'id': 'd700b15f-0c1b-4b17-9f5a-fda80fb87c04', 162s E 'name': 'python3'}] 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.550000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-d700b15f-0c1b-4b17-9f5a-fda80fb87c04.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55553 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39887 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: d700b15f-0c1b-4b17-9f5a-fda80fb87c04, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5b6d0c-4c8e-4f65-b30b-6ea1540e5278 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 14.790000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d700b15f-0c1b-4b17-9f5a-fda80fb87c04 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d700b15f-0c1b-4b17-9f5a-fda80fb87c04 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c0e1a5a5-e742-4050-9e0e-16f3a2577234 (::1) 5.400000ms referer=None 162s __________________ SessionAPITest.test_modify_path_deprecated __________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-27df06d5-7a01-4d9c-823e-6d9649b55269.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50829 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41481 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27df06d5-7a01-4d9c-823e-6d9649b55269, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.500000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f (::1) 1.340000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27df06d5-7a01-4d9c-823e-6d9649b55269 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27df06d5-7a01-4d9c-823e-6d9649b55269 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f (::1) 5.340000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 51, in 162s import threading 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s _______________________ SessionAPITest.test_modify_type ________________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17adfb8e-4187-4250-bbba-182449104ad6 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr4uqqa8t/runtime/kernel-76fbadd2-207c-482f-b351-a995a7beaed3.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43685 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37807 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76fbadd2-207c-482f-b351-a995a7beaed3, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr4uqqa8t/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.780000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/17adfb8e-4187-4250-bbba-182449104ad6 (::1) 1.210000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27df06d5-7a01-4d9c-823e-6d9649b55269 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27df06d5-7a01-4d9c-823e-6d9649b55269 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5ea22dc9-a1f1-42ce-b5be-a372f58d239f (::1) 0.550000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76fbadd2-207c-482f-b351-a995a7beaed3 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76fbadd2-207c-482f-b351-a995a7beaed3 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17adfb8e-4187-4250-bbba-182449104ad6 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17adfb8e-4187-4250-bbba-182449104ad6', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 162s yielded = self.gen.send(value) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 162s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 162s stopper = ensure_async(km.shutdown_kernel(now, restart)) 162s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 162s return _runner_map[name].run(inner) 162s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 162s return fut.result(None) 162s ~~~~~~~~~~^^^^^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 162s return self.__get_result() 162s ~~~~~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 162s raise self._exception 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 51, in 162s import threading 162s File "/usr/lib/python3.14/threading.py", line 9, in 162s from _weakrefset import WeakSet 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s ---------------------------- Captured log teardown ----------------------------- 162s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76fbadd2-207c-482f-b351-a995a7beaed3 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac36137f-29a5-46ae-b1a2-af8cc432c247 162s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 162s _______________________ AsyncSessionAPITest.test_create ________________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log setup ------------------------------ 162s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpan8d5460/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpan8d5460/etc/jupyter'] for config files 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpan8d5460/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpan8d5460/config 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpan8d5460/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 162s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpan8d5460/config 162s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpan8d5460/notebooks 162s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 162s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 162s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 162s WARNING NotebookApp:handlers.py:612 Forbidden 162s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.310000ms referer=None 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-5636b6b5-5a47-4fc2-81a1-b0ce9208ade9.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43775 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57599 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 K/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 162s gc.collect() 162s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 162s ernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.070000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0 (::1) 1.170000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0 (::1) 3.700000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 129, in 162s class SubprocessError(Exception): pass 162s KeyboardInterrupt 162s _______________ AsyncSessionAPITest.test_create_console_session ________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/19b380b4-4923-48c1-bbbf-1f974619bf5f 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-74792a21-7c19-46d5-8841-baaff70a48f1.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49623 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59979 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74792a21-7c19-46d5-8841-baaff70a48f1, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.950000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/16e8e676-91ba-4daf-8394-fc7c0880dae0 (::1) 0.490000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74792a21-7c19-46d5-8841-baaff70a48f1 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74792a21-7c19-46d5-8841-baaff70a48f1 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/19b380b4-4923-48c1-bbbf-1f974619bf5f (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/19b380b4-4923-48c1-bbbf-1f974619bf5f', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/19b380b4-4923-48c1-bbbf-1f974619bf5f (::1) 3.750000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 46, in 162s import locale 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7cb39c3a-5526-444c-b22f-dcc925a3eb98 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-00e2dbf9-0ef2-4475-add0-17f3dbd44f59.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60727 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42603 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00e2dbf9-0ef2-4475-add0-17f3dbd44f59, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.910000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74792a21-7c19-46d5-8841-baaff70a48f1 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74792a21-7c19-46d5-8841-baaff70a48f1 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/19b380b4-4923-48c1-bbbf-1f974619bf5f (::1) 1.200000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00e2dbf9-0ef2-4475-add0-17f3dbd44f59 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00e2dbf9-0ef2-4475-add0-17f3dbd44f59 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7cb39c3a-5526-444c-b22f-dcc925a3eb98 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7cb39c3a-5526-444c-b22f-dcc925a3eb98', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 46, in 162s import locale 162s File "/usr/lib/python3.14/locale.py", line 46, in 162s from _locale import * 162s KeyboardInterrupt 162s _________________ AsyncSessionAPITest.test_create_file_session _________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-32dd2950-fbed-41e5-97f1-9f237fe8e2f5.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45917 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44465 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32dd2950-fbed-41e5-97f1-9f237fe8e2f5, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.410000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.280000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00e2dbf9-0ef2-4475-add0-17f3dbd44f59 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00e2dbf9-0ef2-4475-add0-17f3dbd44f59 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7cb39c3a-5526-444c-b22f-dcc925a3eb98 (::1) 0.530000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72 (::1) 3.880000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 46, in 162s import locale 162s File "/usr/lib/python3.14/locale.py", line 95, in 162s if 'strxfrm' not in globals(): 162s ~~~~~~~^^ 162s KeyboardInterrupt 162s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 162s 162s self = 162s 162s def test_create_with_kernel_id(self): 162s # create a new kernel 162s r = self.request('POST', 'api/kernels') 162s r.raise_for_status() 162s kernel = r.json() 162s 162s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 162s self.assertEqual(resp.status_code, 201) 162s newsession = resp.json() 162s self.assertIn('id', newsession) 162s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 162s self.assertEqual(newsession['kernel']['id'], kernel['id']) 162s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 162s 162s sessions = self.sess_api.list().json() 162s > self.assertEqual(sessions, [newsession]) 162s E AssertionError: Lists differ: [{'id': '344a8a47-f0cd-4f30-98e5-8bcea3726c72', 'p[553 chars]ne}}] != [{'id': 'dce62978-05c4-4f48-9855-32c21eba830f', 'p[279 chars]ne}}] 162s E 162s E First differing element 0: 162s E {'id': '344a8a47-f0cd-4f30-98e5-8bcea3726c72', 'p[218 chars]: 0}} 162s E {'id': 'dce62978-05c4-4f48-9855-32c21eba830f', 'p[278 chars]one}} 162s E 162s E First list contains 1 additional elements. 162s E First extra element 1: 162s E {'id': 'dce62978-05c4-4f48-9855-32c21eba830f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'ae21ab39-80d1-488e-80ab-321a9db5c2c6', 'name': 'python3', 'last_activity': '2026-01-24T09:58:31.314498Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 162s E 162s E Diff is 830 characters long. Set self.maxDiff to None to see it. 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-ae21ab39-80d1-488e-80ab-321a9db5c2c6.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44515 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59723 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae21ab39-80d1-488e-80ab-321a9db5c2c6, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.090000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.700000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/344a8a47-f0cd-4f30-98e5-8bcea3726c72 (::1) 1.360000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae21ab39-80d1-488e-80ab-321a9db5c2c6 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae21ab39-80d1-488e-80ab-321a9db5c2c6 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dce62978-05c4-4f48-9855-32c21eba830f (::1) 3.710000ms referer=None 162s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 162s 162s self = 162s 162s def test_modify_kernel_id(self): 162s before = self.sess_api.create('foo/nb1.ipynb').json() 162s sid = before['id'] 162s 162s # create a new kernel 162s r = self.request('POST', 'api/kernels') 162s r.raise_for_status() 162s kernel = r.json() 162s 162s # Attach our session to the existing kernel 162s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 162s return self._req('PATCH', id, body) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ----------------------------- Captured stderr call ----------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 162s import jupyter_client 162s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 162s from .asynchronous import AsyncKernelClient 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 162s from .client import AsyncKernelClient # noqa 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 162s import zmq.asyncio 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 924, in _load_unlocked 162s File "", line 822, in module_from_spec 162s File "", line 801, in _init_module_attrs 162s File "", line 641, in cached 162s File "", line 372, in _get_cached 162s File "", line 266, in cache_from_source 162s KeyboardInterrupt 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-2d9f579c-97c2-46d1-8ba8-3d2e2104a51d.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46859 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57739 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.190000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-b314192f-de70-4c99-a0d1-0181d426162a.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35751 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41767 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: b314192f-de70-4c99-a0d1-0181d426162a, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.780000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 162s yield maybe_future( 162s km.shutdown_kernel(before['kernel']['id']) 162s ) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 10.370000ms referer=None 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b314192f-de70-4c99-a0d1-0181d426162a 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b314192f-de70-4c99-a0d1-0181d426162a 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 162s 162s self = 162s 162s def test_modify_kernel_name(self): 162s before = self.sess_api.create('foo/nb1.ipynb').json() 162s sid = before['id'] 162s 162s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 162s self.assertEqual(after['id'], sid) 162s self.assertEqual(after['path'], before['path']) 162s self.assertEqual(after['type'], before['type']) 162s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 162s 162s # check kernel list, to be sure previous kernel was cleaned up 162s r = self.request('GET', 'api/kernels') 162s r.raise_for_status() 162s kernel_list = r.json() 162s after['kernel'].pop('last_activity') 162s [ k.pop('last_activity') for k in kernel_list ] 162s > self.assertEqual(kernel_list, [after['kernel']]) 162s E AssertionError: Lists differ: [{'id': '2d9f579c-97c2-46d1-8ba8-3d2e2104a51d', 'n[177 chars]: 0}] != [{'id': '7ca971c5-04d7-48a2-908b-a16de1c18cd3', 'n[61 chars]: 0}] 162s E 162s E First differing element 0: 162s E {'id': '2d9f579c-97c2-46d1-8ba8-3d2e2104a51d', 'n[60 chars]': 0} 162s E {'id': '7ca971c5-04d7-48a2-908b-a16de1c18cd3', 'n[60 chars]': 0} 162s E 162s E First list contains 1 additional elements. 162s E First extra element 1: 162s E {'id': '7ca971c5-04d7-48a2-908b-a16de1c18cd3', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 162s E 162s E [{'connections': 0, 162s E - 'execution_state': 'starting', 162s E - 'id': '2d9f579c-97c2-46d1-8ba8-3d2e2104a51d', 162s E - 'name': 'python3'}, 162s E - {'connections': 0, 162s E 'execution_state': 'starting', 162s E 'id': '7ca971c5-04d7-48a2-908b-a16de1c18cd3', 162s E 'name': 'python3'}] 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-7ca971c5-04d7-48a2-908b-a16de1c18cd3.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44873 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50667 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ca971c5-04d7-48a2-908b-a16de1c18cd3, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b314192f-de70-4c99-a0d1-0181d426162a 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b314192f-de70-4c99-a0d1-0181d426162a 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 14.200000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ca971c5-04d7-48a2-908b-a16de1c18cd3 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ca971c5-04d7-48a2-908b-a16de1c18cd3 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8309144b-59bd-4c5a-baf3-8770e603a924 (::1) 3.700000ms referer=None 162s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-0b091c7e-3aec-423e-8116-e9fc3472a15c.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52899 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48901 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b091c7e-3aec-423e-8116-e9fc3472a15c, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.450000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470 (::1) 0.920000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b091c7e-3aec-423e-8116-e9fc3472a15c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b091c7e-3aec-423e-8116-e9fc3472a15c 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470 (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s ERROR NotebookApp:log.py:55 { 162s "Host": "localhost:12341", 162s "Accept": "*/*", 162s "User-Agent": "python-requests/2.32.5" 162s } 162s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470 (::1) 3.810000ms referer=None 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 46, in 162s import locale 162s File "", line 1371, in _find_and_load 162s File "", line 1342, in _find_and_load_unlocked 162s File "", line 938, in _load_unlocked 162s File "", line 755, in exec_module 162s File "", line 888, in get_code 162s File "", line 511, in _compile_bytecode 162s KeyboardInterrupt 162s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 162s 162s @self.addCleanup 162s def cleanup_sessions(): 162s for session in self.sess_api.list().json(): 162s > self.sess_api.delete(session['id']) 162s 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 162s return self._req('DELETE', id) 162s ^^^^^^^^^^^^^^^^^^^^^^^ 162s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 162s response.raise_for_status() 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s self = 162s 162s def raise_for_status(self): 162s """Raises :class:`HTTPError`, if one occurred.""" 162s 162s http_error_msg = "" 162s if isinstance(self.reason, bytes): 162s # We attempt to decode utf-8 first because some servers 162s # choose to localize their reason strings. If the string 162s # isn't utf-8, we fall back to iso-8859-1 for all other 162s # encodings. (See PR #3538) 162s try: 162s reason = self.reason.decode("utf-8") 162s except UnicodeDecodeError: 162s reason = self.reason.decode("iso-8859-1") 162s else: 162s reason = self.reason 162s 162s if 400 <= self.status_code < 500: 162s http_error_msg = ( 162s f"{self.status_code} Client Error: {reason} for url: {self.url}" 162s ) 162s 162s elif 500 <= self.status_code < 600: 162s http_error_msg = ( 162s f"{self.status_code} Server Error: {reason} for url: {self.url}" 162s ) 162s 162s if http_error_msg: 162s > raise HTTPError(http_error_msg, response=self) 162s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d087f0d6-c3ff-4c16-b248-f26987a9edcf 162s 162s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 162s ------------------------------ Captured log call ------------------------------- 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 162s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpan8d5460/runtime/kernel-97b3c9fb-10cf-46fb-90e4-df85ffdbda1f.json'] 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41893 162s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55153 162s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97b3c9fb-10cf-46fb-90e4-df85ffdbda1f, name: python3 162s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpan8d5460/notebooks/foo'} 162s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.040000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d087f0d6-c3ff-4c16-b248-f26987a9edcf (::1) 0.590000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b091c7e-3aec-423e-8116-e9fc3472a15c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b091c7e-3aec-423e-8116-e9fc3472a15c 162s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/51535798-5401-457e-9a6f-3b40bfd46470 (::1) 1.140000ms 162s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 162s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97b3c9fb-10cf-46fb-90e4-df85ffdbda1f 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97b3c9fb-10cf-46fb-90e4-df85ffdbda1f 162s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d087f0d6-c3ff-4c16-b248-f26987a9edcf (::1) 162s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d087f0d6-c3ff-4c16-b248-f26987a9edcf', version='HTTP/1.1', remote_ip='::1') 162s Traceback (most recent call last): 162s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 162s result = await result 162s ^^^^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 162s future.result() 162s ~~~~~~~~~~~~~^^ 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 162s yield maybe_future(sm.delete_session(session_id)) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 162s yielded = self.gen.throw(exc) 162s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 162s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 162s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 162s value = future.result() 162s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 162s raise self._exception.with_traceback(self._exception_tb) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 162s result = coro.send(None) 162s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 162s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 162s raise km.ready.exception() # type: ignore[misc] 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 162s await kernel_awaitable 162s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 162s result = await obj 162s ^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 162s raise e 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 162s out = await method(self, *args, **kwargs) 162s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 162s await self._async_finish_shutdown(restart=restart) 162s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 162s await asyncio.wait_for( 162s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 162s ) 162s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 162s async with timeouts.timeout(timeout): 162s ~~~~~~~~~~~~~~~~^^^^^^^^^ 162s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 162s raise RuntimeError("Timeout should be used inside a task") 162s RuntimeError: Timeout should be used inside a task 162s WARNING NotebookApp:handlers.py:612 Unhandled error 162s --------------------------- Captured stderr teardown --------------------------- 162s Traceback (most recent call last): 162s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 162s return _run_code(code, main_globals, None, 162s "__main__", mod_spec) 162s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 162s exec(code, run_globals) 162s ~~~~^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 162s from ipykernel import kernelapp as app 162s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 162s from .connect import * # noqa: F403 162s ^^^^^^^^^^^^^^^^^^^^^^ 162s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 162s from subprocess import PIPE, Popen 162s File "/usr/lib/python3.14/subprocess.py", line 51, in 162s import threading 162s File "/usr/lib/python3.14/threading.py", line 9, in 162s from _weakrefset import WeakSet 162s File "", line 1368, in _find_and_load 162s File "", line 420, in __enter__ 162s File "", line 446, in _get_module_lock 162s File "", line 232, in __init__ 162s KeyboardInterrupt 162s ---------------------------- Captured log teardown ----------------------------- 162s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5636b6b5-5a47-4fc2-81a1-b0ce9208ade9 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97b3c9fb-10cf-46fb-90e4-df85ffdbda1f 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae21ab39-80d1-488e-80ab-321a9db5c2c6 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b091c7e-3aec-423e-8116-e9fc3472a15c 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74792a21-7c19-46d5-8841-baaff70a48f1 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d9f579c-97c2-46d1-8ba8-3d2e2104a51d 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b314192f-de70-4c99-a0d1-0181d426162a 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ca971c5-04d7-48a2-908b-a16de1c18cd3 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32dd2950-fbed-41e5-97f1-9f237fe8e2f5 162s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00e2dbf9-0ef2-4475-add0-17f3dbd44f59 162s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 162s =============================== warnings summary =============================== 162s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 162s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 162s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 162s return LooseVersion(v) >= LooseVersion(check) 162s 162s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 162s auth/tests/test_login.py: 2 warnings 162s bundler/tests/test_bundler_api.py: 2 warnings 162s services/api/tests/test_api.py: 4 warnings 162s services/config/tests/test_config_api.py: 7 warnings 162s services/contents/tests/test_contents_api.py: 318 warnings 162s services/kernels/tests/test_kernels_api.py: 106 warnings 162s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 162s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 162s services/sessions/tests/test_sessionmanager.py: 9 warnings 162s services/sessions/tests/test_sessions_api.py: 128 warnings 162s terminal/tests/test_terminals_api.py: 50 warnings 162s tests/test_files.py: 2 warnings 162s tests/test_gateway.py: 21 warnings 162s tests/test_notebookapp.py: 8 warnings 162s tests/test_paths.py: 2 warnings 162s tree/tests/test_tree_handler.py: 2 warnings 162s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 162s dt = unaware(*args, **kwargs) 162s 162s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 162s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 162s pytestmark = pytest.mark.integration_tests 162s 162s auth/tests/test_login.py: 3 warnings 162s bundler/tests/test_bundler_api.py: 3 warnings 162s services/api/tests/test_api.py: 3 warnings 162s services/config/tests/test_config_api.py: 3 warnings 162s services/contents/tests/test_contents_api.py: 6 warnings 162s services/kernels/tests/test_kernels_api.py: 12 warnings 162s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 162s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 162s services/sessions/tests/test_sessions_api.py: 6 warnings 162s terminal/tests/test_terminals_api.py: 6 warnings 162s tests/test_files.py: 3 warnings 162s tests/test_gateway.py: 3 warnings 162s tests/test_notebookapp.py: 11 warnings 162s tests/test_paths.py: 3 warnings 162s tree/tests/test_tree_handler.py: 3 warnings 162s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 162s policy = events.get_event_loop_policy() 162s 162s auth/tests/test_login.py: 9 warnings 162s bundler/tests/test_bundler_api.py: 9 warnings 162s services/api/tests/test_api.py: 9 warnings 162s services/config/tests/test_config_api.py: 9 warnings 162s services/contents/tests/test_contents_api.py: 18 warnings 162s services/kernels/tests/test_kernels_api.py: 47 warnings 162s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 162s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 162s services/sessions/tests/test_sessionmanager.py: 18 warnings 162s services/sessions/tests/test_sessions_api.py: 19 warnings 162s terminal/tests/test_terminals_api.py: 18 warnings 162s tests/test_files.py: 9 warnings 162s tests/test_gateway.py: 9 warnings 162s tests/test_notebookapp.py: 28 warnings 162s tests/test_paths.py: 9 warnings 162s tree/tests/test_tree_handler.py: 9 warnings 162s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 162s loop = events.get_event_loop_policy().get_event_loop() 162s 162s bundler/tests/test_bundler_api.py: 6 warnings 162s services/api/tests/test_api.py: 6 warnings 162s services/contents/tests/test_contents_api.py: 806 warnings 162s services/contents/tests/test_largefilemanager.py: 42 warnings 162s services/contents/tests/test_manager.py: 526 warnings 162s tests/test_files.py: 8 warnings 162s tree/tests/test_tree_handler.py: 6 warnings 162s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). 162s dt = unaware(*args, **kwargs) 162s 162s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 162s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 162s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 162s loop.make_current() 162s 162s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 162s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 162s /usr/lib/python3/dist-packages/jupyter_client/kernelspec.py:302: UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).): /tmp/tmpudbe1thm/data/kernels/sample 2 162s d = self.find_kernel_specs() 162s 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 162s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 162s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=7058) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 162s pid, fd = os.forkpty() 162s 162s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 162s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 162s for name, arg in zip(self.fields, fields): 162s Enable tracemalloc to get traceback where the object was allocated. 162s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 162s 162s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 162s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 162s /usr/lib/python3/dist-packages/notebook/tests/test_gateway.py:34: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 162s dt = datetime.utcnow().isoformat() + 'Z' 162s 162s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 162s =========================== short test summary info ============================ 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 162s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 162s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 162s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 162s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 162s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 162s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 162s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 162s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 162s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 162s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 162s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 162s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 162s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 162s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 162s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 162s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 162s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 162s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 162s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 162s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 162s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 162s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2399 warnings, 8 errors in 22.16s = 162s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 162s *** STARTING RUN 2: python3.14 -m pytest --pyargs notebook -rfE --last-failed --last-failed-no-failures none --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 164s ============================= test session starts ============================== 164s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 164s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 164s plugins: typeguard-4.4.4 164s collected 330 items / 303 deselected / 27 selected 164s run-last-failure: rerun previous 27 failures 164s 165s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 166s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 166s 166s ==================================== ERRORS ==================================== 166s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 166s 166s self = 166s 166s def tearDown(self): 166s for k in self.kern_api.list().json(): 166s > self.kern_api.shutdown(k['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ----------------------------- Captured stderr call ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 166s from pathlib import Path 166s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 166s class PureWindowsPath(PurePath): 166s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 166s import ntpath 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 166s import jupyter_client 166s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 166s from .asynchronous import AsyncKernelClient 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 166s from .client import AsyncKernelClient # noqa 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 166s import zmq.asyncio 166s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 166s import asyncio 166s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 166s from .base_events import * 166s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 166s import ssl 166s File "/usr/lib/python3.14/ssl.py", line 100, in 166s import _ssl # if we can't import it, let the error propagate 166s ^^^^^^^^^^^ 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-7f796982-42d5-40c4-b715-64e6de111089.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36647 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42909 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f796982-42d5-40c4-b715-64e6de111089, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.680000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-e7782021-f169-4ebc-9e27-cceef9f7999d.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45341 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35263 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7782021-f169-4ebc-9e27-cceef9f7999d, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.900000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e7782021-f169-4ebc-9e27-cceef9f7999d 166s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d/interrupt (::1) 2.550000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 166s yield maybe_future(km.restart_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 166s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 166s await ensure_async(kernel.restart_kernel(now=now)) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 166s await self._async_shutdown_kernel(now=now, restart=True) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d/restart (::1) 4.880000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f796982-42d5-40c4-b715-64e6de111089 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f796982-42d5-40c4-b715-64e6de111089 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 166s yielded = ctx_run(next, result) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 (::1) 4.900000ms referer=None 166s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 166s 166s self = 166s 166s def tearDown(self): 166s for k in self.kern_api.list().json(): 166s > self.kern_api.shutdown(k['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ----------------------------- Captured stderr call ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 51, in 166s import threading 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-1feda74e-cb20-4f4f-93ea-fa8b479a99d6.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50355 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54721 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.030000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.300000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-220e8f49-550f-4f62-b21f-6685cbea5407.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54917 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43849 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 220e8f49-550f-4f62-b21f-6685cbea5407, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.010000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 220e8f49-550f-4f62-b21f-6685cbea5407 166s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/220e8f49-550f-4f62-b21f-6685cbea5407/interrupt (::1) 0.430000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 166s yield maybe_future(km.restart_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 166s result = coro.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 166s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 166s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 166s yield self # This tells Task to wait for completion. 166s ^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 166s await ensure_async(kernel.restart_kernel(now=now)) 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 166s await self._async_shutdown_kernel(now=now, restart=True) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/220e8f49-550f-4f62-b21f-6685cbea5407/restart (::1) 4.830000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 166s import jupyter_client 166s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 166s from .asynchronous import AsyncKernelClient 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 166s from .client import AsyncKernelClient # noqa 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 166s import zmq.asyncio 166s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 166s import asyncio 166s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 166s from .base_events import * 166s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 166s import concurrent.futures 166s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 166s from concurrent.futures._base import (FIRST_COMPLETED, 166s ...<9 lines>... 166s as_completed) 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 166s import logging 166s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 166s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 166s File "/usr/lib/python3.14/traceback.py", line 12, in 166s import _colorize 166s File "/usr/lib/python3.14/_colorize.py", line 5, in 166s from dataclasses import dataclass, field, Field 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 851, in get_code 166s File "", line 950, in get_data 166s KeyboardInterrupt 166s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-cc479119-d750-41e9-a295-3264881a18dc.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58995 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52039 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc479119-d750-41e9-a295-3264881a18dc, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.700000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.490000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5 (::1) 0.540000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc479119-d750-41e9-a295-3264881a18dc 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc479119-d750-41e9-a295-3264881a18dc 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-d816ffee-21f2-4dc1-83b0-b4c3dce5a616.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57799 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52551 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: d816ffee-21f2-4dc1-83b0-b4c3dce5a616, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.490000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.480000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.600000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1df122b5-f284-4ce2-91eb-3d452700113e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1df122b5-f284-4ce2-91eb-3d452700113e 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6 (::1) 1.280000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 3.650000ms referer=None 166s =================================== FAILURES =================================== 166s ______________________ KernelAPITest.test_default_kernel _______________________ 166s 166s self = 166s 166s def tearDown(self): 166s for k in self.kern_api.list().json(): 166s > self.kern_api.shutdown(k['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/374a94fe-a3fe-4bfb-9e21-7c543f105083 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log setup ------------------------------ 166s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp2a2o25a2/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp2a2o25a2/etc/jupyter'] for config files 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2a2o25a2/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2a2o25a2/config 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2a2o25a2/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2a2o25a2/config 166s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp2a2o25a2/notebooks 166s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 166s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 166s WARNING NotebookApp:handlers.py:612 Forbidden 166s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.550000ms referer=None 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-374a94fe-a3fe-4bfb-9e21-7c543f105083.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39119 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53065 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 374a94fe-a3fe-4bfb-9e21-7c543f105083, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.800000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 374a94fe-a3fe-4bfb-9e21-7c543f105083 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 374a94fe-a3fe-4bfb-9e21-7c543f105083 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/374a94fe-a3fe-4bfb-9e21-7c543f105083 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/374a94fe-a3fe-4bfb-9e21-7c543f105083', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 166s yielded = ctx_run(next, result) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/374a94fe-a3fe-4bfb-9e21-7c543f105083 (::1) 6.070000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 851, in get_code 166s File "", line 951, in get_data 166s KeyboardInterrupt 166s ______________________ KernelAPITest.test_kernel_handler _______________________ 166s 166s self = 166s 166s def test_kernel_handler(self): 166s # GET kernel with given id 166s kid = self.kern_api.start().json()['id'] 166s r = self.kern_api.get(kid) 166s kern1 = r.json() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(kern1, dict) 166s self.assertIn('id', kern1) 166s self.assertEqual(kern1['id'], kid) 166s 166s # Request a bad kernel id and check that a JSON 166s # message is returned! 166s bad_id = '111-111-111-111-111' 166s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 166s self.kern_api.get(bad_id) 166s 166s # DELETE kernel with id 166s > r = self.kern_api.shutdown(kid) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-8256fe12-a686-4559-8d31-f78077836ea9.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56145 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59781 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8256fe12-a686-4559-8d31-f78077836ea9, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.090000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9 (::1) 0.400000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 166s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 166s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.140000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8256fe12-a686-4559-8d31-f78077836ea9 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8256fe12-a686-4559-8d31-f78077836ea9 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 166s yielded = ctx_run(next, result) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9 (::1) 4.370000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 374a94fe-a3fe-4bfb-9e21-7c543f105083 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 374a94fe-a3fe-4bfb-9e21-7c543f105083 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/374a94fe-a3fe-4bfb-9e21-7c543f105083 (::1) 1.170000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8256fe12-a686-4559-8d31-f78077836ea9 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8256fe12-a686-4559-8d31-f78077836ea9 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8256fe12-a686-4559-8d31-f78077836ea9 (::1) 0.420000ms 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 46, in 166s import locale 166s File "/usr/lib/python3.14/locale.py", line 1774, in 166s __all__.append("LC_MESSAGES") 166s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 166s KeyboardInterrupt 166s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 166s 166s self = 166s 166s def test_main_kernel_handler(self): 166s # POST request 166s r = self.kern_api.start() 166s kern1 = r.json() 166s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 166s self.assertEqual(r.status_code, 201) 166s self.assertIsInstance(kern1, dict) 166s 166s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 166s expected_csp = '; '.join([ 166s "frame-ancestors 'self'", 166s 'report-uri ' + report_uri, 166s "default-src 'none'" 166s ]) 166s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 166s 166s # GET request 166s r = self.kern_api.list() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(r.json(), list) 166s self.assertEqual(r.json()[0]['id'], kern1['id']) 166s self.assertEqual(r.json()[0]['name'], kern1['name']) 166s 166s # create another kernel and check that they both are added to the 166s # list of kernels from a GET request 166s kern2 = self.kern_api.start().json() 166s assert isinstance(kern2, dict) 166s r = self.kern_api.list() 166s kernels = r.json() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(kernels, list) 166s self.assertEqual(len(kernels), 2) 166s 166s # Interrupt a kernel 166s r = self.kern_api.interrupt(kern2['id']) 166s self.assertEqual(r.status_code, 204) 166s 166s # Restart a kernel 166s > r = self.kern_api.restart(kern2['id']) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 166s return self._req('POST', url_path_join(id, 'restart')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d/restart 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ----------------------------- Captured stderr call ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 166s from pathlib import Path 166s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 166s class PureWindowsPath(PurePath): 166s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 166s import ntpath 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 166s import jupyter_client 166s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 166s from .asynchronous import AsyncKernelClient 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 166s from .client import AsyncKernelClient # noqa 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 166s import zmq.asyncio 166s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 166s import asyncio 166s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 166s from .base_events import * 166s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 166s import ssl 166s File "/usr/lib/python3.14/ssl.py", line 100, in 166s import _ssl # if we can't import it, let the error propagate 166s ^^^^^^^^^^^ 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-7f796982-42d5-40c4-b715-64e6de111089.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36647 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42909 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f796982-42d5-40c4-b715-64e6de111089, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.680000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2a2o25a2/runtime/kernel-e7782021-f169-4ebc-9e27-cceef9f7999d.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45341 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35263 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7782021-f169-4ebc-9e27-cceef9f7999d, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.900000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e7782021-f169-4ebc-9e27-cceef9f7999d 166s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d/interrupt (::1) 2.550000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 166s yield maybe_future(km.restart_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 166s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 166s await ensure_async(kernel.restart_kernel(now=now)) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 166s await self._async_shutdown_kernel(now=now, restart=True) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d/restart (::1) 4.880000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f796982-42d5-40c4-b715-64e6de111089 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f796982-42d5-40c4-b715-64e6de111089 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 166s yielded = ctx_run(next, result) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 (::1) 4.900000ms referer=None 166s ________________________ KernelAPITest.test_no_kernels _________________________ 166s 166s self = 166s 166s def test_no_kernels(self): 166s """Make sure there are no kernels running at the start""" 166s kernels = self.kern_api.list().json() 166s > self.assertEqual(kernels, []) 166s E AssertionError: Lists differ: [{'id': '7f796982-42d5-40c4-b715-64e6de111[281 chars]: 0}] != [] 166s E 166s E First list contains 2 additional elements. 166s E First extra element 0: 166s E {'id': '7f796982-42d5-40c4-b715-64e6de111089', 'name': 'python3', 'last_activity': '2026-01-24T09:58:41.100553Z', 'execution_state': 'starting', 'connections': 0} 166s E 166s E + [] 166s E - [{'connections': 0, 166s E - 'execution_state': 'starting', 166s E - 'id': '7f796982-42d5-40c4-b715-64e6de111089', 166s E - 'last_activity': '2026-01-24T09:58:41.100553Z', 166s E - 'name': 'python3'}, 166s E - {'connections': 0, 166s E - 'execution_state': 'starting', 166s E - 'id': 'e7782021-f169-4ebc-9e27-cceef9f7999d', 166s E - 'last_activity': '2026-01-24T09:58:41.117235Z', 166s E - 'name': 'python3'}] 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.470000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f796982-42d5-40c4-b715-64e6de111089 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f796982-42d5-40c4-b715-64e6de111089 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7f796982-42d5-40c4-b715-64e6de111089 (::1) 0.510000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7782021-f169-4ebc-9e27-cceef9f7999d 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7782021-f169-4ebc-9e27-cceef9f7999d 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e7782021-f169-4ebc-9e27-cceef9f7999d (::1) 0.530000ms 166s ---------------------------- Captured log teardown ----------------------------- 166s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 166s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 166s _____________________ AsyncKernelAPITest.test_connections ______________________ 166s 166s self = 166s 166s def tearDown(self): 166s for k in self.kern_api.list().json(): 166s > self.kern_api.shutdown(k['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log setup ------------------------------ 166s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1tc6wfvt/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1tc6wfvt/etc/jupyter'] for config files 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1tc6wfvt/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1tc6wfvt/config 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1tc6wfvt/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1tc6wfvt/config 166s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1tc6wfvt/notebooks 166s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 166s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 166s WARNING NotebookApp:handlers.py:612 Forbidden 166s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.290000ms referer=None 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43961 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51517 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.840000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 1.160000ms 166s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e/channels 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 166s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36391 166s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 166s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e) to 5.4 (client). 166s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e/channels (::1) 399.610000ms 166s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e/channels 166s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51517 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36391 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43961 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37133 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36391 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43961 166s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 166s Setting websocket_ping_timeout=30000 166s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 0.460000ms 166s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:handlers.py:579 Websocket closed bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:3c664df1-95fc68049317d3300527f34f 166s INFO NotebookApp:kernelmanager.py:222 Starting buffering for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:3c664df1-95fc68049317d3300527f34f 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:iopub 166s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:iopub 166s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:iopub 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 0.330000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 0.310000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e:3c664df1-95fc68049317d3300527f34f 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 3.500000ms referer=None 166s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 166s 166s self = 166s 166s def tearDown(self): 166s for k in self.kern_api.list().json(): 166s > self.kern_api.shutdown(k['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ff391eff-b924-4f3b-8aec-c564941ad55f 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-ff391eff-b924-4f3b-8aec-c564941ad55f.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60337 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38119 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff391eff-b924-4f3b-8aec-c564941ad55f, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.880000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e (::1) 0.410000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff391eff-b924-4f3b-8aec-c564941ad55f 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff391eff-b924-4f3b-8aec-c564941ad55f 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ff391eff-b924-4f3b-8aec-c564941ad55f (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ff391eff-b924-4f3b-8aec-c564941ad55f', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ff391eff-b924-4f3b-8aec-c564941ad55f (::1) 5.310000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 106, in 166s from .decoder import JSONDecoder, JSONDecodeError 166s File "/usr/lib/python3.14/json/decoder.py", line 54, in 166s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 166s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 166s return _compile(pattern, flags) 166s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 166s p = _compiler.compile(pattern, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 166s p = _parser.parse(p, flags) 166s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 166s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 166s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 166s itemsappend(_parse(source, state, verbose, nested + 1, 166s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s not nested and not items)) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 166s p = _parse_sub(source, state, sub_verbose, nested + 1) 166s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 166s itemsappend(_parse(source, state, verbose, nested + 1, 166s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s not nested and not items)) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_parser.py", line 624, in _parse 166s set = _uniq(set) 166s File "/usr/lib/python3.14/re/_parser.py", line 450, in _uniq 166s return list(dict.fromkeys(items)) 166s ~~~~~~~~~~~~~^^^^^^^ 166s KeyboardInterrupt 166s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 166s 166s self = 166s 166s def test_kernel_handler(self): 166s # GET kernel with given id 166s kid = self.kern_api.start().json()['id'] 166s r = self.kern_api.get(kid) 166s kern1 = r.json() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(kern1, dict) 166s self.assertIn('id', kern1) 166s self.assertEqual(kern1['id'], kid) 166s 166s # Request a bad kernel id and check that a JSON 166s # message is returned! 166s bad_id = '111-111-111-111-111' 166s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 166s self.kern_api.get(bad_id) 166s 166s # DELETE kernel with id 166s > r = self.kern_api.shutdown(kid) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-93ac2455-09a8-44c2-8a5a-3b58772e060a.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48611 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40133 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93ac2455-09a8-44c2-8a5a-3b58772e060a, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.580000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a (::1) 1.380000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 166s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 166s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.970000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93ac2455-09a8-44c2-8a5a-3b58772e060a 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93ac2455-09a8-44c2-8a5a-3b58772e060a 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a (::1) 8.830000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff391eff-b924-4f3b-8aec-c564941ad55f 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff391eff-b924-4f3b-8aec-c564941ad55f 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ff391eff-b924-4f3b-8aec-c564941ad55f (::1) 0.520000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93ac2455-09a8-44c2-8a5a-3b58772e060a 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93ac2455-09a8-44c2-8a5a-3b58772e060a 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/93ac2455-09a8-44c2-8a5a-3b58772e060a (::1) 0.460000ms 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 166s from pathlib import Path 166s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 166s from glob import _StringGlobber, _no_recurse_symlinks 166s File "/usr/lib/python3.14/glob.py", line 5, in 166s import re 166s File "/usr/lib/python3.14/re/__init__.py", line 126, in 166s from . import _compiler, _parser 166s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 166s from . import _parser 166s File "/usr/lib/python3.14/re/_parser.py", line 15, in 166s from ._constants import * 166s File "/usr/lib/python3.14/re/_constants.py", line 78, in 166s OPCODES = _makecodes( 166s # failure=0 success=1 (just because it looks better that way :-) 166s ...<45 lines>... 166s 'MIN_REPEAT', 'MAX_REPEAT', 166s ) 166s File "/usr/lib/python3.14/re/_constants.py", line 73, in _makecodes 166s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 166s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_constants.py", line 60, in __new__ 166s def __new__(cls, value, name): 166s 166s KeyboardInterrupt 166s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 166s 166s self = 166s 166s def test_main_kernel_handler(self): 166s # POST request 166s r = self.kern_api.start() 166s kern1 = r.json() 166s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 166s self.assertEqual(r.status_code, 201) 166s self.assertIsInstance(kern1, dict) 166s 166s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 166s expected_csp = '; '.join([ 166s "frame-ancestors 'self'", 166s 'report-uri ' + report_uri, 166s "default-src 'none'" 166s ]) 166s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 166s 166s # GET request 166s r = self.kern_api.list() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(r.json(), list) 166s self.assertEqual(r.json()[0]['id'], kern1['id']) 166s self.assertEqual(r.json()[0]['name'], kern1['name']) 166s 166s # create another kernel and check that they both are added to the 166s # list of kernels from a GET request 166s kern2 = self.kern_api.start().json() 166s assert isinstance(kern2, dict) 166s r = self.kern_api.list() 166s kernels = r.json() 166s self.assertEqual(r.status_code, 200) 166s assert isinstance(kernels, list) 166s self.assertEqual(len(kernels), 2) 166s 166s # Interrupt a kernel 166s r = self.kern_api.interrupt(kern2['id']) 166s self.assertEqual(r.status_code, 204) 166s 166s # Restart a kernel 166s > r = self.kern_api.restart(kern2['id']) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 166s return self._req('POST', url_path_join(id, 'restart')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/220e8f49-550f-4f62-b21f-6685cbea5407/restart 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ----------------------------- Captured stderr call ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 51, in 166s import threading 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-1feda74e-cb20-4f4f-93ea-fa8b479a99d6.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50355 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54721 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.030000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.300000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tc6wfvt/runtime/kernel-220e8f49-550f-4f62-b21f-6685cbea5407.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54917 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43849 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 220e8f49-550f-4f62-b21f-6685cbea5407, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.010000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 220e8f49-550f-4f62-b21f-6685cbea5407 166s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/220e8f49-550f-4f62-b21f-6685cbea5407/interrupt (::1) 0.430000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 166s yield maybe_future(km.restart_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 166s result = coro.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 166s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 166s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 166s yield self # This tells Task to wait for completion. 166s ^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 166s await ensure_async(kernel.restart_kernel(now=now)) 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 166s await self._async_shutdown_kernel(now=now, restart=True) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/220e8f49-550f-4f62-b21f-6685cbea5407/restart (::1) 4.830000ms referer=None 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 166s yield maybe_future(km.shutdown_kernel(kernel_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 166s 166s self = 166s 166s def test_no_kernels(self): 166s """Make sure there are no kernels running at the start""" 166s kernels = self.kern_api.list().json() 166s > self.assertEqual(kernels, []) 166s E AssertionError: Lists differ: [{'id': '1feda74e-cb20-4f4f-93ea-fa8b479a9[281 chars]: 0}] != [] 166s E 166s E First list contains 2 additional elements. 166s E First extra element 0: 166s E {'id': '1feda74e-cb20-4f4f-93ea-fa8b479a99d6', 'name': 'python3', 'last_activity': '2026-01-24T09:58:41.767312Z', 'execution_state': 'starting', 'connections': 0} 166s E 166s E + [] 166s E - [{'connections': 0, 166s E - 'execution_state': 'starting', 166s E - 'id': '1feda74e-cb20-4f4f-93ea-fa8b479a99d6', 166s E - 'last_activity': '2026-01-24T09:58:41.767312Z', 166s E - 'name': 'python3'}, 166s E - {'connections': 0, 166s E - 'execution_state': 'starting', 166s E - 'id': '220e8f49-550f-4f62-b21f-6685cbea5407', 166s E - 'last_activity': '2026-01-24T09:58:41.788844Z', 166s E - 'name': 'python3'}] 166s 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1feda74e-cb20-4f4f-93ea-fa8b479a99d6 (::1) 0.380000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 220e8f49-550f-4f62-b21f-6685cbea5407 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 220e8f49-550f-4f62-b21f-6685cbea5407 166s ---------------------------- Captured log teardown ----------------------------- 166s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1feda74e-cb20-4f4f-93ea-fa8b479a99d6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bd9bb25d-d8fb-489e-8e1c-3b85602f3f9e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff391eff-b924-4f3b-8aec-c564941ad55f 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93ac2455-09a8-44c2-8a5a-3b58772e060a 166s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 166s __________________________ SessionAPITest.test_create __________________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log setup ------------------------------ 166s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpmcno6u3k/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpmcno6u3k/etc/jupyter'] for config files 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmcno6u3k/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmcno6u3k/config 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmcno6u3k/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmcno6u3k/config 166s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpmcno6u3k/notebooks 166s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 166s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 166s WARNING NotebookApp:handlers.py:612 Forbidden 166s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.300000ms referer=None 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-4ce55d56-8ac3-4430-97e8-3e3f24050bf4.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48087 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50687 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4ce55d56-8ac3-4430-97e8-3e3f24050bf4, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmcno6u3k/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.390000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4 (::1) 1.220000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ce55d56-8ac3-4430-97e8-3e3f24050bf4 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ce55d56-8ac3-4430-97e8-3e3f24050bf4 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4 (::1) 4.080000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 52, in 166s import warnings 166s File "/usr/lib/python3.14/warnings.py", line 15, in 166s from _py_warnings import ( 166s ...<44 lines>... 166s ) 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s __________________ SessionAPITest.test_create_console_session __________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/558350b6-039f-4bdb-b6c7-3e022dcc6d7b 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-f78a2f39-a32c-4833-be1a-015419c1c6a6.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36815 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57755 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: f78a2f39-a32c-4833-be1a-015419c1c6a6, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmcno6u3k/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.050000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ce55d56-8ac3-4430-97e8-3e3f24050bf4 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ce55d56-8ac3-4430-97e8-3e3f24050bf4 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dafbb880-24a4-4da3-bdd2-a3a075a843a4 (::1) 1.360000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f78a2f39-a32c-4833-be1a-015419c1c6a6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f78a2f39-a32c-4833-be1a-015419c1c6a6 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/558350b6-039f-4bdb-b6c7-3e022dcc6d7b (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/558350b6-039f-4bdb-b6c7-3e022dcc6d7b', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 49, in 166s import signal 166s File "/usr/lib/python3.14/signal.py", line 7, in 166s _IntEnum._convert_( 166s ~~~~~~~~~~~~~~~~~~^ 166s 'Signals', __name__, 166s ^^^^^^^^^^^^^^^^^^^^ 166s ...<2 lines>... 166s and (name.startswith('SIG') and not name.startswith('SIG_')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s or name.startswith('CTRL_')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 166s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 166s File "/usr/lib/python3.14/enum.py", line 1869, in convert_class 166s member = new_member(enum_class, *value) 166s KeyboardInterrupt 166s ____________________ SessionAPITest.test_create_deprecated _____________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e5891b85-ecbb-4d22-841d-d501ffbc1615 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-15c4f48c-bc65-457b-a12b-e77d980f75ec.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38835 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47821 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 15c4f48c-bc65-457b-a12b-e77d980f75ec, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmcno6u3k/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.320000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f78a2f39-a32c-4833-be1a-015419c1c6a6 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f78a2f39-a32c-4833-be1a-015419c1c6a6 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/558350b6-039f-4bdb-b6c7-3e022dcc6d7b (::1) 0.520000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15c4f48c-bc65-457b-a12b-e77d980f75ec 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15c4f48c-bc65-457b-a12b-e77d980f75ec 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e5891b85-ecbb-4d22-841d-d501ffbc1615 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e5891b85-ecbb-4d22-841d-d501ffbc1615', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s ___________________ SessionAPITest.test_create_file_session ____________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-f330af0f-0951-4c42-8ea5-8507bd78c6f0.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36703 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56105 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: f330af0f-0951-4c42-8ea5-8507bd78c6f0, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmcno6u3k/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.120000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15c4f48c-bc65-457b-a12b-e77d980f75ec 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15c4f48c-bc65-457b-a12b-e77d980f75ec 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e5891b85-ecbb-4d22-841d-d501ffbc1615 (::1) 0.530000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 46, in 166s import locale 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 924, in _load_unlocked 166s File "", line 822, in module_from_spec 166s File "", line 736, in _init_module_attrs 166s KeyboardInterrupt 166s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 166s 166s self = 166s 166s def test_create_with_kernel_id(self): 166s # create a new kernel 166s r = self.request('POST', 'api/kernels') 166s r.raise_for_status() 166s kernel = r.json() 166s 166s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 166s self.assertEqual(resp.status_code, 201) 166s newsession = resp.json() 166s self.assertIn('id', newsession) 166s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 166s self.assertEqual(newsession['kernel']['id'], kernel['id']) 166s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 166s 166s sessions = self.sess_api.list().json() 166s > self.assertEqual(sessions, [newsession]) 166s E AssertionError: Lists differ: [{'id': 'cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5', 'p[553 chars]ne}}] != [{'id': '0e67b70e-d51b-42f7-bf92-6eeae89931c4', 'p[279 chars]ne}}] 166s E 166s E First differing element 0: 166s E {'id': 'cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5', 'p[218 chars]: 0}} 166s E {'id': '0e67b70e-d51b-42f7-bf92-6eeae89931c4', 'p[278 chars]one}} 166s E 166s E First list contains 1 additional elements. 166s E First extra element 1: 166s E {'id': '0e67b70e-d51b-42f7-bf92-6eeae89931c4', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'cc479119-d750-41e9-a295-3264881a18dc', 'name': 'python3', 'last_activity': '2026-01-24T09:58:42.056681Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 166s E 166s E Diff is 830 characters long. Set self.maxDiff to None to see it. 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-cc479119-d750-41e9-a295-3264881a18dc.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58995 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52039 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc479119-d750-41e9-a295-3264881a18dc, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.700000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.490000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f330af0f-0951-4c42-8ea5-8507bd78c6f0 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cf8ae28d-c567-49c5-bb1b-aaf5e70b40e5 (::1) 0.540000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc479119-d750-41e9-a295-3264881a18dc 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc479119-d750-41e9-a295-3264881a18dc 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ---------------------------- Captured stderr setup ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 166s from typing import TYPE_CHECKING, Any 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 513, in _compile_bytecode 166s File "", line 494, in _verbose_message 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38399 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36731 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.590000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc479119-d750-41e9-a295-3264881a18dc 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc479119-d750-41e9-a295-3264881a18dc 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 1.450000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.010000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.340000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 3.710000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 51, in 166s import threading 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 851, in get_code 166s File "", line 950, in get_data 166s KeyboardInterrupt 166s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.290000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-280f16e5-8d34-4c40-a01b-4f6dd4769ddd.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40083 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40311 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 280f16e5-8d34-4c40-a01b-4f6dd4769ddd, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpmcno6u3k/notebook/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 166s gc.collect() 166s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 166s s/foo'} 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ee012b6-6d77-4fce-8f8b-30e2ecc80a9e 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 13.140000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 280f16e5-8d34-4c40-a01b-4f6dd4769ddd 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 280f16e5-8d34-4c40-a01b-4f6dd4769ddd 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0e67b70e-d51b-42f7-bf92-6eeae89931c4 (::1) 3.800000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 46, in 166s import locale 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 888, in get_code 166s File "", line 511, in _compile_bytecode 166s KeyboardInterrupt 166s _______________________ SessionAPITest.test_modify_type ________________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/888d82b2-2336-4dd9-af02-653879f8dd69 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcno6u3k/runtime/kernel-c1dcf5e3-2bd8-4114-ac46-b5e137d24062.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36765 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60047 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: c1dcf5e3-2bd8-4114-ac46-b5e137d24062, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmcno6u3k/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.450000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/888d82b2-2336-4dd9-af02-653879f8dd69 (::1) 1.340000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c1dcf5e3-2bd8-4114-ac46-b5e137d24062 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1dcf5e3-2bd8-4114-ac46-b5e137d24062 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/888d82b2-2336-4dd9-af02-653879f8dd69 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/888d82b2-2336-4dd9-af02-653879f8dd69', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 166s yielded = self.gen.send(value) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 166s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 166s stopper = ensure_async(km.shutdown_kernel(now, restart)) 166s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 166s return _runner_map[name].run(inner) 166s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 166s return fut.result(None) 166s ~~~~~~~~~~^^^^^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 166s return self.__get_result() 166s ~~~~~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 166s raise self._exception 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/888d82b2-2336-4dd9-af02-653879f8dd69 (::1) 3.740000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 107, in 166s from .encoder import JSONEncoder 166s File "/usr/lib/python3.14/json/encoder.py", line 74, in 166s class JSONEncoder(object): 166s ...<188 lines>... 166s return _iterencode(o, 0) 166s KeyboardInterrupt 166s ---------------------------- Captured log teardown ----------------------------- 166s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1dcf5e3-2bd8-4114-ac46-b5e137d24062 166s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 166s _______________________ AsyncSessionAPITest.test_create ________________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log setup ------------------------------ 166s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmph82vo1fa/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmph82vo1fa/etc/jupyter'] for config files 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmph82vo1fa/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmph82vo1fa/config 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmph82vo1fa/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 166s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmph82vo1fa/config 166s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmph82vo1fa/notebooks 166s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 166s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 166s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 166s WARNING NotebookApp:handlers.py:612 Forbidden 166s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-8f888e4b-4bba-4f53-8e80-e8cc6862b98b.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59485 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54911 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f888e4b-4bba-4f53-8e80-e8cc6862b98b, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.190000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271 (::1) 1.160000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f888e4b-4bba-4f53-8e80-e8cc6862b98b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f888e4b-4bba-4f53-8e80-e8cc6862b98b 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271 (::1) 3.790000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 125, in 166s import selectors 166s File "/usr/lib/python3.14/selectors.py", line 11, in 166s import math 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 1000, in exec_module 166s KeyboardInterrupt 166s _______________ AsyncSessionAPITest.test_create_console_session ________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/96b6a685-2199-4016-90d7-366df86dec18 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-357ea574-61b8-45be-8cf7-d27bb8eb39a0.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56521 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51443 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 357ea574-61b8-45be-8cf7-d27bb8eb39a0, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.770000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f888e4b-4bba-4f53-8e80-e8cc6862b98b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f888e4b-4bba-4f53-8e80-e8cc6862b98b 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/49c4aac0-1738-4054-813f-8dae1da21271 (::1) 1.280000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 357ea574-61b8-45be-8cf7-d27bb8eb39a0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 357ea574-61b8-45be-8cf7-d27bb8eb39a0 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/96b6a685-2199-4016-90d7-366df86dec18 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/96b6a685-2199-4016-90d7-366df86dec18', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/96b6a685-2199-4016-90d7-366df86dec18 (::1) 3.670000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 107, in 166s from .encoder import JSONEncoder 166s File "/usr/lib/python3.14/json/encoder.py", line 19, in 166s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 166s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 166s return _compile(pattern, flags) 166s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 166s p = _compiler.compile(pattern, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 166s code = _code(p, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 166s _compile_info(code, p, flags) 166s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_compiler.py", line 544, in _compile_info 166s charset = _get_charset_prefix(pattern, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 493, in _get_charset_prefix 166s iscased = _get_iscased(flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 442, in _get_iscased 166s def _get_iscased(flags): 166s 166s KeyboardInterrupt 166s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6f4a6f62-e45f-4320-b805-903c226f1ea1 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34451 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56785 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.910000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 357ea574-61b8-45be-8cf7-d27bb8eb39a0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 357ea574-61b8-45be-8cf7-d27bb8eb39a0 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/96b6a685-2199-4016-90d7-366df86dec18 (::1) 0.770000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6f4a6f62-e45f-4320-b805-903c226f1ea1 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6f4a6f62-e45f-4320-b805-903c226f1ea1', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 107, in 166s from .encoder import JSONEncoder 166s File "/usr/lib/python3.14/json/encoder.py", line 19, in 166s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 166s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 166s return _compile(pattern, flags) 166s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 166s p = _compiler.compile(pattern, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 166s p = _parser.parse(p, flags) 166s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 166s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 166s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 166s itemsappend(_parse(source, state, verbose, nested + 1, 166s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s not nested and not items)) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_parser.py", line 710, in _parse 166s start = source.tell() - 1 166s ~~~~~~~~~~~^^ 166s File "/usr/lib/python3.14/re/_parser.py", line 293, in tell 166s def tell(self): 166s 166s KeyboardInterrupt 166s _________________ AsyncSessionAPITest.test_create_file_session _________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-1df122b5-f284-4ce2-91eb-3d452700113e.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60807 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55597 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1df122b5-f284-4ce2-91eb-3d452700113e, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.520000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6f4a6f62-e45f-4320-b805-903c226f1ea1 (::1) 1.200000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1df122b5-f284-4ce2-91eb-3d452700113e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1df122b5-f284-4ce2-91eb-3d452700113e 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6 (::1) 3.600000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 107, in 166s from .encoder import JSONEncoder 166s File "", line 1371, in _find_and_load 166s File "", line 1333, in _find_and_load_unlocked 166s File "", line 1267, in _find_spec 166s File "", line 1292, in find_spec 166s File "", line 1266, in _get_spec 166s File "", line 1365, in find_spec 166s File "", line 152, in _path_stat 166s KeyboardInterrupt 166s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 166s 166s self = 166s 166s def test_create_with_kernel_id(self): 166s # create a new kernel 166s r = self.request('POST', 'api/kernels') 166s r.raise_for_status() 166s kernel = r.json() 166s 166s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 166s self.assertEqual(resp.status_code, 201) 166s newsession = resp.json() 166s self.assertIn('id', newsession) 166s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 166s self.assertEqual(newsession['kernel']['id'], kernel['id']) 166s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 166s 166s sessions = self.sess_api.list().json() 166s > self.assertEqual(sessions, [newsession]) 166s E AssertionError: Lists differ: [{'id': '07be58ce-2062-485a-9a60-7304506e44e6', 'p[553 chars]ne}}] != [{'id': '55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', 'p[279 chars]ne}}] 166s E 166s E First differing element 0: 166s E {'id': '07be58ce-2062-485a-9a60-7304506e44e6', 'p[218 chars]: 0}} 166s E {'id': '55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', 'p[278 chars]one}} 166s E 166s E First list contains 1 additional elements. 166s E First extra element 1: 166s E {'id': '55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'd816ffee-21f2-4dc1-83b0-b4c3dce5a616', 'name': 'python3', 'last_activity': '2026-01-24T09:58:42.472792Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 166s E 166s E Diff is 830 characters long. Set self.maxDiff to None to see it. 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-d816ffee-21f2-4dc1-83b0-b4c3dce5a616.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57799 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52551 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: d816ffee-21f2-4dc1-83b0-b4c3dce5a616, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.490000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.480000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.600000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1df122b5-f284-4ce2-91eb-3d452700113e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1df122b5-f284-4ce2-91eb-3d452700113e 166s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/07be58ce-2062-485a-9a60-7304506e44e6 (::1) 1.280000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 3.650000ms referer=None 166s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ---------------------------- Captured stderr setup ----------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 166s from typing import TYPE_CHECKING, Any 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 851, in get_code 166s File "", line 951, in get_data 166s KeyboardInterrupt 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.470000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-4dbc4ec7-da53-4172-bef4-8dd0a76ed37b.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48445 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43985 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.610000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 1.360000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.110000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 166s from subprocess import PIPE, Popen 166s File "/usr/lib/python3.14/subprocess.py", line 49, in 166s import signal 166s File "/usr/lib/python3.14/signal.py", line 7, in 166s _IntEnum._convert_( 166s ~~~~~~~~~~~~~~~~~~^ 166s 'Signals', __name__, 166s ^^^^^^^^^^^^^^^^^^^^ 166s ...<2 lines>... 166s and (name.startswith('SIG') and not name.startswith('SIG_')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s or name.startswith('CTRL_')) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 166s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 166s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 166s setattr(enum_class, name, member) 166s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 166s def __setattr__(cls, name, value): 166s 166s KeyboardInterrupt 166s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-cc218982-78c9-4d65-9cc8-c48cabbcbd22.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43749 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42935 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc218982-78c9-4d65-9cc8-c48cabbcbd22, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 13.850000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.350000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc218982-78c9-4d65-9cc8-c48cabbcbd22 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc218982-78c9-4d65-9cc8-c48cabbcbd22 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s ERROR NotebookApp:log.py:55 { 166s "Host": "localhost:12341", 166s "Accept": "*/*", 166s "User-Agent": "python-requests/2.32.5" 166s } 166s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55d14c22-d27e-4136-a4c6-9d3a1f8c8fa7 (::1) 3.580000ms referer=None 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 107, in 166s from .encoder import JSONEncoder 166s File "", line 1371, in _find_and_load 166s File "", line 1342, in _find_and_load_unlocked 166s File "", line 938, in _load_unlocked 166s File "", line 755, in exec_module 166s File "", line 860, in get_code 166s File "", line 449, in _classify_pyc 166s File "", line 92, in _unpack_uint32 166s KeyboardInterrupt 166s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 166s 166s @self.addCleanup 166s def cleanup_sessions(): 166s for session in self.sess_api.list().json(): 166s > self.sess_api.delete(session['id']) 166s 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 166s return self._req('DELETE', id) 166s ^^^^^^^^^^^^^^^^^^^^^^^ 166s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 166s response.raise_for_status() 166s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 166s 166s self = 166s 166s def raise_for_status(self): 166s """Raises :class:`HTTPError`, if one occurred.""" 166s 166s http_error_msg = "" 166s if isinstance(self.reason, bytes): 166s # We attempt to decode utf-8 first because some servers 166s # choose to localize their reason strings. If the string 166s # isn't utf-8, we fall back to iso-8859-1 for all other 166s # encodings. (See PR #3538) 166s try: 166s reason = self.reason.decode("utf-8") 166s except UnicodeDecodeError: 166s reason = self.reason.decode("iso-8859-1") 166s else: 166s reason = self.reason 166s 166s if 400 <= self.status_code < 500: 166s http_error_msg = ( 166s f"{self.status_code} Client Error: {reason} for url: {self.url}" 166s ) 166s 166s elif 500 <= self.status_code < 600: 166s http_error_msg = ( 166s f"{self.status_code} Server Error: {reason} for url: {self.url}" 166s ) 166s 166s if http_error_msg: 166s > raise HTTPError(http_error_msg, response=self) 166s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a49e76e-5dde-4755-9646-4b811755b7c4 166s 166s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 166s ------------------------------ Captured log call ------------------------------- 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 166s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmph82vo1fa/runtime/kernel-f267027b-fcd6-47b8-96a7-51f52b75f90b.json'] 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35043 166s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47487 166s INFO NotebookApp:kernelmanager.py:179 Kernel started: f267027b-fcd6-47b8-96a7-51f52b75f90b, name: python3 166s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmph82vo1fa/notebooks/foo'} 166s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.220000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1a49e76e-5dde-4755-9646-4b811755b7c4 (::1) 0.490000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 166s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 166s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f267027b-fcd6-47b8-96a7-51f52b75f90b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f267027b-fcd6-47b8-96a7-51f52b75f90b 166s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a49e76e-5dde-4755-9646-4b811755b7c4 (::1) 166s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a49e76e-5dde-4755-9646-4b811755b7c4', version='HTTP/1.1', remote_ip='::1') 166s Traceback (most recent call last): 166s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 166s result = await result 166s ^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 166s future.result() 166s ~~~~~~~~~~~~~^^ 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 166s yield maybe_future(sm.delete_session(session_id)) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 166s yielded = self.gen.throw(exc) 166s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 166s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 166s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 166s value = future.result() 166s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 166s raise self._exception.with_traceback(self._exception_tb) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 166s result = coro.send(None) 166s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 166s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 166s raise km.ready.exception() # type: ignore[misc] 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 166s await kernel_awaitable 166s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 166s result = await obj 166s ^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 166s raise e 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 166s out = await method(self, *args, **kwargs) 166s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 166s await self._async_finish_shutdown(restart=restart) 166s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 166s await asyncio.wait_for( 166s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 166s ) 166s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 166s async with timeouts.timeout(timeout): 166s ~~~~~~~~~~~~~~~~^^^^^^^^^ 166s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 166s raise RuntimeError("Timeout should be used inside a task") 166s RuntimeError: Timeout should be used inside a task 166s WARNING NotebookApp:handlers.py:612 Unhandled error 166s --------------------------- Captured stderr teardown --------------------------- 166s Traceback (most recent call last): 166s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 166s return _run_code(code, main_globals, None, 166s "__main__", mod_spec) 166s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 166s exec(code, run_globals) 166s ~~~~^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 166s from ipykernel import kernelapp as app 166s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 166s from .connect import * # noqa: F403 166s ^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 166s import json 166s File "/usr/lib/python3.14/json/__init__.py", line 106, in 166s from .decoder import JSONDecoder, JSONDecodeError 166s File "/usr/lib/python3.14/json/decoder.py", line 5, in 166s from json import scanner 166s File "/usr/lib/python3.14/json/scanner.py", line 11, in 166s NUMBER_RE = re.compile( 166s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 166s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 166s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 166s return _compile(pattern, flags) 166s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 166s p = _compiler.compile(pattern, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 166s code = _code(p, flags) 166s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 166s _compile(code, p.data, flags) 166s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_compiler.py", line 124, in _compile 166s _compile(code, av[2], flags) 166s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 166s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 166s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166s File "/usr/lib/python3.14/re/_compiler.py", line 111, in _compile 166s if _simple(av[2]): 166s ~~~~~~~^^^^^^^ 166s File "/usr/lib/python3.14/re/_compiler.py", line 412, in _simple 166s def _simple(p): 166s 166s KeyboardInterrupt 166s ---------------------------- Captured log teardown ----------------------------- 166s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc218982-78c9-4d65-9cc8-c48cabbcbd22 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 357ea574-61b8-45be-8cf7-d27bb8eb39a0 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1b30ff5-d530-4ca8-9bf0-2bb8f3f14e0b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f267027b-fcd6-47b8-96a7-51f52b75f90b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1df122b5-f284-4ce2-91eb-3d452700113e 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f888e4b-4bba-4f53-8e80-e8cc6862b98b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbc4ec7-da53-4172-bef4-8dd0a76ed37b 166s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d816ffee-21f2-4dc1-83b0-b4c3dce5a616 166s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 166s =============================== warnings summary =============================== 166s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 166s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 166s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 166s return LooseVersion(v) >= LooseVersion(check) 166s 166s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 166s services/kernels/tests/test_kernels_api.py: 65 warnings 166s services/sessions/tests/test_sessions_api.py: 106 warnings 166s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 166s dt = unaware(*args, **kwargs) 166s 166s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 166s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 166s pytestmark = pytest.mark.integration_tests 166s 166s services/kernels/tests/test_kernels_api.py: 6 warnings 166s services/sessions/tests/test_sessions_api.py: 6 warnings 166s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 166s policy = events.get_event_loop_policy() 166s 166s services/kernels/tests/test_kernels_api.py: 24 warnings 166s services/sessions/tests/test_sessions_api.py: 19 warnings 166s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 166s loop = events.get_event_loop_policy().get_event_loop() 166s 166s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 166s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 166s loop.make_current() 166s 166s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 166s =========================== short test summary info ============================ 166s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 166s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 166s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 166s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 166s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 166s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 166s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 166s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 166s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 166s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 166s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 166s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 166s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 166s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 166s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 166s ===== 25 failed, 2 passed, 303 deselected, 231 warnings, 4 errors in 3.52s ===== 166s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 166s *** STARTING RUN 3: python3.14 -m pytest --pyargs notebook -rfE --last-failed --last-failed-no-failures none --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 168s ============================= test session starts ============================== 168s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 168s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 168s plugins: typeguard-4.4.4 168s collected 330 items / 305 deselected / 25 selected 168s run-last-failure: rerun previous 25 failures 168s 169s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 170s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 170s 170s ==================================== ERRORS ==================================== 170s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s File "", line 1368, in _find_and_load 170s File "", line 421, in __enter__ 170s File "", line 311, in acquire 170s File "", line 170, in __enter__ 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33411 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48203 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.980000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-424eba59-e3e5-4010-a38b-81e97ebbfdc3.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57701 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56135 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 424eba59-e3e5-4010-a38b-81e97ebbfdc3, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 424eba59-e3e5-4010-a38b-81e97ebbfdc3 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3/interrupt (::1) 0.480000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3/restart (::1) 2.450000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 170s yielded = ctx_run(next, result) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 (::1) 3.470000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 170s import jupyter_client 170s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 170s from .asynchronous import AsyncKernelClient 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 170s from .client import AsyncKernelClient # noqa 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 170s import zmq.asyncio 170s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 170s import asyncio 170s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 170s from .base_events import * 170s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 170s import concurrent.futures 170s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 170s from concurrent.futures._base import (FIRST_COMPLETED, 170s ...<9 lines>... 170s as_completed) 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 170s import logging 170s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 170s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 170s File "/usr/lib/python3.14/traceback.py", line 12, in 170s import _colorize 170s File "/usr/lib/python3.14/_colorize.py", line 157, in 170s @dataclass(frozen=True, kw_only=True) 170s ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 170s return _process_class(cls, init, repr, eq, order, unsafe_hash, 170s frozen, match_args, kw_only, slots, 170s weakref_slot) 170s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 170s func_builder.add_fns_to_class(cls) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 170s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 170s exec(txt, self.globals, ns) 170s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 170s File "", line 0, in 170s KeyboardInterrupt 170s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 170s from typing import TYPE_CHECKING, Any 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-d886b96e-817b-4f2a-a55d-87da081bc7f6.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41401 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57913 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: d886b96e-817b-4f2a-a55d-87da081bc7f6, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.260000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-1580af73-2582-46e3-b532-f48d47e60a52.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33229 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57235 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1580af73-2582-46e3-b532-f48d47e60a52, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1580af73-2582-46e3-b532-f48d47e60a52 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52/interrupt (::1) 0.460000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 170s result = coro.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 170s yield self # This tells Task to wait for completion. 170s ^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52/restart (::1) 3.010000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.060000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d886b96e-817b-4f2a-a55d-87da081bc7f6 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d886b96e-817b-4f2a-a55d-87da081bc7f6 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 (::1) 3.270000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 170s import jupyter_client 170s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 170s from .asynchronous import AsyncKernelClient 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 170s from .client import AsyncKernelClient # noqa 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 170s import zmq.asyncio 170s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 170s import asyncio 170s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 170s from .base_events import * 170s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 170s import concurrent.futures 170s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 170s from concurrent.futures._base import (FIRST_COMPLETED, 170s ...<9 lines>... 170s as_completed) 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 170s import logging 170s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 170s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 170s File "/usr/lib/python3.14/traceback.py", line 10, in 170s import tokenize 170s File "/usr/lib/python3.14/tokenize.py", line 47, in 170s class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')): 170s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/collections/__init__.py", line 361, in namedtuple 170s def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None): 170s 170s KeyboardInterrupt 170s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-e06b390f-7804-4263-ac8b-ed9546467eb7.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37855 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36153 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: e06b390f-7804-4263-ac8b-ed9546467eb7, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 72a27de3-240c-4ac2-a654-9762e8749c3d 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72a27de3-240c-4ac2-a654-9762e8749c3d 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44 (::1) 1.280000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e06b390f-7804-4263-ac8b-ed9546467eb7 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e06b390f-7804-4263-ac8b-ed9546467eb7 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-bb7f1b8d-352d-48c8-978e-a68088f92c33.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52735 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47179 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: bb7f1b8d-352d-48c8-978e-a68088f92c33, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.870000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.180000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52d10e97-8083-467c-9601-f2b77bb58032 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52d10e97-8083-467c-9601-f2b77bb58032 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350 (::1) 0.880000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb7f1b8d-352d-48c8-978e-a68088f92c33 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb7f1b8d-352d-48c8-978e-a68088f92c33 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 4.270000ms referer=None 170s =================================== FAILURES =================================== 170s ______________________ KernelAPITest.test_default_kernel _______________________ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/49a0582c-33ce-490c-9317-e25e0692b210 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log setup ------------------------------ 170s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpudbqj86r/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpudbqj86r/etc/jupyter'] for config files 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpudbqj86r/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpudbqj86r/config 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpudbqj86r/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpudbqj86r/config 170s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpudbqj86r/notebooks 170s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 170s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 170s WARNING NotebookApp:handlers.py:612 Forbidden 170s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.510000ms referer=None 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-49a0582c-33ce-490c-9317-e25e0692b210.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47629 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42503 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49a0582c-33ce-490c-9317-e25e0692b210, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.950000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a0582c-33ce-490c-9317-e25e0692b210 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a0582c-33ce-490c-9317-e25e0692b210 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49a0582c-33ce-490c-9317-e25e0692b210 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49a0582c-33ce-490c-9317-e25e0692b210', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 170s yielded = ctx_run(next, result) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/49a0582c-33ce-490c-9317-e25e0692b210 (::1) 4.650000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 170s import json 170s File "/usr/lib/python3.14/json/__init__.py", line 106, in 170s from .decoder import JSONDecoder, JSONDecodeError 170s File "/usr/lib/python3.14/json/decoder.py", line 5, in 170s from json import scanner 170s File "/usr/lib/python3.14/json/scanner.py", line 11, in 170s NUMBER_RE = re.compile( 170s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 170s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 170s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 170s return _compile(pattern, flags) 170s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 170s p = _compiler.compile(pattern, flags) 170s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 170s p = _parser.parse(p, flags) 170s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 170s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 170s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 170s itemsappend(_parse(source, state, verbose, nested + 1, 170s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s not nested and not items)) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 170s p = _parse_sub(source, state, sub_verbose, nested + 1) 170s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 170s itemsappend(_parse(source, state, verbose, nested + 1, 170s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s not nested and not items)) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/re/_parser.py", line 544, in _parse 170s code = _escape(source, this, state) 170s File "/usr/lib/python3.14/re/_parser.py", line 441, in _escape 170s if len(escape) == 2: 170s ~~~^^^^^^^^ 170s KeyboardInterrupt 170s ______________________ KernelAPITest.test_kernel_handler _______________________ 170s 170s self = 170s 170s def test_kernel_handler(self): 170s # GET kernel with given id 170s kid = self.kern_api.start().json()['id'] 170s r = self.kern_api.get(kid) 170s kern1 = r.json() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(kern1, dict) 170s self.assertIn('id', kern1) 170s self.assertEqual(kern1['id'], kid) 170s 170s # Request a bad kernel id and check that a JSON 170s # message is returned! 170s bad_id = '111-111-111-111-111' 170s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 170s self.kern_api.get(bad_id) 170s 170s # DELETE kernel with id 170s > r = self.kern_api.shutdown(kid) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e2b20988-8a0b-4363-b4e4-78f25a4aa755 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-e2b20988-8a0b-4363-b4e4-78f25a4aa755.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44549 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55145 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2b20988-8a0b-4363-b4e4-78f25a4aa755, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e2b20988-8a0b-4363-b4e4-78f25a4aa755 (::1) 0.390000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 170s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 170s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.130000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2b20988-8a0b-4363-b4e4-78f25a4aa755 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2b20988-8a0b-4363-b4e4-78f25a4aa755 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e2b20988-8a0b-4363-b4e4-78f25a4aa755 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e2b20988-8a0b-4363-b4e4-78f25a4aa755', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 170s yielded = ctx_run(next, result) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e2b20988-8a0b-4363-b4e4-78f25a4aa755 (::1) 3.470000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a0582c-33ce-490c-9317-e25e0692b210 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a0582c-33ce-490c-9317-e25e0692b210 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49a0582c-33ce-490c-9317-e25e0692b210 (::1) 0.510000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2b20988-8a0b-4363-b4e4-78f25a4aa755 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2b20988-8a0b-4363-b4e4-78f25a4aa755 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 46, in 170s import locale 170s File "/usr/lib/python3.14/locale.py", line 107, in 170s @functools.wraps(_localeconv) 170s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/functools.py", line 76, in wraps 170s return partial(update_wrapper, wrapped=wrapped, 170s assigned=assigned, updated=updated) 170s KeyboardInterrupt 170s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 170s 170s self = 170s 170s def test_main_kernel_handler(self): 170s # POST request 170s r = self.kern_api.start() 170s kern1 = r.json() 170s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 170s self.assertEqual(r.status_code, 201) 170s self.assertIsInstance(kern1, dict) 170s 170s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 170s expected_csp = '; '.join([ 170s "frame-ancestors 'self'", 170s 'report-uri ' + report_uri, 170s "default-src 'none'" 170s ]) 170s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 170s 170s # GET request 170s r = self.kern_api.list() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(r.json(), list) 170s self.assertEqual(r.json()[0]['id'], kern1['id']) 170s self.assertEqual(r.json()[0]['name'], kern1['name']) 170s 170s # create another kernel and check that they both are added to the 170s # list of kernels from a GET request 170s kern2 = self.kern_api.start().json() 170s assert isinstance(kern2, dict) 170s r = self.kern_api.list() 170s kernels = r.json() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(kernels, list) 170s self.assertEqual(len(kernels), 2) 170s 170s # Interrupt a kernel 170s r = self.kern_api.interrupt(kern2['id']) 170s self.assertEqual(r.status_code, 204) 170s 170s # Restart a kernel 170s > r = self.kern_api.restart(kern2['id']) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 170s return self._req('POST', url_path_join(id, 'restart')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3/restart 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s File "", line 1368, in _find_and_load 170s File "", line 421, in __enter__ 170s File "", line 311, in acquire 170s File "", line 170, in __enter__ 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33411 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48203 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.980000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpudbqj86r/runtime/kernel-424eba59-e3e5-4010-a38b-81e97ebbfdc3.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57701 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56135 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 424eba59-e3e5-4010-a38b-81e97ebbfdc3, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 424eba59-e3e5-4010-a38b-81e97ebbfdc3 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3/interrupt (::1) 0.480000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3/restart (::1) 2.450000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 170s yielded = ctx_run(next, result) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 (::1) 3.470000ms referer=None 170s ________________________ KernelAPITest.test_no_kernels _________________________ 170s 170s self = 170s 170s def test_no_kernels(self): 170s """Make sure there are no kernels running at the start""" 170s kernels = self.kern_api.list().json() 170s > self.assertEqual(kernels, []) 170s E AssertionError: Lists differ: [{'id': 'c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a[281 chars]: 0}] != [] 170s E 170s E First list contains 2 additional elements. 170s E First extra element 0: 170s E {'id': 'c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167', 'name': 'python3', 'last_activity': '2026-01-24T09:58:45.157757Z', 'execution_state': 'starting', 'connections': 0} 170s E 170s E + [] 170s E - [{'connections': 0, 170s E - 'execution_state': 'starting', 170s E - 'id': 'c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167', 170s E - 'last_activity': '2026-01-24T09:58:45.157757Z', 170s E - 'name': 'python3'}, 170s E - {'connections': 0, 170s E - 'execution_state': 'starting', 170s E - 'id': '424eba59-e3e5-4010-a38b-81e97ebbfdc3', 170s E - 'last_activity': '2026-01-24T09:58:45.174676Z', 170s E - 'name': 'python3'}] 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.470000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c3bfd1a1-1e75-4aeb-a9ca-65c7f3d7a167 (::1) 0.520000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 424eba59-e3e5-4010-a38b-81e97ebbfdc3 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 424eba59-e3e5-4010-a38b-81e97ebbfdc3 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/424eba59-e3e5-4010-a38b-81e97ebbfdc3 (::1) 0.500000ms 170s ---------------------------- Captured log teardown ----------------------------- 170s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 170s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 170s _____________________ AsyncKernelAPITest.test_connections ______________________ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log setup ------------------------------ 170s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpqifhvpku/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpqifhvpku/etc/jupyter'] for config files 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqifhvpku/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqifhvpku/config 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqifhvpku/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqifhvpku/config 170s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpqifhvpku/notebooks 170s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 170s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 170s WARNING NotebookApp:handlers.py:612 Forbidden 170s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.370000ms referer=None 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-74b8722b-cf9b-4036-a1f1-31ae89827a98.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60727 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59701 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74b8722b-cf9b-4036-a1f1-31ae89827a98, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.050000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 0.370000ms 170s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98/channels 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 170s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56149 170s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 170s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 74b8722b-cf9b-4036-a1f1-31ae89827a98) to 5.4 (client). 170s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98/channels (::1) 399.110000ms 170s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98/channels 170s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59701 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56149 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60727 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53101 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56149 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60727 170s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 170s Setting websocket_ping_timeout=30000 170s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 0.480000ms 170s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:handlers.py:579 Websocket closed 74b8722b-cf9b-4036-a1f1-31ae89827a98:af713a74-1d2ac87682666fa134eeacfc 170s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 74b8722b-cf9b-4036-a1f1-31ae89827a98:af713a74-1d2ac87682666fa134eeacfc 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 74b8722b-cf9b-4036-a1f1-31ae89827a98:iopub 170s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 74b8722b-cf9b-4036-a1f1-31ae89827a98:iopub 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 74b8722b-cf9b-4036-a1f1-31ae89827a98:iopub 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 0.460000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 0.330000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 74b8722b-cf9b-4036-a1f1-31ae89827a98:af713a74-1d2ac87682666fa134eeacfc 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 3.800000ms referer=None 170s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-49233b53-9149-4f98-93dd-7a1bb0e1a9c1.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37483 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54133 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49233b53-9149-4f98-93dd-7a1bb0e1a9c1, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.890000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.010000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/74b8722b-cf9b-4036-a1f1-31ae89827a98 (::1) 0.380000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49233b53-9149-4f98-93dd-7a1bb0e1a9c1 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49233b53-9149-4f98-93dd-7a1bb0e1a9c1', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/49233b53-9149-4f98-93dd-7a1bb0e1a9c1 (::1) 3.320000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 46, in 170s import locale 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 170s 170s self = 170s 170s def test_kernel_handler(self): 170s # GET kernel with given id 170s kid = self.kern_api.start().json()['id'] 170s r = self.kern_api.get(kid) 170s kern1 = r.json() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(kern1, dict) 170s self.assertIn('id', kern1) 170s self.assertEqual(kern1['id'], kid) 170s 170s # Request a bad kernel id and check that a JSON 170s # message is returned! 170s bad_id = '111-111-111-111-111' 170s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 170s self.kern_api.get(bad_id) 170s 170s # DELETE kernel with id 170s > r = self.kern_api.shutdown(kid) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3bda08f3-5e77-449b-b39a-2607db5b95b3 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-3bda08f3-5e77-449b-b39a-2607db5b95b3.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36053 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36793 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3bda08f3-5e77-449b-b39a-2607db5b95b3, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.040000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3bda08f3-5e77-449b-b39a-2607db5b95b3 (::1) 2.880000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 170s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 170s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.440000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bda08f3-5e77-449b-b39a-2607db5b95b3 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bda08f3-5e77-449b-b39a-2607db5b95b3 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3bda08f3-5e77-449b-b39a-2607db5b95b3 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3bda08f3-5e77-449b-b39a-2607db5b95b3', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3bda08f3-5e77-449b-b39a-2607db5b95b3 (::1) 8.870000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49233b53-9149-4f98-93dd-7a1bb0e1a9c1 (::1) 0.440000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bda08f3-5e77-449b-b39a-2607db5b95b3 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bda08f3-5e77-449b-b39a-2607db5b95b3 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 170s from pathlib import Path 170s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 170s from pathlib._os import ( 170s ...<3 lines>... 170s ) 170s File "/usr/lib/python3.14/pathlib/_os.py", line 450, in 170s class _PosixPathInfo(_PathInfoBase): 170s ...<30 lines>... 170s return S_ISLNK(st.st_mode) 170s KeyboardInterrupt 170s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 170s 170s self = 170s 170s def test_main_kernel_handler(self): 170s # POST request 170s r = self.kern_api.start() 170s kern1 = r.json() 170s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 170s self.assertEqual(r.status_code, 201) 170s self.assertIsInstance(kern1, dict) 170s 170s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 170s expected_csp = '; '.join([ 170s "frame-ancestors 'self'", 170s 'report-uri ' + report_uri, 170s "default-src 'none'" 170s ]) 170s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 170s 170s # GET request 170s r = self.kern_api.list() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(r.json(), list) 170s self.assertEqual(r.json()[0]['id'], kern1['id']) 170s self.assertEqual(r.json()[0]['name'], kern1['name']) 170s 170s # create another kernel and check that they both are added to the 170s # list of kernels from a GET request 170s kern2 = self.kern_api.start().json() 170s assert isinstance(kern2, dict) 170s r = self.kern_api.list() 170s kernels = r.json() 170s self.assertEqual(r.status_code, 200) 170s assert isinstance(kernels, list) 170s self.assertEqual(len(kernels), 2) 170s 170s # Interrupt a kernel 170s r = self.kern_api.interrupt(kern2['id']) 170s self.assertEqual(r.status_code, 204) 170s 170s # Restart a kernel 170s > r = self.kern_api.restart(kern2['id']) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 170s return self._req('POST', url_path_join(id, 'restart')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52/restart 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 170s from typing import TYPE_CHECKING, Any 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-d886b96e-817b-4f2a-a55d-87da081bc7f6.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41401 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57913 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: d886b96e-817b-4f2a-a55d-87da081bc7f6, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.260000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqifhvpku/runtime/kernel-1580af73-2582-46e3-b532-f48d47e60a52.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33229 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57235 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1580af73-2582-46e3-b532-f48d47e60a52, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1580af73-2582-46e3-b532-f48d47e60a52 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52/interrupt (::1) 0.460000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 170s result = coro.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 170s yield self # This tells Task to wait for completion. 170s ^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52/restart (::1) 3.010000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.060000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d886b96e-817b-4f2a-a55d-87da081bc7f6 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d886b96e-817b-4f2a-a55d-87da081bc7f6 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 (::1) 3.270000ms referer=None 170s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 170s 170s self = 170s 170s def test_no_kernels(self): 170s """Make sure there are no kernels running at the start""" 170s kernels = self.kern_api.list().json() 170s > self.assertEqual(kernels, []) 170s E AssertionError: Lists differ: [{'id': 'd886b96e-817b-4f2a-a55d-87da081bc[281 chars]: 0}] != [] 170s E 170s E First list contains 2 additional elements. 170s E First extra element 0: 170s E {'id': 'd886b96e-817b-4f2a-a55d-87da081bc7f6', 'name': 'python3', 'last_activity': '2026-01-24T09:58:45.813928Z', 'execution_state': 'starting', 'connections': 0} 170s E 170s E + [] 170s E - [{'connections': 0, 170s E - 'execution_state': 'starting', 170s E - 'id': 'd886b96e-817b-4f2a-a55d-87da081bc7f6', 170s E - 'last_activity': '2026-01-24T09:58:45.813928Z', 170s E - 'name': 'python3'}, 170s E - {'connections': 0, 170s E - 'execution_state': 'starting', 170s E - 'id': '1580af73-2582-46e3-b532-f48d47e60a52', 170s E - 'last_activity': '2026-01-24T09:58:45.836222Z', 170s E - 'name': 'python3'}] 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d886b96e-817b-4f2a-a55d-87da081bc7f6 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d886b96e-817b-4f2a-a55d-87da081bc7f6 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d886b96e-817b-4f2a-a55d-87da081bc7f6 (::1) 0.390000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1580af73-2582-46e3-b532-f48d47e60a52 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1580af73-2582-46e3-b532-f48d47e60a52 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1580af73-2582-46e3-b532-f48d47e60a52 (::1) 0.450000ms 170s ---------------------------- Captured log teardown ----------------------------- 170s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49233b53-9149-4f98-93dd-7a1bb0e1a9c1 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d886b96e-817b-4f2a-a55d-87da081bc7f6 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74b8722b-cf9b-4036-a1f1-31ae89827a98 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bda08f3-5e77-449b-b39a-2607db5b95b3 170s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 170s __________________________ SessionAPITest.test_create __________________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log setup ------------------------------ 170s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_39aczdw/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_39aczdw/etc/jupyter'] for config files 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_39aczdw/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_39aczdw/config 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_39aczdw/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_39aczdw/config 170s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_39aczdw/notebooks 170s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 170s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 170s WARNING NotebookApp:handlers.py:612 Forbidden 170s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.670000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-e9b13c30-2068-4825-96d8-8a0792d7478c.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41955 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37825 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: e9b13c30-2068-4825-96d8-8a0792d7478c, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_39aczdw/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.210000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c (::1) 0.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9b13c30-2068-4825-96d8-8a0792d7478c 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9b13c30-2068-4825-96d8-8a0792d7478c 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c (::1) 4.060000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 49, in 170s import signal 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s __________________ SessionAPITest.test_create_console_session __________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/34b6fe30-8aea-484a-b9e9-85307e391d9c 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-59f33f9f-06d8-43ef-ae48-0de7ef9d52c1.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57659 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45735 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 59f33f9f-06d8-43ef-ae48-0de7ef9d52c1, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_39aczdw/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.180000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9b13c30-2068-4825-96d8-8a0792d7478c 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9b13c30-2068-4825-96d8-8a0792d7478c 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4715c1af-f072-4609-a5c7-f28b40d2bd4c (::1) 0.590000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 59f33f9f-06d8-43ef-ae48-0de7ef9d52c1 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 59f33f9f-06d8-43ef-ae48-0de7ef9d52c1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/34b6fe30-8aea-484a-b9e9-85307e391d9c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/34b6fe30-8aea-484a-b9e9-85307e391d9c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/34b6fe30-8aea-484a-b9e9-85307e391d9c (::1) 3.810000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 46, in 170s import locale 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ____________________ SessionAPITest.test_create_deprecated _____________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cd234ed8-c26b-4a48-97e0-2d43f9719282 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-b22147b1-4eff-4275-a6ed-b83127b8c000.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58657 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46019 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: b22147b1-4eff-4275-a6ed-b83127b8c000, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_39aczdw/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.230000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 59f33f9f-06d8-43ef-ae48-0de7ef9d52c1 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 59f33f9f-06d8-43ef-ae48-0de7ef9d52c1 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/34b6fe30-8aea-484a-b9e9-85307e391d9c (::1) 1.330000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b22147b1-4eff-4275-a6ed-b83127b8c000 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b22147b1-4eff-4275-a6ed-b83127b8c000 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cd234ed8-c26b-4a48-97e0-2d43f9719282 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cd234ed8-c26b-4a48-97e0-2d43f9719282', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cd234ed8-c26b-4a48-97e0-2d43f9719282 (::1) 3.800000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s KeyboardInterrupt 170s ___________________ SessionAPITest.test_create_file_session ____________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-72a27de3-240c-4ac2-a654-9762e8749c3d.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56801 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42873 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 72a27de3-240c-4ac2-a654-9762e8749c3d, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_39aczdw/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b22147b1-4eff-4275-a6ed-b83127b8c000 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b22147b1-4eff-4275-a6ed-b83127b8c000 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cd234ed8-c26b-4a48-97e0-2d43f9719282 (::1) 1.390000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 72a27de3-240c-4ac2-a654-9762e8749c3d 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72a27de3-240c-4ac2-a654-9762e8749c3d 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44 (::1) 3.790000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 170s import json 170s File "/usr/lib/python3.14/json/__init__.py", line 107, in 170s from .encoder import JSONEncoder 170s File "", line 1371, in _find_and_load 170s File "", line 1345, in _find_and_load_unlocked 170s KeyboardInterrupt 170s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 170s 170s self = 170s 170s def test_create_with_kernel_id(self): 170s # create a new kernel 170s r = self.request('POST', 'api/kernels') 170s r.raise_for_status() 170s kernel = r.json() 170s 170s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 170s self.assertEqual(resp.status_code, 201) 170s newsession = resp.json() 170s self.assertIn('id', newsession) 170s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 170s self.assertEqual(newsession['kernel']['id'], kernel['id']) 170s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 170s 170s sessions = self.sess_api.list().json() 170s > self.assertEqual(sessions, [newsession]) 170s E AssertionError: Lists differ: [{'id': '74ad1b18-76fb-4793-b3a0-6c98bc536a44', 'p[553 chars]ne}}] != [{'id': 'f9f4c19b-17b0-4616-a289-4880f0ce2b5b', 'p[279 chars]ne}}] 170s E 170s E First differing element 0: 170s E {'id': '74ad1b18-76fb-4793-b3a0-6c98bc536a44', 'p[218 chars]: 0}} 170s E {'id': 'f9f4c19b-17b0-4616-a289-4880f0ce2b5b', 'p[278 chars]one}} 170s E 170s E First list contains 1 additional elements. 170s E First extra element 1: 170s E {'id': 'f9f4c19b-17b0-4616-a289-4880f0ce2b5b', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'e06b390f-7804-4263-ac8b-ed9546467eb7', 'name': 'python3', 'last_activity': '2026-01-24T09:58:46.104767Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 170s E 170s E Diff is 830 characters long. Set self.maxDiff to None to see it. 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-e06b390f-7804-4263-ac8b-ed9546467eb7.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37855 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36153 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: e06b390f-7804-4263-ac8b-ed9546467eb7, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 72a27de3-240c-4ac2-a654-9762e8749c3d 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72a27de3-240c-4ac2-a654-9762e8749c3d 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/74ad1b18-76fb-4793-b3a0-6c98bc536a44 (::1) 1.280000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e06b390f-7804-4263-ac8b-ed9546467eb7 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e06b390f-7804-4263-ac8b-ed9546467eb7 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ---------------------------- Captured stderr setup ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 170s from typing import TYPE_CHECKING, Any 170s File "/usr/lib/python3.14/typing.py", line 2816, in 170s List = _alias(list, 1, inst=False, name='List') 170s File "/usr/lib/python3.14/typing.py", line 1544, in __init__ 170s super().__init__(origin, inst=inst, name=name) 170s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/typing.py", line 1228, in __init__ 170s self.__origin__ = origin 170s ^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/typing.py", line 1288, in __setattr__ 170s super().__setattr__(attr, val) 170s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-55a0ec17-f94a-46d7-aed4-398f57bb66e0.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60835 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58743 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55a0ec17-f94a-46d7-aed4-398f57bb66e0, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.420000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e06b390f-7804-4263-ac8b-ed9546467eb7 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e06b390f-7804-4263-ac8b-ed9546467eb7 170s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 0.830000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.100000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.350000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55a0ec17-f94a-46d7-aed4-398f57bb66e0 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55a0ec17-f94a-46d7-aed4-398f57bb66e0 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 4.350000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 52, in 170s import warnings 170s File "/usr/lib/python3.14/warnings.py", line 15, in 170s from _py_warnings import ( 170s ...<44 lines>... 170s ) 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_39aczdw/runtime/kernel-89c1a2c8-c4ca-4f09-91fc-bdc87c6b13e8.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39267 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48825 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89c1a2c8-c4ca-4f09-91fc-bdc87c6b13e8, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_39aczdw/notebooks/foo'} 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55a0ec17-f94a-46d7-aed4-398f57bb66e0 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55a0ec17-f94a-46d7-aed4-398f57bb66e0 170s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 13.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.340000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89c1a2c8-c4ca-4f09-91fc-bdc87c6b13e8 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89c1a2c8-c4ca-4f09-91fc-bdc87c6b13e8 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f9f4c19b-17b0-4616-a289-4880f0ce2b5b (::1) 3.870000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s _______________________ AsyncSessionAPITest.test_create ________________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log setup ------------------------------ 170s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpixnwisjc/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpixnwisjc/etc/jupyter'] for config files 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpixnwisjc/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpixnwisjc/config 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpixnwisjc/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 170s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpixnwisjc/config 170s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpixnwisjc/notebooks 170s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 170s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 170s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 170s WARNING NotebookApp:handlers.py:612 Forbidden 170s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.340000ms referer=None 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-f34848d0-19ea-4ee1-ba4d-88fde29fcdc9.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58253 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48887 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: f34848d0-19ea-4ee1-ba4d-88fde29fcdc9, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpixnwisjc/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.140000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935 (::1) 0.390000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f34848d0-19ea-4ee1-ba4d-88fde29fcdc9 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f34848d0-19ea-4ee1-ba4d-88fde29fcdc9 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935 (::1) 3.690000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 170s gc.collect() 170s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 170s 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 49, in 170s import signal 170s File "/usr/lib/python3.14/signal.py", line 7, in 170s _IntEnum._convert_( 170s ~~~~~~~~~~~~~~~~~~^ 170s 'Signals', __name__, 170s ^^^^^^^^^^^^^^^^^^^^ 170s ...<2 lines>... 170s and (name.startswith('SIG') and not name.startswith('SIG_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s or name.startswith('CTRL_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 170s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 170s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 170s setattr(enum_class, name, member) 170s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 170s def __setattr__(cls, name, value): 170s 170s KeyboardInterrupt 170s _______________ AsyncSessionAPITest.test_create_console_session ________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ace793d3-eee6-4a84-95fc-0a1f4d973ba4 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-7305260e-a78e-46c3-a465-1073c75d4c65.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44737 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53311 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7305260e-a78e-46c3-a465-1073c75d4c65, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpixnwisjc/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.920000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f34848d0-19ea-4ee1-ba4d-88fde29fcdc9 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f34848d0-19ea-4ee1-ba4d-88fde29fcdc9 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dc1d0a72-cd93-4304-9dd8-bc16658a1935 (::1) 1.230000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7305260e-a78e-46c3-a465-1073c75d4c65 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7305260e-a78e-46c3-a465-1073c75d4c65 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ace793d3-eee6-4a84-95fc-0a1f4d973ba4 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ace793d3-eee6-4a84-95fc-0a1f4d973ba4', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 170s import json 170s File "/usr/lib/python3.14/json/__init__.py", line 107, in 170s from .encoder import JSONEncoder 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 845, in get_code 170s File "", line 968, in path_stats 170s File "", line 152, in _path_stat 170s KeyboardInterrupt 170s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c6dbee5f-9aec-4e0e-9a42-f1c1cf2c6031 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40259 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54663 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpixnwisjc/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.580000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7305260e-a78e-46c3-a465-1073c75d4c65 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7305260e-a78e-46c3-a465-1073c75d4c65 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ace793d3-eee6-4a84-95fc-0a1f4d973ba4 (::1) 1.280000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c6dbee5f-9aec-4e0e-9a42-f1c1cf2c6031 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c6dbee5f-9aec-4e0e-9a42-f1c1cf2c6031', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c6dbee5f-9aec-4e0e-9a42-f1c1cf2c6031 (::1) 3.650000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 49, in 170s import signal 170s File "/usr/lib/python3.14/signal.py", line 7, in 170s _IntEnum._convert_( 170s ~~~~~~~~~~~~~~~~~~^ 170s 'Signals', __name__, 170s ^^^^^^^^^^^^^^^^^^^^ 170s ...<2 lines>... 170s and (name.startswith('SIG') and not name.startswith('SIG_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s or name.startswith('CTRL_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 170s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 170s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 170s setattr(enum_class, name, member) 170s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 170s def __setattr__(cls, name, value): 170s 170s KeyboardInterrupt 170s _________________ AsyncSessionAPITest.test_create_file_session _________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-52d10e97-8083-467c-9601-f2b77bb58032.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57325 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41177 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 52d10e97-8083-467c-9601-f2b77bb58032, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpixnwisjc/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.930000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ee78ac0-d19a-4ce4-af5a-2b9eb1cbd4b4 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c6dbee5f-9aec-4e0e-9a42-f1c1cf2c6031 (::1) 1.220000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52d10e97-8083-467c-9601-f2b77bb58032 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52d10e97-8083-467c-9601-f2b77bb58032 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350 (::1) 3.580000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 170s 170s self = 170s 170s def test_create_with_kernel_id(self): 170s # create a new kernel 170s r = self.request('POST', 'api/kernels') 170s r.raise_for_status() 170s kernel = r.json() 170s 170s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 170s self.assertEqual(resp.status_code, 201) 170s newsession = resp.json() 170s self.assertIn('id', newsession) 170s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 170s self.assertEqual(newsession['kernel']['id'], kernel['id']) 170s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 170s 170s sessions = self.sess_api.list().json() 170s > self.assertEqual(sessions, [newsession]) 170s E AssertionError: Lists differ: [{'id': 'e9f834e7-f94a-4277-b25a-3a81a348f350', 'p[553 chars]ne}}] != [{'id': '87aa6831-7eb3-438c-81f8-24286692a12c', 'p[279 chars]ne}}] 170s E 170s E First differing element 0: 170s E {'id': 'e9f834e7-f94a-4277-b25a-3a81a348f350', 'p[218 chars]: 0}} 170s E {'id': '87aa6831-7eb3-438c-81f8-24286692a12c', 'p[278 chars]one}} 170s E 170s E First list contains 1 additional elements. 170s E First extra element 1: 170s E {'id': '87aa6831-7eb3-438c-81f8-24286692a12c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'bb7f1b8d-352d-48c8-978e-a68088f92c33', 'name': 'python3', 'last_activity': '2026-01-24T09:58:46.490119Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 170s E 170s E Diff is 830 characters long. Set self.maxDiff to None to see it. 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-bb7f1b8d-352d-48c8-978e-a68088f92c33.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52735 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47179 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: bb7f1b8d-352d-48c8-978e-a68088f92c33, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.870000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.180000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52d10e97-8083-467c-9601-f2b77bb58032 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52d10e97-8083-467c-9601-f2b77bb58032 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9f834e7-f94a-4277-b25a-3a81a348f350 (::1) 0.880000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb7f1b8d-352d-48c8-978e-a68088f92c33 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb7f1b8d-352d-48c8-978e-a68088f92c33 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 4.270000ms referer=None 170s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ---------------------------- Captured stderr setup ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 170s from typing import TYPE_CHECKING, Any 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-537b2d19-181e-40f5-94ad-ae1566405cda.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47885 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32963 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 537b2d19-181e-40f5-94ad-ae1566405cda, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.780000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb7f1b8d-352d-48c8-978e-a68088f92c33 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb7f1b8d-352d-48c8-978e-a68088f92c33 170s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 0.610000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 537b2d19-181e-40f5-94ad-ae1566405cda 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 537b2d19-181e-40f5-94ad-ae1566405cda 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 4.100000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 49, in 170s import signal 170s File "/usr/lib/python3.14/signal.py", line 7, in 170s _IntEnum._convert_( 170s ~~~~~~~~~~~~~~~~~~^ 170s 'Signals', __name__, 170s ^^^^^^^^^^^^^^^^^^^^ 170s ...<2 lines>... 170s and (name.startswith('SIG') and not name.startswith('SIG_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s or name.startswith('CTRL_')) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/enum.py", line 906, in _convert_ 170s body = {t[0]: t[1] for t in members} 170s ^^^^^^^^^^ 170s KeyboardInterrupt 170s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.270000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpixnwisjc/runtime/kernel-1b908755-e7a7-4a6a-b36f-74b8366fd67e.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41649 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54813 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b908755-e7a7-4a6a-b36f-74b8366fd67e, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpixnwisjc/notebooks/foo'} 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 537b2d19-181e-40f5-94ad-ae1566405cda 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 537b2d19-181e-40f5-94ad-ae1566405cda 170s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 13.090000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b908755-e7a7-4a6a-b36f-74b8366fd67e 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b908755-e7a7-4a6a-b36f-74b8366fd67e 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87aa6831-7eb3-438c-81f8-24286692a12c', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 170s from subprocess import PIPE, Popen 170s File "/usr/lib/python3.14/subprocess.py", line 46, in 170s import locale 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s =============================== warnings summary =============================== 170s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 170s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 170s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 170s return LooseVersion(v) >= LooseVersion(check) 170s 170s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 170s services/kernels/tests/test_kernels_api.py: 65 warnings 170s services/sessions/tests/test_sessions_api.py: 96 warnings 170s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 170s dt = unaware(*args, **kwargs) 170s 170s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 170s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 170s pytestmark = pytest.mark.integration_tests 170s 170s services/kernels/tests/test_kernels_api.py: 6 warnings 170s services/sessions/tests/test_sessions_api.py: 6 warnings 170s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 170s policy = events.get_event_loop_policy() 170s 170s services/kernels/tests/test_kernels_api.py: 24 warnings 170s services/sessions/tests/test_sessions_api.py: 19 warnings 170s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 170s loop = events.get_event_loop_policy().get_event_loop() 170s 170s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 170s loop.make_current() 170s 170s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 170s /usr/lib/python3.14/selectors.py:452: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 170s fd_event_list = self._selector.poll(timeout, max_ev) 170s Enable tracemalloc to get traceback where the object was allocated. 170s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 170s 170s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 170s =========================== short test summary info ============================ 170s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 170s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 170s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 170s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 170s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 170s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 170s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 170s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 170s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 170s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 170s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 170s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 170s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 170s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 170s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 170s ===== 23 failed, 2 passed, 305 deselected, 222 warnings, 4 errors in 3.44s ===== 170s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 170s *** STARTING RUN 4: python3.14 -m pytest --pyargs notebook -rfE --last-failed --last-failed-no-failures none --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 172s ============================= test session starts ============================== 172s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 172s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 172s plugins: typeguard-4.4.4 172s collected 330 items / 307 deselected / 23 selected 172s run-last-failure: rerun previous 23 failures 172s 173s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 173s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 173s 173s ==================================== ERRORS ==================================== 173s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 173s 173s self = 173s 173s def tearDown(self): 173s for k in self.kern_api.list().json(): 173s > self.kern_api.shutdown(k['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 173s from ipykernel import kernelapp as app 173s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 173s from .connect import * # noqa: F403 173s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 173s import json 173s File "/usr/lib/python3.14/json/__init__.py", line 106, in 173s from .decoder import JSONDecoder, JSONDecodeError 173s File "", line 1371, in _find_and_load 173s File "", line 1333, in _find_and_load_unlocked 173s File "", line 1267, in _find_spec 173s File "", line 1292, in find_spec 173s File "", line 1266, in _get_spec 173s File "", line 1398, in find_spec 173s File "", line 166, in _path_isfile 173s File "", line 158, in _path_is_mode_type 173s File "", line 152, in _path_stat 173s KeyboardInterrupt 173s Traceback (most recent call last): 173s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 173s from ipykernel import kernelapp as app 173s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 173s from .connect import * # noqa: F403 173s ^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 173s import jupyter_client 173s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 173s from .asynchronous import AsyncKernelClient 173s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 173s from .client import AsyncKernelClient # noqa 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 173s import zmq.asyncio 173s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 173s import asyncio 173s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 173s from .base_events import * 173s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 173s import ssl 173s File "/usr/lib/python3.14/ssl.py", line 100, in 173s import _ssl # if we can't import it, let the error propagate 173s ^^^^^^^^^^^ 173s KeyboardInterrupt 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-99e29dba-cd25-43b8-b3ef-88193a8e6b22.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38941 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53291 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99e29dba-cd25-43b8-b3ef-88193a8e6b22, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.780000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-6b142c15-fd7f-4e73-ab26-b527a87174b7.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53179 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44375 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b142c15-fd7f-4e73-ab26-b527a87174b7, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.290000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6b142c15-fd7f-4e73-ab26-b527a87174b7 173s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7/interrupt (::1) 0.520000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 174s yield maybe_future(km.restart_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 174s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 174s await ensure_async(kernel.restart_kernel(now=now)) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 174s await self._async_shutdown_kernel(now=now, restart=True) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7/restart (::1) 2.420000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 174s yielded = ctx_run(next, result) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 174s 174s self = 174s 174s def tearDown(self): 174s for k in self.kern_api.list().json(): 174s > self.kern_api.shutdown(k['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ----------------------------- Captured stderr call ----------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 174s from pathlib import Path 174s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 174s from glob import _StringGlobber, _no_recurse_symlinks 174s File "/usr/lib/python3.14/glob.py", line 5, in 174s import re 174s File "/usr/lib/python3.14/re/__init__.py", line 125, in 174s import enum 174s File "/usr/lib/python3.14/enum.py", line 1329, in 174s class ReprEnum(Enum): 174s KeyboardInterrupt 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-9f2282e2-b7b5-4865-af70-b8b74faeac9e.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56679 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37715 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f2282e2-b7b5-4865-af70-b8b74faeac9e, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.600000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-6e6b2fe1-fcf8-467d-9360-dd2665818401.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57919 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38313 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e6b2fe1-fcf8-467d-9360-dd2665818401, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.480000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6e6b2fe1-fcf8-467d-9360-dd2665818401 174s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6e6b2fe1-fcf8-467d-9360-dd2665818401/interrupt (::1) 0.490000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 174s yield maybe_future(km.restart_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 174s result = coro.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 174s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 174s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 174s yield self # This tells Task to wait for completion. 174s ^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 174s await ensure_async(kernel.restart_kernel(now=now)) 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 174s await self._async_shutdown_kernel(now=now, restart=True) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6e6b2fe1-fcf8-467d-9360-dd2665818401/restart (::1) 3.950000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 174s import jupyter_client 174s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 174s from .asynchronous import AsyncKernelClient 174s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 174s from .client import AsyncKernelClient # noqa 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 174s import zmq.asyncio 174s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 174s import asyncio 174s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 174s from .base_events import * 174s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 174s import concurrent.futures 174s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 174s from concurrent.futures._base import (FIRST_COMPLETED, 174s ...<9 lines>... 174s as_completed) 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 174s import logging 174s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 174s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-aa77795a-89a2-4d06-aa53-04ec3f57fb36.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44611 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59565 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: aa77795a-89a2-4d06-aa53-04ec3f57fb36, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.260000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.590000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b (::1) 1.440000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 5.950000ms referer=None 174s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-22f40d9a-1de7-42cd-b37e-b88bb7a3293c.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34817 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57977 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.740000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.240000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34 (::1) 1.220000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 3.570000ms referer=None 174s =================================== FAILURES =================================== 174s ______________________ KernelAPITest.test_default_kernel _______________________ 174s 174s self = 174s 174s def tearDown(self): 174s for k in self.kern_api.list().json(): 174s > self.kern_api.shutdown(k['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log setup ------------------------------ 174s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpsnnhu2y1/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpsnnhu2y1/etc/jupyter'] for config files 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpsnnhu2y1/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpsnnhu2y1/config 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpsnnhu2y1/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpsnnhu2y1/config 174s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpsnnhu2y1/notebooks 174s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 174s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 174s WARNING NotebookApp:handlers.py:612 Forbidden 174s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.510000ms referer=None 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60689 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41485 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.800000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 174s yielded = ctx_run(next, result) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 (::1) 5.010000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 107, in 174s from .encoder import JSONEncoder 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ______________________ KernelAPITest.test_kernel_handler _______________________ 174s 174s self = 174s 174s def test_kernel_handler(self): 174s # GET kernel with given id 174s kid = self.kern_api.start().json()['id'] 174s r = self.kern_api.get(kid) 174s kern1 = r.json() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(kern1, dict) 174s self.assertIn('id', kern1) 174s self.assertEqual(kern1['id'], kid) 174s 174s # Request a bad kernel id and check that a JSON 174s # message is returned! 174s bad_id = '111-111-111-111-111' 174s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 174s self.kern_api.get(bad_id) 174s 174s # DELETE kernel with id 174s > r = self.kern_api.shutdown(kid) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-3db8cefc-ba36-4d23-9ab4-b4c778acd0d6.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48489 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44125 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3db8cefc-ba36-4d23-9ab4-b4c778acd0d6, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.040000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 (::1) 0.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 174s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 174s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.370000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3db8cefc-ba36-4d23-9ab4-b4c778acd0d6', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 174s yielded = ctx_run(next, result) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 (::1) 4.290000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bcc48b1f-88f2-4bae-bb6c-7fb20ae82ca8 (::1) 0.540000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3db8cefc-ba36-4d23-9ab4-b4c778acd0d6 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 46, in 174s import locale 174s File "/usr/lib/python3.14/locale.py", line 1774, in 174s __all__.append("LC_MESSAGES") 174s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 174s KeyboardInterrupt 174s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 174s 174s self = 174s 174s def test_main_kernel_handler(self): 174s # POST request 174s r = self.kern_api.start() 174s kern1 = r.json() 174s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 174s self.assertEqual(r.status_code, 201) 174s self.assertIsInstance(kern1, dict) 174s 174s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 174s expected_csp = '; '.join([ 174s "frame-ancestors 'self'", 174s 'report-uri ' + report_uri, 174s "default-src 'none'" 174s ]) 174s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 174s 174s # GET request 174s r = self.kern_api.list() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(r.json(), list) 174s self.assertEqual(r.json()[0]['id'], kern1['id']) 174s self.assertEqual(r.json()[0]['name'], kern1['name']) 174s 174s # create another kernel and check that they both are added to the 174s # list of kernels from a GET request 174s kern2 = self.kern_api.start().json() 174s assert isinstance(kern2, dict) 174s r = self.kern_api.list() 174s kernels = r.json() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(kernels, list) 174s self.assertEqual(len(kernels), 2) 174s 174s # Interrupt a kernel 174s r = self.kern_api.interrupt(kern2['id']) 174s self.assertEqual(r.status_code, 204) 174s 174s # Restart a kernel 174s > r = self.kern_api.restart(kern2['id']) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 174s return self._req('POST', url_path_join(id, 'restart')) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7/restart 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ----------------------------- Captured stderr call ----------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 106, in 174s from .decoder import JSONDecoder, JSONDecodeError 174s File "", line 1371, in _find_and_load 174s File "", line 1333, in _find_and_load_unlocked 174s File "", line 1267, in _find_spec 174s File "", line 1292, in find_spec 174s File "", line 1266, in _get_spec 174s File "", line 1398, in find_spec 174s File "", line 166, in _path_isfile 174s File "", line 158, in _path_is_mode_type 174s File "", line 152, in _path_stat 174s KeyboardInterrupt 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 174s import jupyter_client 174s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 174s from .asynchronous import AsyncKernelClient 174s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 174s from .client import AsyncKernelClient # noqa 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 174s import zmq.asyncio 174s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 174s import asyncio 174s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 174s from .base_events import * 174s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 174s import ssl 174s File "/usr/lib/python3.14/ssl.py", line 100, in 174s import _ssl # if we can't import it, let the error propagate 174s ^^^^^^^^^^^ 174s KeyboardInterrupt 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-99e29dba-cd25-43b8-b3ef-88193a8e6b22.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38941 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53291 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99e29dba-cd25-43b8-b3ef-88193a8e6b22, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.780000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpsnnhu2y1/runtime/kernel-6b142c15-fd7f-4e73-ab26-b527a87174b7.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53179 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44375 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b142c15-fd7f-4e73-ab26-b527a87174b7, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.290000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6b142c15-fd7f-4e73-ab26-b527a87174b7 174s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7/interrupt (::1) 0.520000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 174s yield maybe_future(km.restart_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 174s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 174s await ensure_async(kernel.restart_kernel(now=now)) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 174s await self._async_shutdown_kernel(now=now, restart=True) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7/restart (::1) 2.420000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 174s yielded = ctx_run(next, result) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ________________________ KernelAPITest.test_no_kernels _________________________ 174s 174s self = 174s 174s def test_no_kernels(self): 174s """Make sure there are no kernels running at the start""" 174s kernels = self.kern_api.list().json() 174s > self.assertEqual(kernels, []) 174s E AssertionError: Lists differ: [{'id': '99e29dba-cd25-43b8-b3ef-88193a8e6[281 chars]: 0}] != [] 174s E 174s E First list contains 2 additional elements. 174s E First extra element 0: 174s E {'id': '99e29dba-cd25-43b8-b3ef-88193a8e6b22', 'name': 'python3', 'last_activity': '2026-01-24T09:58:49.148767Z', 'execution_state': 'starting', 'connections': 0} 174s E 174s E + [] 174s E - [{'connections': 0, 174s E - 'execution_state': 'starting', 174s E - 'id': '99e29dba-cd25-43b8-b3ef-88193a8e6b22', 174s E - 'last_activity': '2026-01-24T09:58:49.148767Z', 174s E - 'name': 'python3'}, 174s E - {'connections': 0, 174s E - 'execution_state': 'starting', 174s E - 'id': '6b142c15-fd7f-4e73-ab26-b527a87174b7', 174s E - 'last_activity': '2026-01-24T09:58:49.166675Z', 174s E - 'name': 'python3'}] 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.310000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99e29dba-cd25-43b8-b3ef-88193a8e6b22 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/99e29dba-cd25-43b8-b3ef-88193a8e6b22 (::1) 1.180000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b142c15-fd7f-4e73-ab26-b527a87174b7 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b142c15-fd7f-4e73-ab26-b527a87174b7 174s ---------------------------- Captured log teardown ----------------------------- 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6b142c15-fd7f-4e73-ab26-b527a87174b7 (::1) 3.700000ms 174s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 174s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 174s _____________________ AsyncKernelAPITest.test_connections ______________________ 174s 174s self = 174s 174s def tearDown(self): 174s for k in self.kern_api.list().json(): 174s > self.kern_api.shutdown(k['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log setup ------------------------------ 174s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpmcpe9dbq/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpmcpe9dbq/etc/jupyter'] for config files 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmcpe9dbq/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmcpe9dbq/config 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmcpe9dbq/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmcpe9dbq/config 174s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpmcpe9dbq/notebooks 174s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 174s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 174s WARNING NotebookApp:handlers.py:612 Forbidden 174s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.300000ms referer=None 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-d8679468-7ffe-4caa-80b4-14e49ccb4070.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33141 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36659 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: d8679468-7ffe-4caa-80b4-14e49ccb4070, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.880000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 0.350000ms 174s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070/channels 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 174s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50137 174s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 174s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel d8679468-7ffe-4caa-80b4-14e49ccb4070) to 5.4 (client). 174s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070/channels (::1) 399.160000ms 174s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070/channels 174s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36659 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50137 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33141 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40443 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50137 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33141 174s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 174s Setting websocket_ping_timeout=30000 174s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 1.160000ms 174s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:handlers.py:579 Websocket closed d8679468-7ffe-4caa-80b4-14e49ccb4070:e7cfa53c-27590769bbb8e8c145fde3a4 174s INFO NotebookApp:kernelmanager.py:222 Starting buffering for d8679468-7ffe-4caa-80b4-14e49ccb4070:e7cfa53c-27590769bbb8e8c145fde3a4 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 0.350000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 0.330000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8679468-7ffe-4caa-80b4-14e49ccb4070 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 3.470000ms referer=None 174s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 174s 174s self = 174s 174s def tearDown(self): 174s for k in self.kern_api.list().json(): 174s > self.kern_api.shutdown(k['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1d504300-f3a9-4fe8-a982-b746711c4d53 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-1d504300-f3a9-4fe8-a982-b746711c4d53.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48829 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37215 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d504300-f3a9-4fe8-a982-b746711c4d53, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.920000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d8679468-7ffe-4caa-80b4-14e49ccb4070 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d8679468-7ffe-4caa-80b4-14e49ccb4070 (::1) 1.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d504300-f3a9-4fe8-a982-b746711c4d53 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d504300-f3a9-4fe8-a982-b746711c4d53 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1d504300-f3a9-4fe8-a982-b746711c4d53 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1d504300-f3a9-4fe8-a982-b746711c4d53', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1d504300-f3a9-4fe8-a982-b746711c4d53 (::1) 5.410000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 174s 174s self = 174s 174s def test_kernel_handler(self): 174s # GET kernel with given id 174s kid = self.kern_api.start().json()['id'] 174s r = self.kern_api.get(kid) 174s kern1 = r.json() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(kern1, dict) 174s self.assertIn('id', kern1) 174s self.assertEqual(kern1['id'], kid) 174s 174s # Request a bad kernel id and check that a JSON 174s # message is returned! 174s bad_id = '111-111-111-111-111' 174s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 174s self.kern_api.get(bad_id) 174s 174s # DELETE kernel with id 174s > r = self.kern_api.shutdown(kid) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-3c912ed1-2dc8-4e7e-a615-cd1c8949e713.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40645 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56199 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c912ed1-2dc8-4e7e-a615-cd1c8949e713, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.830000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3c912ed1-2dc8-4e7e-a615-cd1c8949e713 (::1) 1.370000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 174s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 174s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.420000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3c912ed1-2dc8-4e7e-a615-cd1c8949e713 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3c912ed1-2dc8-4e7e-a615-cd1c8949e713', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3c912ed1-2dc8-4e7e-a615-cd1c8949e713 (::1) 8.870000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d504300-f3a9-4fe8-a982-b746711c4d53 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d504300-f3a9-4fe8-a982-b746711c4d53 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1d504300-f3a9-4fe8-a982-b746711c4d53 (::1) 0.450000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 107, in 174s from .encoder import JSONEncoder 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 851, in get_code 174s File "", line 950, in get_data 174s KeyboardInterrupt 174s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 174s 174s self = 174s 174s def test_main_kernel_handler(self): 174s # POST request 174s r = self.kern_api.start() 174s kern1 = r.json() 174s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 174s self.assertEqual(r.status_code, 201) 174s self.assertIsInstance(kern1, dict) 174s 174s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 174s expected_csp = '; '.join([ 174s "frame-ancestors 'self'", 174s 'report-uri ' + report_uri, 174s "default-src 'none'" 174s ]) 174s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 174s 174s # GET request 174s r = self.kern_api.list() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(r.json(), list) 174s self.assertEqual(r.json()[0]['id'], kern1['id']) 174s self.assertEqual(r.json()[0]['name'], kern1['name']) 174s 174s # create another kernel and check that they both are added to the 174s # list of kernels from a GET request 174s kern2 = self.kern_api.start().json() 174s assert isinstance(kern2, dict) 174s r = self.kern_api.list() 174s kernels = r.json() 174s self.assertEqual(r.status_code, 200) 174s assert isinstance(kernels, list) 174s self.assertEqual(len(kernels), 2) 174s 174s # Interrupt a kernel 174s r = self.kern_api.interrupt(kern2['id']) 174s self.assertEqual(r.status_code, 204) 174s 174s # Restart a kernel 174s > r = self.kern_api.restart(kern2['id']) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 174s return self._req('POST', url_path_join(id, 'restart')) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/6e6b2fe1-fcf8-467d-9360-dd2665818401/restart 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ----------------------------- Captured stderr call ----------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 174s from pathlib import Path 174s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 174s from glob import _StringGlobber, _no_recurse_symlinks 174s File "/usr/lib/python3.14/glob.py", line 5, in 174s import re 174s File "/usr/lib/python3.14/re/__init__.py", line 125, in 174s import enum 174s File "/usr/lib/python3.14/enum.py", line 1329, in 174s class ReprEnum(Enum): 174s KeyboardInterrupt 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-9f2282e2-b7b5-4865-af70-b8b74faeac9e.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56679 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37715 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f2282e2-b7b5-4865-af70-b8b74faeac9e, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.600000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmcpe9dbq/runtime/kernel-6e6b2fe1-fcf8-467d-9360-dd2665818401.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57919 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38313 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e6b2fe1-fcf8-467d-9360-dd2665818401, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.480000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6e6b2fe1-fcf8-467d-9360-dd2665818401 174s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6e6b2fe1-fcf8-467d-9360-dd2665818401/interrupt (::1) 0.490000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 174s yield maybe_future(km.restart_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 174s result = coro.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 174s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 174s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 174s yield self # This tells Task to wait for completion. 174s ^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 174s await ensure_async(kernel.restart_kernel(now=now)) 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 174s await self._async_shutdown_kernel(now=now, restart=True) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6e6b2fe1-fcf8-467d-9360-dd2665818401/restart (::1) 3.950000ms referer=None 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 174s yield maybe_future(km.shutdown_kernel(kernel_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 174s 174s self = 174s 174s def test_no_kernels(self): 174s """Make sure there are no kernels running at the start""" 174s kernels = self.kern_api.list().json() 174s > self.assertEqual(kernels, []) 174s E AssertionError: Lists differ: [{'id': '9f2282e2-b7b5-4865-af70-b8b74faea[281 chars]: 0}] != [] 174s E 174s E First list contains 2 additional elements. 174s E First extra element 0: 174s E {'id': '9f2282e2-b7b5-4865-af70-b8b74faeac9e', 'name': 'python3', 'last_activity': '2026-01-24T09:58:49.813312Z', 'execution_state': 'starting', 'connections': 0} 174s E 174s E + [] 174s E - [{'connections': 0, 174s E - 'execution_state': 'starting', 174s E - 'id': '9f2282e2-b7b5-4865-af70-b8b74faeac9e', 174s E - 'last_activity': '2026-01-24T09:58:49.813312Z', 174s E - 'name': 'python3'}, 174s E - {'connections': 0, 174s E - 'execution_state': 'starting', 174s E - 'id': '6e6b2fe1-fcf8-467d-9360-dd2665818401', 174s E - 'last_activity': '2026-01-24T09:58:49.834322Z', 174s E - 'name': 'python3'}] 174s 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.160000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9f2282e2-b7b5-4865-af70-b8b74faeac9e (::1) 1.140000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e6b2fe1-fcf8-467d-9360-dd2665818401 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e6b2fe1-fcf8-467d-9360-dd2665818401 174s ---------------------------- Captured log teardown ----------------------------- 174s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c912ed1-2dc8-4e7e-a615-cd1c8949e713 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f2282e2-b7b5-4865-af70-b8b74faeac9e 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d504300-f3a9-4fe8-a982-b746711c4d53 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d8679468-7ffe-4caa-80b4-14e49ccb4070 174s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 174s __________________________ SessionAPITest.test_create __________________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log setup ------------------------------ 174s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpca90llyd/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpca90llyd/etc/jupyter'] for config files 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpca90llyd/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpca90llyd/config 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpca90llyd/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpca90llyd/config 174s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpca90llyd/notebooks 174s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 174s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 174s WARNING NotebookApp:handlers.py:612 Forbidden 174s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-15aba19b-4c8a-4fcd-9044-b01efb0b478c.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33749 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55859 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 15aba19b-4c8a-4fcd-9044-b01efb0b478c, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpca90llyd/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.070000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf (::1) 0.400000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15aba19b-4c8a-4fcd-9044-b01efb0b478c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15aba19b-4c8a-4fcd-9044-b01efb0b478c 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf (::1) 4.060000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 49, in 174s import signal 174s File "/usr/lib/python3.14/signal.py", line 14, in 174s _IntEnum._convert_( 174s ~~~~~~~~~~~~~~~~~~^ 174s 'Handlers', __name__, 174s ^^^^^^^^^^^^^^^^^^^^^ 174s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/enum.py", line 899, in _convert_ 174s if filter(name)] 174s ~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/signal.py", line 16, in 174s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 174s 174s KeyboardInterrupt 174s __________________ SessionAPITest.test_create_console_session __________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f2f6ea8a-ee20-4dcd-9fee-5c4a16138f8f 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-b889390f-4b3a-44f6-a506-8b822b67f490.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54801 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60103 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: b889390f-4b3a-44f6-a506-8b822b67f490, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpca90llyd/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.230000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15aba19b-4c8a-4fcd-9044-b01efb0b478c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15aba19b-4c8a-4fcd-9044-b01efb0b478c 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/37ba90fc-3f67-4713-9074-f89fd09e6ebf (::1) 1.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b889390f-4b3a-44f6-a506-8b822b67f490 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b889390f-4b3a-44f6-a506-8b822b67f490 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f2f6ea8a-ee20-4dcd-9fee-5c4a16138f8f (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f2f6ea8a-ee20-4dcd-9fee-5c4a16138f8f', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f2f6ea8a-ee20-4dcd-9fee-5c4a16138f8f (::1) 3.780000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ____________________ SessionAPITest.test_create_deprecated _____________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a3ac723c-e074-41b7-a847-a6107a1537d6 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49259 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53853 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpca90llyd/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.320000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b889390f-4b3a-44f6-a506-8b822b67f490 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b889390f-4b3a-44f6-a506-8b822b67f490 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f2f6ea8a-ee20-4dcd-9fee-5c4a16138f8f (::1) 1.360000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a3ac723c-e074-41b7-a847-a6107a1537d6 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a3ac723c-e074-41b7-a847-a6107a1537d6', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a3ac723c-e074-41b7-a847-a6107a1537d6 (::1) 3.880000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 46, in 174s import locale 174s File "/usr/lib/python3.14/locale.py", line 1774, in 174s __all__.append("LC_MESSAGES") 174s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 174s KeyboardInterrupt 174s ___________________ SessionAPITest.test_create_file_session ____________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-b7180f96-6d16-440d-87a2-6b7f3a73ab16.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51801 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59891 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7180f96-6d16-440d-87a2-6b7f3a73ab16, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpca90llyd/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.230000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.230000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3766c3c-83f3-4e89-9ea5-3ecf6dee7e3c 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3ac723c-e074-41b7-a847-a6107a1537d6 (::1) 0.550000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b (::1) 3.830000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 49, in 174s import signal 174s File "/usr/lib/python3.14/signal.py", line 69, in 174s @_wraps(_signal.pthread_sigmask) 174s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/signal.py", line 50, in _wraps 174s def _wraps(wrapped): 174s 174s KeyboardInterrupt 174s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 174s 174s self = 174s 174s def test_create_with_kernel_id(self): 174s # create a new kernel 174s r = self.request('POST', 'api/kernels') 174s r.raise_for_status() 174s kernel = r.json() 174s 174s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 174s self.assertEqual(resp.status_code, 201) 174s newsession = resp.json() 174s self.assertIn('id', newsession) 174s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 174s self.assertEqual(newsession['kernel']['id'], kernel['id']) 174s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 174s 174s sessions = self.sess_api.list().json() 174s > self.assertEqual(sessions, [newsession]) 174s E AssertionError: Lists differ: [{'id': '1d11cfd5-5dd3-4e21-8115-2b57b37ad75b', 'pa[552 chars]ne}}] != [{'id': '1bed9768-b4ed-4ed0-9b10-78d10422f65a', 'pa[278 chars]ne}}] 174s E 174s E First differing element 0: 174s E {'id': '1d11cfd5-5dd3-4e21-8115-2b57b37ad75b', 'pa[217 chars]: 0}} 174s E {'id': '1bed9768-b4ed-4ed0-9b10-78d10422f65a', 'pa[277 chars]one}} 174s E 174s E First list contains 1 additional elements. 174s E First extra element 1: 174s E {'id': '1bed9768-b4ed-4ed0-9b10-78d10422f65a', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'aa77795a-89a2-4d06-aa53-04ec3f57fb36', 'name': 'python3', 'last_activity': '2026-01-24T09:58:50.108683Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 174s E 174s E Diff is 830 characters long. Set self.maxDiff to None to see it. 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-aa77795a-89a2-4d06-aa53-04ec3f57fb36.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44611 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59565 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: aa77795a-89a2-4d06-aa53-04ec3f57fb36, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.260000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.590000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7180f96-6d16-440d-87a2-6b7f3a73ab16 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1d11cfd5-5dd3-4e21-8115-2b57b37ad75b (::1) 1.440000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 5.950000ms referer=None 174s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ---------------------------- Captured stderr setup ----------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 49, in 174s import signal 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.360000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-32bb6a02-0320-4f17-9eda-1ec026c48048.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47009 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60237 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32bb6a02-0320-4f17-9eda-1ec026c48048, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.450000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa77795a-89a2-4d06-aa53-04ec3f57fb36 174s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 1.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.110000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32bb6a02-0320-4f17-9eda-1ec026c48048 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32bb6a02-0320-4f17-9eda-1ec026c48048 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 4.710000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 125, in 174s import selectors 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.290000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpca90llyd/runtime/kernel-2b54fa9a-9b8b-4d50-8ce1-14b6ff4ce16e.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44283 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43793 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b54fa9a-9b8b-4d50-8ce1-14b6ff4ce16e, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpca90llyd/notebooks/foo'} 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32bb6a02-0320-4f17-9eda-1ec026c48048 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32bb6a02-0320-4f17-9eda-1ec026c48048 174s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 14.380000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b54fa9a-9b8b-4d50-8ce1-14b6ff4ce16e 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b54fa9a-9b8b-4d50-8ce1-14b6ff4ce16e 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bed9768-b4ed-4ed0-9b10-78d10422f65a', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 174s yielded = self.gen.send(value) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 174s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 174s stopper = ensure_async(km.shutdown_kernel(now, restart)) 174s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 174s return _runner_map[name].run(inner) 174s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 174s return fut.result(None) 174s ~~~~~~~~~~^^^^^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 174s return self.__get_result() 174s ~~~~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 174s raise self._exception 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 107, in 174s from .encoder import JSONEncoder 174s File "/usr/lib/python3.14/json/encoder.py", line 19, in 174s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 174s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 174s return _compile(pattern, flags) 174s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 174s p = _compiler.compile(pattern, flags) 174s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 174s code = _code(p, flags) 174s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 174s _compile(code, p.data, flags) 174s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 174s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 174s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/re/_compiler.py", line 187, in _compile 174s code[tail] = _len(code) - tail 174s ~~~~^^^^^^ 174s KeyboardInterrupt 174s ---------------------------- Captured log teardown ----------------------------- 174s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b54fa9a-9b8b-4d50-8ce1-14b6ff4ce16e 174s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 174s _______________________ AsyncSessionAPITest.test_create ________________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d65c2a13-2ebb-4941-a0b6-8032e8ce3f6b 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log setup ------------------------------ 174s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7wovqrx_/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7wovqrx_/etc/jupyter'] for config files 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7wovqrx_/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7wovqrx_/config 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7wovqrx_/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 174s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7wovqrx_/config 174s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7wovqrx_/notebooks 174s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 174s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 174s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 174s WARNING NotebookApp:handlers.py:612 Forbidden 174s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.590000ms referer=None 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46949 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34089 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7wovqrx_/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.030000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d65c2a13-2ebb-4941-a0b6-8032e8ce3f6b (::1) 0.370000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.050000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d65c2a13-2ebb-4941-a0b6-8032e8ce3f6b (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d65c2a13-2ebb-4941-a0b6-8032e8ce3f6b', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 174s gc.collect() 174s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 174s 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 46, in 174s import locale 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 949, in _load_unlocked 174s KeyboardInterrupt 174s _______________ AsyncSessionAPITest.test_create_console_session ________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/df3837c2-f6c6-4a65-b267-b29a63aeb527 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-c0f49250-1f4d-4273-b933-065583e23209.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44997 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50723 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: c0f49250-1f4d-4273-b933-065583e23209, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7wovqrx_/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.880000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d65c2a13-2ebb-4941-a0b6-8032e8ce3f6b (::1) 1.250000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0f49250-1f4d-4273-b933-065583e23209 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0f49250-1f4d-4273-b933-065583e23209 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/df3837c2-f6c6-4a65-b267-b29a63aeb527 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/df3837c2-f6c6-4a65-b267-b29a63aeb527', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/df3837c2-f6c6-4a65-b267-b29a63aeb527 (::1) 3.640000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 110, in 174s _default_encoder = JSONEncoder( 174s skipkeys=False, 174s ...<5 lines>... 174s default=None, 174s ) 174s File "/usr/lib/python3.14/json/encoder.py", line 105, in __init__ 174s def __init__(self, *, skipkeys=False, ensure_ascii=True, 174s 174s KeyboardInterrupt 174s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/443ccba7-16d3-4219-bc6a-56d15db4f09c 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-9391cb12-b3d0-40c7-ae3a-b66017272694.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42303 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47825 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9391cb12-b3d0-40c7-ae3a-b66017272694, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7wovqrx_/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.920000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0f49250-1f4d-4273-b933-065583e23209 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0f49250-1f4d-4273-b933-065583e23209 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/df3837c2-f6c6-4a65-b267-b29a63aeb527 (::1) 1.190000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9391cb12-b3d0-40c7-ae3a-b66017272694 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9391cb12-b3d0-40c7-ae3a-b66017272694 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/443ccba7-16d3-4219-bc6a-56d15db4f09c (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/443ccba7-16d3-4219-bc6a-56d15db4f09c', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/443ccba7-16d3-4219-bc6a-56d15db4f09c (::1) 3.570000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s _________________ AsyncSessionAPITest.test_create_file_session _________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-41ebc854-1869-4d88-b47b-7c826fd9aea8.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58755 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43609 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41ebc854-1869-4d88-b47b-7c826fd9aea8, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7wovqrx_/notebooks/foo'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.810000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9391cb12-b3d0-40c7-ae3a-b66017272694 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9391cb12-b3d0-40c7-ae3a-b66017272694 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/443ccba7-16d3-4219-bc6a-56d15db4f09c (::1) 1.200000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34 (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34 (::1) 3.550000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 107, in 174s from .encoder import JSONEncoder 174s File "/usr/lib/python3.14/json/encoder.py", line 31, in 174s ESCAPE_DCT.setdefault(chr(i), '\\u{0:04x}'.format(i)) 174s ~~~^^^ 174s KeyboardInterrupt 174s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 174s 174s self = 174s 174s def test_create_with_kernel_id(self): 174s # create a new kernel 174s r = self.request('POST', 'api/kernels') 174s r.raise_for_status() 174s kernel = r.json() 174s 174s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 174s self.assertEqual(resp.status_code, 201) 174s newsession = resp.json() 174s self.assertIn('id', newsession) 174s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 174s self.assertEqual(newsession['kernel']['id'], kernel['id']) 174s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 174s 174s sessions = self.sess_api.list().json() 174s > self.assertEqual(sessions, [newsession]) 174s E AssertionError: Lists differ: [{'id': '42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34', 'p[553 chars]ne}}] != [{'id': '1bb3058b-afcc-488b-83b5-a9911f8c555d', 'p[279 chars]ne}}] 174s E 174s E First differing element 0: 174s E {'id': '42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34', 'p[218 chars]: 0}} 174s E {'id': '1bb3058b-afcc-488b-83b5-a9911f8c555d', 'p[278 chars]one}} 174s E 174s E First list contains 1 additional elements. 174s E First extra element 1: 174s E {'id': '1bb3058b-afcc-488b-83b5-a9911f8c555d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '22f40d9a-1de7-42cd-b37e-b88bb7a3293c', 'name': 'python3', 'last_activity': '2026-01-24T09:58:50.388182Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 174s E 174s E Diff is 830 characters long. Set self.maxDiff to None to see it. 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-22f40d9a-1de7-42cd-b37e-b88bb7a3293c.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34817 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57977 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.740000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.240000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42ae28fe-4b4a-4e84-9cc9-9c1f41dbef34 (::1) 1.220000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 3.570000ms referer=None 174s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ---------------------------- Captured stderr setup ----------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 174s from typing import TYPE_CHECKING, Any 174s File "", line 1371, in _find_and_load 174s File "", line 1342, in _find_and_load_unlocked 174s File "", line 938, in _load_unlocked 174s File "", line 755, in exec_module 174s File "", line 888, in get_code 174s File "", line 511, in _compile_bytecode 174s KeyboardInterrupt 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.460000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-cc15093d-2f6f-4df5-bed0-d6339015ecdd.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54715 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58883 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc15093d-2f6f-4df5-bed0-d6339015ecdd, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.400000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 1.380000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.340000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc15093d-2f6f-4df5-bed0-d6339015ecdd 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc15093d-2f6f-4df5-bed0-d6339015ecdd 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s ERROR NotebookApp:log.py:55 { 174s "Host": "localhost:12341", 174s "Accept": "*/*", 174s "User-Agent": "python-requests/2.32.5" 174s } 174s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 3.590000ms referer=None 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 174s from subprocess import PIPE, Popen 174s File "/usr/lib/python3.14/subprocess.py", line 49, in 174s import signal 174s File "/usr/lib/python3.14/signal.py", line 7, in 174s _IntEnum._convert_( 174s ~~~~~~~~~~~~~~~~~~^ 174s 'Signals', __name__, 174s ^^^^^^^^^^^^^^^^^^^^ 174s ...<2 lines>... 174s and (name.startswith('SIG') and not name.startswith('SIG_')) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s or name.startswith('CTRL_')) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 174s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 174s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 174s setattr(enum_class, name, member) 174s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 174s def __setattr__(cls, name, value): 174s 174s KeyboardInterrupt 174s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 174s 174s @self.addCleanup 174s def cleanup_sessions(): 174s for session in self.sess_api.list().json(): 174s > self.sess_api.delete(session['id']) 174s 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 174s return self._req('DELETE', id) 174s ^^^^^^^^^^^^^^^^^^^^^^^ 174s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 174s response.raise_for_status() 174s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 174s 174s self = 174s 174s def raise_for_status(self): 174s """Raises :class:`HTTPError`, if one occurred.""" 174s 174s http_error_msg = "" 174s if isinstance(self.reason, bytes): 174s # We attempt to decode utf-8 first because some servers 174s # choose to localize their reason strings. If the string 174s # isn't utf-8, we fall back to iso-8859-1 for all other 174s # encodings. (See PR #3538) 174s try: 174s reason = self.reason.decode("utf-8") 174s except UnicodeDecodeError: 174s reason = self.reason.decode("iso-8859-1") 174s else: 174s reason = self.reason 174s 174s if 400 <= self.status_code < 500: 174s http_error_msg = ( 174s f"{self.status_code} Client Error: {reason} for url: {self.url}" 174s ) 174s 174s elif 500 <= self.status_code < 600: 174s http_error_msg = ( 174s f"{self.status_code} Server Error: {reason} for url: {self.url}" 174s ) 174s 174s if http_error_msg: 174s > raise HTTPError(http_error_msg, response=self) 174s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d 174s 174s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 174s ------------------------------ Captured log call ------------------------------- 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.270000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 174s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7wovqrx_/runtime/kernel-32016218-7bc0-46c0-9864-bcae1a786dbc.json'] 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35455 174s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41851 174s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32016218-7bc0-46c0-9864-bcae1a786dbc, name: python3 174s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp7wovqrx_/notebooks/foo'} 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc15093d-2f6f-4df5-bed0-d6339015ecdd 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc15093d-2f6f-4df5-bed0-d6339015ecdd 174s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 12.900000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 174s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 174s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32016218-7bc0-46c0-9864-bcae1a786dbc 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32016218-7bc0-46c0-9864-bcae1a786dbc 174s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d (::1) 174s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1bb3058b-afcc-488b-83b5-a9911f8c555d', version='HTTP/1.1', remote_ip='::1') 174s Traceback (most recent call last): 174s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 174s result = await result 174s ^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 174s future.result() 174s ~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 174s yield maybe_future(sm.delete_session(session_id)) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 174s yielded = self.gen.throw(exc) 174s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 174s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 174s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 174s value = future.result() 174s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 174s raise self._exception.with_traceback(self._exception_tb) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 174s result = coro.send(None) 174s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 174s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 174s raise km.ready.exception() # type: ignore[misc] 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 174s await kernel_awaitable 174s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 174s result = await obj 174s ^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 174s raise e 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 174s out = await method(self, *args, **kwargs) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 174s await self._async_finish_shutdown(restart=restart) 174s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 174s await asyncio.wait_for( 174s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 174s ) 174s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 174s async with timeouts.timeout(timeout): 174s ~~~~~~~~~~~~~~~~^^^^^^^^^ 174s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 174s raise RuntimeError("Timeout should be used inside a task") 174s RuntimeError: Timeout should be used inside a task 174s WARNING NotebookApp:handlers.py:612 Unhandled error 174s --------------------------- Captured stderr teardown --------------------------- 174s Traceback (most recent call last): 174s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 174s return _run_code(code, main_globals, None, 174s "__main__", mod_spec) 174s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 174s exec(code, run_globals) 174s ~~~~^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 174s from ipykernel import kernelapp as app 174s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 174s from .connect import * # noqa: F403 174s ^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 174s import json 174s File "/usr/lib/python3.14/json/__init__.py", line 106, in 174s from .decoder import JSONDecoder, JSONDecodeError 174s File "/usr/lib/python3.14/json/decoder.py", line 5, in 174s from json import scanner 174s File "/usr/lib/python3.14/json/scanner.py", line 11, in 174s NUMBER_RE = re.compile( 174s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 174s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 174s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 174s return _compile(pattern, flags) 174s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 174s p = _compiler.compile(pattern, flags) 174s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 174s p = _parser.parse(p, flags) 174s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 174s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 174s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 174s itemsappend(_parse(source, state, verbose, nested + 1, 174s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174s not nested and not items)) 174s ^^^^^^^^^^^^^^^^^^^^^^^^^ 174s File "/usr/lib/python3.14/re/_parser.py", line 861, in _parse 174s state.closegroup(group, p) 174s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 174s File "/usr/lib/python3.14/re/_parser.py", line 99, in closegroup 174s self.groupwidths[gid] = p.getwidth() 174s ~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/re/_parser.py", line 202, in getwidth 174s i, j = av[2].getwidth() 174s ~~~~~~~~~~~~~~^^ 174s File "/usr/lib/python3.14/re/_parser.py", line 178, in getwidth 174s def getwidth(self): 174s 174s KeyboardInterrupt 174s ---------------------------- Captured log teardown ----------------------------- 174s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0f49250-1f4d-4273-b933-065583e23209 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22f40d9a-1de7-42cd-b37e-b88bb7a3293c 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9391cb12-b3d0-40c7-ae3a-b66017272694 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc15093d-2f6f-4df5-bed0-d6339015ecdd 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ebc854-1869-4d88-b47b-7c826fd9aea8 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32016218-7bc0-46c0-9864-bcae1a786dbc 174s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e7b834-6bf2-475e-99f6-daf7fe9c2ed5 174s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 174s =============================== warnings summary =============================== 174s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 174s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 174s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 174s return LooseVersion(v) >= LooseVersion(check) 174s 174s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 174s services/kernels/tests/test_kernels_api.py: 65 warnings 174s services/sessions/tests/test_sessions_api.py: 88 warnings 174s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 174s dt = unaware(*args, **kwargs) 174s 174s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 174s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 174s pytestmark = pytest.mark.integration_tests 174s 174s services/kernels/tests/test_kernels_api.py: 6 warnings 174s services/sessions/tests/test_sessions_api.py: 6 warnings 174s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 174s policy = events.get_event_loop_policy() 174s 174s services/kernels/tests/test_kernels_api.py: 24 warnings 174s services/sessions/tests/test_sessions_api.py: 19 warnings 174s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 174s loop = events.get_event_loop_policy().get_event_loop() 174s 174s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 174s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 174s loop.make_current() 174s 174s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 174s =========================== short test summary info ============================ 174s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 174s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 174s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 174s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 174s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 174s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 174s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 174s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 174s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 174s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 174s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 174s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 174s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 174s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 174s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 174s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 3.23s ========== 174s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 174s *** STARTING RUN 5: python3.14 -m pytest --pyargs notebook -rfE --last-failed --last-failed-no-failures none --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 176s ============================= test session starts ============================== 176s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 176s rootdir: /tmp/autopkgtest.XpnBhI/autopkgtest_tmp 176s plugins: typeguard-4.4.4 176s collected 330 items / 307 deselected / 23 selected 176s run-last-failure: rerun previous 23 failures 176s 177s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 177s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 177s 177s ==================================== ERRORS ==================================== 177s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 177s 177s self = 177s 177s def tearDown(self): 177s for k in self.kern_api.list().json(): 177s > self.kern_api.shutdown(k['id']) 177s 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ----------------------------- Captured stderr call ----------------------------- 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 177s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 177s from ipykernel import kernelapp as app 177s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 177s from .connect import * # noqa: F403 177s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 177s import json 177s File "/usr/lib/python3.14/json/__init__.py", line 106, in 177s from .decoder import JSONDecoder, JSONDecodeError 177s File "/usr/lib/python3.14/json/decoder.py", line 5, in 177s from json import scanner 177s File "/usr/lib/python3.14/json/scanner.py", line 13, in 177s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 177s File "/usr/lib/python3.14/enum.py", line 1591, in __or__ 177s return self.__class__(value | other_value) 177s File "/usr/lib/python3.14/enum.py", line 707, in __call__ 177s return cls.__new__(cls, value) 177s File "/usr/lib/python3.14/enum.py", line 1177, in __new__ 177s result = cls._missing_(value) 177s File "/usr/lib/python3.14/enum.py", line 1511, in _missing_ 177s for m in cls._iter_member_(member_value): 177s File "/usr/lib/python3.14/enum.py", line 1440, in _iter_member_by_def_ 177s yield from sorted( 177s File "/usr/lib/python3.14/enum.py", line 1430, in _iter_member_by_value_ 177s for val in _iter_bits_lsb(value & cls._flag_mask_): 177s File "/usr/lib/python3.14/enum.py", line 117, in _iter_bits_lsb 177s if isinstance(num, Enum): 177s KeyboardInterrupt 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s "__main__", mod_spec) 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 177s ~~~~^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 177s from ipykernel import kernelapp as app 177s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 177s from .connect import * # noqa: F403 177s ^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 177s import jupyter_client 177s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 177s from .asynchronous import AsyncKernelClient 177s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 177s from .client import AsyncKernelClient # noqa 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 177s import zmq.asyncio 177s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 177s import asyncio 177s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 177s from .base_events import * 177s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 177s import ssl 177s File "/usr/lib/python3.14/ssl.py", line 100, in 177s import _ssl # if we can't import it, let the error propagate 177s ^^^^^^^^^^^ 177s KeyboardInterrupt 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-f626ded3-ca2d-4a6e-b5ef-b23fd44427b0.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58025 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60089 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: f626ded3-ca2d-4a6e-b5ef-b23fd44427b0, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.560000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-92644c70-d22a-4bbb-8de7-fbb6748e6366.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48975 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59373 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92644c70-d22a-4bbb-8de7-fbb6748e6366, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 92644c70-d22a-4bbb-8de7-fbb6748e6366 177s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366/interrupt (::1) 3.750000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 177s yield maybe_future(km.restart_kernel(kernel_id)) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 177s raise self._exception.with_traceback(self._exception_tb) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 177s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 177s await ensure_async(kernel.restart_kernel(now=now)) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 177s await self._async_shutdown_kernel(now=now, restart=True) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366/restart (::1) 4.510000ms referer=None 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 177s yielded = ctx_run(next, result) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 177s yield maybe_future(km.shutdown_kernel(kernel_id)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 177s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 177s stopper = ensure_async(km.shutdown_kernel(now, restart)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 (::1) 3.470000ms referer=None 177s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 177s 177s self = 177s 177s def tearDown(self): 177s for k in self.kern_api.list().json(): 177s > self.kern_api.shutdown(k['id']) 177s 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ----------------------------- Captured stderr call ----------------------------- 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 177s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 177s from pathlib import Path 177s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 177s from glob import _StringGlobber, _no_recurse_symlinks 177s File "/usr/lib/python3.14/glob.py", line 5, in 177s import re 177s File "/usr/lib/python3.14/re/__init__.py", line 143, in 177s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 177s File "/usr/lib/python3.14/enum.py", line 1836, in convert_class 177s member._sort_order_ = len(member_names) 177s KeyboardInterrupt 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s "__main__", mod_spec) 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 177s ~~~~^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 177s from ipykernel import kernelapp as app 177s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 177s from .connect import * # noqa: F403 177s ^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 177s import jupyter_client 177s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 177s from .asynchronous import AsyncKernelClient 177s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 177s from .client import AsyncKernelClient # noqa 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 177s import zmq.asyncio 177s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 177s import asyncio 177s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 177s from .base_events import * 177s File "/usr/lib/python3.14/asyncio/base_events.py", line 23, in 177s import socket 177s File "/usr/lib/python3.14/socket.py", line 52, in 177s import _socket 177s KeyboardInterrupt 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-c475e24f-a4a4-4965-8d1b-874aeacbdcaf.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58955 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58449 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: c475e24f-a4a4-4965-8d1b-874aeacbdcaf, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.640000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-2aeffa5a-6fcf-40ad-984b-429fd1b1c698.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56489 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54085 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2aeffa5a-6fcf-40ad-984b-429fd1b1c698, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.420000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2aeffa5a-6fcf-40ad-984b-429fd1b1c698 177s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698/interrupt (::1) 0.400000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 177s yield maybe_future(km.restart_kernel(kernel_id)) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 177s raise self._exception.with_traceback(self._exception_tb) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 177s result = coro.throw(exc) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 177s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 177s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 177s yield self # This tells Task to wait for completion. 177s ^^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 177s future.result() 177s ~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 177s raise self._exception.with_traceback(self._exception_tb) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 177s await ensure_async(kernel.restart_kernel(now=now)) 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 177s result = await obj 177s ^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 177s await self._async_shutdown_kernel(now=now, restart=True) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698/restart (::1) 4.040000ms referer=None 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.090000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c475e24f-a4a4-4965-8d1b-874aeacbdcaf 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c475e24f-a4a4-4965-8d1b-874aeacbdcaf 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 177s await kernel_awaitable 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 177s result = await obj 177s ^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 177s future.result() 177s ~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 177s yielded = self.gen.throw(exc) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 177s yield maybe_future(km.shutdown_kernel(kernel_id)) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 177s raise self._exception.with_traceback(self._exception_tb) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 177s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 177s raise km.ready.exception() # type: ignore[misc] 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 177s await kernel_awaitable 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 177s result = await obj 177s ^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf (::1) 3.310000ms referer=None 177s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 177s 177s @self.addCleanup 177s def cleanup_sessions(): 177s for session in self.sess_api.list().json(): 177s > self.sess_api.delete(session['id']) 177s 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-505b00c1-97f2-4319-a836-c0065385adec.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59107 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38933 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: 505b00c1-97f2-4319-a836-c0065385adec, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.650000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.450000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9cd9ac4-ea41-4869-b048-e8039d8179fb 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9cd9ac4-ea41-4869-b048-e8039d8179fb 177s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d8145f11-0d5e-46a4-ac0b-21bcf3219cd0 (::1) 1.250000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 505b00c1-97f2-4319-a836-c0065385adec 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 505b00c1-97f2-4319-a836-c0065385adec 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 177s yielded = self.gen.throw(exc) 177s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 177s yield maybe_future(sm.delete_session(session_id)) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 177s yielded = self.gen.send(value) 177s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 177s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 177s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 177s stopper = ensure_async(km.shutdown_kernel(now, restart)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 3.750000ms referer=None 177s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 177s 177s @self.addCleanup 177s def cleanup_sessions(): 177s for session in self.sess_api.list().json(): 177s > self.sess_api.delete(session['id']) 177s 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-be09c451-a4c6-4dae-a394-2a91177b5aa8.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40603 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37921 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: be09c451-a4c6-4dae-a394-2a91177b5aa8, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.550000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.440000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.520000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 177s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9 (::1) 0.460000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be09c451-a4c6-4dae-a394-2a91177b5aa8 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be09c451-a4c6-4dae-a394-2a91177b5aa8 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 177s await kernel_awaitable 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 177s result = await obj 177s ^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 177s future.result() 177s ~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 177s yielded = self.gen.throw(exc) 177s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 177s yield maybe_future(sm.delete_session(session_id)) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 177s yielded = self.gen.throw(exc) 177s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 177s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 177s value = future.result() 177s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 177s raise self._exception.with_traceback(self._exception_tb) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 177s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 177s raise km.ready.exception() # type: ignore[misc] 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 177s await kernel_awaitable 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 177s result = await obj 177s ^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 3.620000ms referer=None 177s =================================== FAILURES =================================== 177s ______________________ KernelAPITest.test_default_kernel _______________________ 177s 177s self = 177s 177s def tearDown(self): 177s for k in self.kern_api.list().json(): 177s > self.kern_api.shutdown(k['id']) 177s 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ------------------------------ Captured log setup ------------------------------ 177s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpusabumwu/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpusabumwu/etc/jupyter'] for config files 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpusabumwu/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpusabumwu/config 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpusabumwu/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 177s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpusabumwu/config 177s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpusabumwu/notebooks 177s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 177s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 177s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 177s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 177s WARNING NotebookApp:handlers.py:612 Forbidden 177s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.510000ms referer=None 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-2fcf0adb-eadc-43d6-8d6a-68a48b4e7049.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36607 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57011 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2fcf0adb-eadc-43d6-8d6a-68a48b4e7049, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 31.090000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2fcf0adb-eadc-43d6-8d6a-68a48b4e7049', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 177s yielded = ctx_run(next, result) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 177s yield maybe_future(km.shutdown_kernel(kernel_id)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 177s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 177s stopper = ensure_async(km.shutdown_kernel(now, restart)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 (::1) 6.020000ms referer=None 177s --------------------------- Captured stderr teardown --------------------------- 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s "__main__", mod_spec) 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 177s ~~~~^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 177s from ipykernel import kernelapp as app 177s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 177s from .connect import * # noqa: F403 177s ^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 177s from subprocess import PIPE, Popen 177s File "/usr/lib/python3.14/subprocess.py", line 49, in 177s import signal 177s File "/usr/lib/python3.14/signal.py", line 7, in 177s _IntEnum._convert_( 177s ~~~~~~~~~~~~~~~~~~^ 177s 'Signals', __name__, 177s ^^^^^^^^^^^^^^^^^^^^ 177s ...<2 lines>... 177s and (name.startswith('SIG') and not name.startswith('SIG_')) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s or name.startswith('CTRL_')) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3.14/enum.py", line 906, in _convert_ 177s body = {t[0]: t[1] for t in members} 177s ^^^^^^^^^^ 177s KeyboardInterrupt 177s ______________________ KernelAPITest.test_kernel_handler _______________________ 177s 177s self = 177s 177s def test_kernel_handler(self): 177s # GET kernel with given id 177s kid = self.kern_api.start().json()['id'] 177s r = self.kern_api.get(kid) 177s kern1 = r.json() 177s self.assertEqual(r.status_code, 200) 177s assert isinstance(kern1, dict) 177s self.assertIn('id', kern1) 177s self.assertEqual(kern1['id'], kid) 177s 177s # Request a bad kernel id and check that a JSON 177s # message is returned! 177s bad_id = '111-111-111-111-111' 177s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 177s self.kern_api.get(bad_id) 177s 177s # DELETE kernel with id 177s > r = self.kern_api.shutdown(kid) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 177s return self._req('DELETE', id) 177s ^^^^^^^^^^^^^^^^^^^^^^^ 177s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 177s response.raise_for_status() 177s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 177s 177s self = 177s 177s def raise_for_status(self): 177s """Raises :class:`HTTPError`, if one occurred.""" 177s 177s http_error_msg = "" 177s if isinstance(self.reason, bytes): 177s # We attempt to decode utf-8 first because some servers 177s # choose to localize their reason strings. If the string 177s # isn't utf-8, we fall back to iso-8859-1 for all other 177s # encodings. (See PR #3538) 177s try: 177s reason = self.reason.decode("utf-8") 177s except UnicodeDecodeError: 177s reason = self.reason.decode("iso-8859-1") 177s else: 177s reason = self.reason 177s 177s if 400 <= self.status_code < 500: 177s http_error_msg = ( 177s f"{self.status_code} Client Error: {reason} for url: {self.url}" 177s ) 177s 177s elif 500 <= self.status_code < 600: 177s http_error_msg = ( 177s f"{self.status_code} Server Error: {reason} for url: {self.url}" 177s ) 177s 177s if http_error_msg: 177s > raise HTTPError(http_error_msg, response=self) 177s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b58d2d51-1545-476a-9be0-f655423ef2fe 177s 177s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 177s ------------------------------ Captured log call ------------------------------- 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 177s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-b58d2d51-1545-476a-9be0-f655423ef2fe.json'] 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57089 177s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47791 177s INFO NotebookApp:kernelmanager.py:179 Kernel started: b58d2d51-1545-476a-9be0-f655423ef2fe, name: python3 177s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 177s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.210000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b58d2d51-1545-476a-9be0-f655423ef2fe (::1) 1.110000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 177s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 177s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.370000ms referer=None 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b58d2d51-1545-476a-9be0-f655423ef2fe 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b58d2d51-1545-476a-9be0-f655423ef2fe 177s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b58d2d51-1545-476a-9be0-f655423ef2fe (::1) 177s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b58d2d51-1545-476a-9be0-f655423ef2fe', version='HTTP/1.1', remote_ip='::1') 177s Traceback (most recent call last): 177s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 177s result = await result 177s ^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 177s yielded = ctx_run(next, result) 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 177s yield maybe_future(km.shutdown_kernel(kernel_id)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 177s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 177s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 177s stopper = ensure_async(km.shutdown_kernel(now, restart)) 177s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 177s return _runner_map[name].run(inner) 177s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 177s return fut.result(None) 177s ~~~~~~~~~~^^^^^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 177s return self.__get_result() 177s ~~~~~~~~~~~~~~~~~^^ 177s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 177s raise self._exception 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 177s result = coro.send(None) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 177s raise e 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 177s out = await method(self, *args, **kwargs) 177s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 177s await self._async_finish_shutdown(restart=restart) 177s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 177s await asyncio.wait_for( 177s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 177s ) 177s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 177s async with timeouts.timeout(timeout): 177s ~~~~~~~~~~~~~~~~^^^^^^^^^ 177s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 177s raise RuntimeError("Timeout should be used inside a task") 177s RuntimeError: Timeout should be used inside a task 177s WARNING NotebookApp:handlers.py:612 Unhandled error 177s ERROR NotebookApp:log.py:55 { 177s "Host": "localhost:12341", 177s "Accept": "*/*", 177s "User-Agent": "python-requests/2.32.5" 177s } 177s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b58d2d51-1545-476a-9be0-f655423ef2fe (::1) 3.550000ms referer=None 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 177s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2fcf0adb-eadc-43d6-8d6a-68a48b4e7049 (::1) 0.530000ms 177s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 177s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b58d2d51-1545-476a-9be0-f655423ef2fe 177s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b58d2d51-1545-476a-9be0-f655423ef2fe 177s --------------------------- Captured stderr teardown --------------------------- 177s Traceback (most recent call last): 177s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 177s return _run_code(code, main_globals, None, 177s "__main__", mod_spec) 177s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 177s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 49, in 178s import signal 178s File "", line 1369, in _find_and_load 178s KeyboardInterrupt 178s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 178s 178s self = 178s 178s def test_main_kernel_handler(self): 178s # POST request 178s r = self.kern_api.start() 178s kern1 = r.json() 178s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 178s self.assertEqual(r.status_code, 201) 178s self.assertIsInstance(kern1, dict) 178s 178s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 178s expected_csp = '; '.join([ 178s "frame-ancestors 'self'", 178s 'report-uri ' + report_uri, 178s "default-src 'none'" 178s ]) 178s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 178s 178s # GET request 178s r = self.kern_api.list() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(r.json(), list) 178s self.assertEqual(r.json()[0]['id'], kern1['id']) 178s self.assertEqual(r.json()[0]['name'], kern1['name']) 178s 178s # create another kernel and check that they both are added to the 178s # list of kernels from a GET request 178s kern2 = self.kern_api.start().json() 178s assert isinstance(kern2, dict) 178s r = self.kern_api.list() 178s kernels = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kernels, list) 178s self.assertEqual(len(kernels), 2) 178s 178s # Interrupt a kernel 178s r = self.kern_api.interrupt(kern2['id']) 178s self.assertEqual(r.status_code, 204) 178s 178s # Restart a kernel 178s > r = self.kern_api.restart(kern2['id']) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 178s return self._req('POST', url_path_join(id, 'restart')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366/restart 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 106, in 178s from .decoder import JSONDecoder, JSONDecodeError 178s File "/usr/lib/python3.14/json/decoder.py", line 5, in 178s from json import scanner 178s File "/usr/lib/python3.14/json/scanner.py", line 13, in 178s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 178s File "/usr/lib/python3.14/enum.py", line 1591, in __or__ 178s return self.__class__(value | other_value) 178s File "/usr/lib/python3.14/enum.py", line 707, in __call__ 178s return cls.__new__(cls, value) 178s File "/usr/lib/python3.14/enum.py", line 1177, in __new__ 178s result = cls._missing_(value) 178s File "/usr/lib/python3.14/enum.py", line 1511, in _missing_ 178s for m in cls._iter_member_(member_value): 178s File "/usr/lib/python3.14/enum.py", line 1440, in _iter_member_by_def_ 178s yield from sorted( 178s File "/usr/lib/python3.14/enum.py", line 1430, in _iter_member_by_value_ 178s for val in _iter_bits_lsb(value & cls._flag_mask_): 178s File "/usr/lib/python3.14/enum.py", line 117, in _iter_bits_lsb 178s if isinstance(num, Enum): 178s KeyboardInterrupt 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 178s import jupyter_client 178s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 178s from .asynchronous import AsyncKernelClient 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 178s from .client import AsyncKernelClient # noqa 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 178s import zmq.asyncio 178s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 178s import asyncio 178s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 178s from .base_events import * 178s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 178s import ssl 178s File "/usr/lib/python3.14/ssl.py", line 100, in 178s import _ssl # if we can't import it, let the error propagate 178s ^^^^^^^^^^^ 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-f626ded3-ca2d-4a6e-b5ef-b23fd44427b0.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58025 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60089 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: f626ded3-ca2d-4a6e-b5ef-b23fd44427b0, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpusabumwu/runtime/kernel-92644c70-d22a-4bbb-8de7-fbb6748e6366.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48975 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59373 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92644c70-d22a-4bbb-8de7-fbb6748e6366, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 92644c70-d22a-4bbb-8de7-fbb6748e6366 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366/interrupt (::1) 3.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366/restart (::1) 4.510000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 178s yielded = ctx_run(next, result) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 (::1) 3.470000ms referer=None 178s ________________________ KernelAPITest.test_no_kernels _________________________ 178s 178s self = 178s 178s def test_no_kernels(self): 178s """Make sure there are no kernels running at the start""" 178s kernels = self.kern_api.list().json() 178s > self.assertEqual(kernels, []) 178s E AssertionError: Lists differ: [{'id': 'f626ded3-ca2d-4a6e-b5ef-b23fd4442[281 chars]: 0}] != [] 178s E 178s E First list contains 2 additional elements. 178s E First extra element 0: 178s E {'id': 'f626ded3-ca2d-4a6e-b5ef-b23fd44427b0', 'name': 'python3', 'last_activity': '2026-01-24T09:58:52.938767Z', 'execution_state': 'starting', 'connections': 0} 178s E 178s E + [] 178s E - [{'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': 'f626ded3-ca2d-4a6e-b5ef-b23fd44427b0', 178s E - 'last_activity': '2026-01-24T09:58:52.938767Z', 178s E - 'name': 'python3'}, 178s E - {'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': '92644c70-d22a-4bbb-8de7-fbb6748e6366', 178s E - 'last_activity': '2026-01-24T09:58:52.955676Z', 178s E - 'name': 'python3'}] 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.410000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f626ded3-ca2d-4a6e-b5ef-b23fd44427b0 (::1) 0.450000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92644c70-d22a-4bbb-8de7-fbb6748e6366 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92644c70-d22a-4bbb-8de7-fbb6748e6366 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/92644c70-d22a-4bbb-8de7-fbb6748e6366 (::1) 0.510000ms 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s _____________________ AsyncKernelAPITest.test_connections ______________________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwpipeqeg/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwpipeqeg/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwpipeqeg/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwpipeqeg/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwpipeqeg/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwpipeqeg/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwpipeqeg/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.320000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-90321a27-961b-44a0-8a5d-49cda11cb5e3.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57749 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48133 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 90321a27-961b-44a0-8a5d-49cda11cb5e3, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.900000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 1.170000ms 178s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3/channels 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 178s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33669 178s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 178s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 90321a27-961b-44a0-8a5d-49cda11cb5e3) to 5.4 (client). 178s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3/channels (::1) 398.240000ms 178s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3/channels 178s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48133 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33669 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57749 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56107 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33669 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57749 178s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 178s Setting websocket_ping_timeout=30000 178s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 0.470000ms 178s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 0.960000ms 178s DEBUG NotebookApp:handlers.py:579 Websocket closed 90321a27-961b-44a0-8a5d-49cda11cb5e3:69ff3d5f-a555bf8de168a9d912b34bbb 178s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 90321a27-961b-44a0-8a5d-49cda11cb5e3:69ff3d5f-a555bf8de168a9d912b34bbb 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 90321a27-961b-44a0-8a5d-49cda11cb5e3:iopub 178s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 90321a27-961b-44a0-8a5d-49cda11cb5e3:iopub 178s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 90321a27-961b-44a0-8a5d-49cda11cb5e3:iopub 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 1.430000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 0.990000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 90321a27-961b-44a0-8a5d-49cda11cb5e3:69ff3d5f-a555bf8de168a9d912b34bbb 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 3.700000ms referer=None 178s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-03b6764e-c2a9-4b01-8ad3-f4ac88f488ed.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37663 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53605 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.820000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.630000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/90321a27-961b-44a0-8a5d-49cda11cb5e3 (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/03b6764e-c2a9-4b01-8ad3-f4ac88f488ed (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/03b6764e-c2a9-4b01-8ad3-f4ac88f488ed', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 6, in 178s import fnmatch 178s File "/usr/lib/python3.14/fnmatch.py", line 105, in 178s _re_setops_sub = re.compile(r'([&~|])').sub 178s ~~~~~~~~~~^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/re/__init__.py", line 287, in compile 178s def compile(pattern, flags=0): 178s 178s KeyboardInterrupt 178s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 178s 178s self = 178s 178s def test_kernel_handler(self): 178s # GET kernel with given id 178s kid = self.kern_api.start().json()['id'] 178s r = self.kern_api.get(kid) 178s kern1 = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kern1, dict) 178s self.assertIn('id', kern1) 178s self.assertEqual(kern1['id'], kid) 178s 178s # Request a bad kernel id and check that a JSON 178s # message is returned! 178s bad_id = '111-111-111-111-111' 178s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 178s self.kern_api.get(bad_id) 178s 178s # DELETE kernel with id 178s > r = self.kern_api.shutdown(kid) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50923 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43069 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.220000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd (::1) 1.160000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 178s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 178s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.380000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd (::1) 4.290000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.130000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/03b6764e-c2a9-4b01-8ad3-f4ac88f488ed (::1) 0.440000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 49, in 178s import signal 178s File "/usr/lib/python3.14/signal.py", line 19, in 178s _IntEnum._convert_( 178s ~~~~~~~~~~~~~~~~~~^ 178s 'Sigmasks', __name__, 178s ^^^^^^^^^^^^^^^^^^^^^ 178s lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 178s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 178s File "/usr/lib/python3.14/enum.py", line 1780, in convert_class 178s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 46, in _is_dunder 178s def _is_dunder(name): 178s 178s KeyboardInterrupt 178s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 178s 178s self = 178s 178s def test_main_kernel_handler(self): 178s # POST request 178s r = self.kern_api.start() 178s kern1 = r.json() 178s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 178s self.assertEqual(r.status_code, 201) 178s self.assertIsInstance(kern1, dict) 178s 178s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 178s expected_csp = '; '.join([ 178s "frame-ancestors 'self'", 178s 'report-uri ' + report_uri, 178s "default-src 'none'" 178s ]) 178s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 178s 178s # GET request 178s r = self.kern_api.list() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(r.json(), list) 178s self.assertEqual(r.json()[0]['id'], kern1['id']) 178s self.assertEqual(r.json()[0]['name'], kern1['name']) 178s 178s # create another kernel and check that they both are added to the 178s # list of kernels from a GET request 178s kern2 = self.kern_api.start().json() 178s assert isinstance(kern2, dict) 178s r = self.kern_api.list() 178s kernels = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kernels, list) 178s self.assertEqual(len(kernels), 2) 178s 178s # Interrupt a kernel 178s r = self.kern_api.interrupt(kern2['id']) 178s self.assertEqual(r.status_code, 204) 178s 178s # Restart a kernel 178s > r = self.kern_api.restart(kern2['id']) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 178s return self._req('POST', url_path_join(id, 'restart')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698/restart 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 143, in 178s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 178s File "/usr/lib/python3.14/enum.py", line 1836, in convert_class 178s member._sort_order_ = len(member_names) 178s KeyboardInterrupt 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 178s import jupyter_client 178s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 178s from .asynchronous import AsyncKernelClient 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 178s from .client import AsyncKernelClient # noqa 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 178s import zmq.asyncio 178s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 178s import asyncio 178s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 178s from .base_events import * 178s File "/usr/lib/python3.14/asyncio/base_events.py", line 23, in 178s import socket 178s File "/usr/lib/python3.14/socket.py", line 52, in 178s import _socket 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-c475e24f-a4a4-4965-8d1b-874aeacbdcaf.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58955 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58449 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: c475e24f-a4a4-4965-8d1b-874aeacbdcaf, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.640000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwpipeqeg/runtime/kernel-2aeffa5a-6fcf-40ad-984b-429fd1b1c698.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56489 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54085 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2aeffa5a-6fcf-40ad-984b-429fd1b1c698, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.420000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2aeffa5a-6fcf-40ad-984b-429fd1b1c698 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698/interrupt (::1) 0.400000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 178s result = coro.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 178s yield self # This tells Task to wait for completion. 178s ^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698/restart (::1) 4.040000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.090000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c475e24f-a4a4-4965-8d1b-874aeacbdcaf 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c475e24f-a4a4-4965-8d1b-874aeacbdcaf 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf (::1) 3.310000ms referer=None 178s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 178s 178s self = 178s 178s def test_no_kernels(self): 178s """Make sure there are no kernels running at the start""" 178s kernels = self.kern_api.list().json() 178s > self.assertEqual(kernels, []) 178s E AssertionError: Lists differ: [{'id': 'c475e24f-a4a4-4965-8d1b-874aeacbd[281 chars]: 0}] != [] 178s E 178s E First list contains 2 additional elements. 178s E First extra element 0: 178s E {'id': 'c475e24f-a4a4-4965-8d1b-874aeacbdcaf', 'name': 'python3', 'last_activity': '2026-01-24T09:58:53.714034Z', 'execution_state': 'starting', 'connections': 0} 178s E 178s E + [] 178s E - [{'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': 'c475e24f-a4a4-4965-8d1b-874aeacbdcaf', 178s E - 'last_activity': '2026-01-24T09:58:53.714034Z', 178s E - 'name': 'python3'}, 178s E - {'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': '2aeffa5a-6fcf-40ad-984b-429fd1b1c698', 178s E - 'last_activity': '2026-01-24T09:58:53.730243Z', 178s E - 'name': 'python3'}] 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.430000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.990000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c475e24f-a4a4-4965-8d1b-874aeacbdcaf 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c475e24f-a4a4-4965-8d1b-874aeacbdcaf 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c475e24f-a4a4-4965-8d1b-874aeacbdcaf (::1) 0.400000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2aeffa5a-6fcf-40ad-984b-429fd1b1c698 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2aeffa5a-6fcf-40ad-984b-429fd1b1c698 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2aeffa5a-6fcf-40ad-984b-429fd1b1c698 (::1) 0.490000ms 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3874e9f4-4fcc-4d26-b3f9-4452fe2bd5bd 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90321a27-961b-44a0-8a5d-49cda11cb5e3 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c475e24f-a4a4-4965-8d1b-874aeacbdcaf 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03b6764e-c2a9-4b01-8ad3-f4ac88f488ed 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s __________________________ SessionAPITest.test_create __________________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d1069098-ceb7-4b02-9e14-7a43a47fd0b6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp3dtg2rq6/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp3dtg2rq6/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3dtg2rq6/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3dtg2rq6/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3dtg2rq6/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3dtg2rq6/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp3dtg2rq6/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.290000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-1a957fad-40f3-4d76-938f-088be55028ff.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47575 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41149 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1a957fad-40f3-4d76-938f-088be55028ff, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3dtg2rq6/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.120000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d1069098-ceb7-4b02-9e14-7a43a47fd0b6 (::1) 0.430000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a957fad-40f3-4d76-938f-088be55028ff 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a957fad-40f3-4d76-938f-088be55028ff 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d1069098-ceb7-4b02-9e14-7a43a47fd0b6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d1069098-ceb7-4b02-9e14-7a43a47fd0b6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 178s from typing import TYPE_CHECKING, Any 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s __________________ SessionAPITest.test_create_console_session __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61a3d80f-c220-4b09-b02b-d332d5033677 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-d6827c09-01f2-4a6b-af14-af715b9d6bc6.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47635 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48353 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d6827c09-01f2-4a6b-af14-af715b9d6bc6, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3dtg2rq6/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.580000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a957fad-40f3-4d76-938f-088be55028ff 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a957fad-40f3-4d76-938f-088be55028ff 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d1069098-ceb7-4b02-9e14-7a43a47fd0b6 (::1) 0.620000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6827c09-01f2-4a6b-af14-af715b9d6bc6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6827c09-01f2-4a6b-af14-af715b9d6bc6 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61a3d80f-c220-4b09-b02b-d332d5033677 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61a3d80f-c220-4b09-b02b-d332d5033677', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 51, in 178s import threading 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s ____________________ SessionAPITest.test_create_deprecated _____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bbb81630-d659-4864-abc2-740a6b0f0774 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-0cbd6216-1cac-47bd-ad7c-02a6c3959086.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47125 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58267 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0cbd6216-1cac-47bd-ad7c-02a6c3959086, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3dtg2rq6/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.240000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6827c09-01f2-4a6b-af14-af715b9d6bc6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6827c09-01f2-4a6b-af14-af715b9d6bc6 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/61a3d80f-c220-4b09-b02b-d332d5033677 (::1) 1.310000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cbd6216-1cac-47bd-ad7c-02a6c3959086 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cbd6216-1cac-47bd-ad7c-02a6c3959086 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bbb81630-d659-4864-abc2-740a6b0f0774 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bbb81630-d659-4864-abc2-740a6b0f0774', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bbb81630-d659-4864-abc2-740a6b0f0774 (::1) 3.800000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 107, in 178s from .encoder import JSONEncoder 178s File "/usr/lib/python3.14/json/encoder.py", line 18, in 178s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 178s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 178s return _compile(pattern, flags) 178s File "/usr/lib/python3.14/re/__init__.py", line 351, in _compile 178s if flags & DEBUG: 178s ~~~~~~^~~~~~~ 178s File "/usr/lib/python3.14/enum.py", line 1593, in __and__ 178s def __and__(self, other): 178s 178s KeyboardInterrupt 178s ___________________ SessionAPITest.test_create_file_session ____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d8145f11-0d5e-46a4-ac0b-21bcf3219cd0 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-b9cd9ac4-ea41-4869-b048-e8039d8179fb.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33685 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34971 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: b9cd9ac4-ea41-4869-b048-e8039d8179fb, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3dtg2rq6/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cbd6216-1cac-47bd-ad7c-02a6c3959086 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cbd6216-1cac-47bd-ad7c-02a6c3959086 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bbb81630-d659-4864-abc2-740a6b0f0774 (::1) 1.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9cd9ac4-ea41-4869-b048-e8039d8179fb 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9cd9ac4-ea41-4869-b048-e8039d8179fb 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d8145f11-0d5e-46a4-ac0b-21bcf3219cd0 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d8145f11-0d5e-46a4-ac0b-21bcf3219cd0', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 49, in 178s import signal 178s File "/usr/lib/python3.14/signal.py", line 7, in 178s _IntEnum._convert_( 178s ~~~~~~~~~~~~~~~~~~^ 178s 'Signals', __name__, 178s ^^^^^^^^^^^^^^^^^^^^ 178s ...<2 lines>... 178s and (name.startswith('SIG') and not name.startswith('SIG_')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s or name.startswith('CTRL_')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 178s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 178s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 178s setattr(enum_class, name, member) 178s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 178s def __setattr__(cls, name, value): 178s 178s KeyboardInterrupt 178s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 178s 178s self = 178s 178s def test_create_with_kernel_id(self): 178s # create a new kernel 178s r = self.request('POST', 'api/kernels') 178s r.raise_for_status() 178s kernel = r.json() 178s 178s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 178s self.assertEqual(resp.status_code, 201) 178s newsession = resp.json() 178s self.assertIn('id', newsession) 178s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 178s self.assertEqual(newsession['kernel']['id'], kernel['id']) 178s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 178s 178s sessions = self.sess_api.list().json() 178s > self.assertEqual(sessions, [newsession]) 178s E AssertionError: Lists differ: [{'id': 'd8145f11-0d5e-46a4-ac0b-21bcf3219cd0', 'p[553 chars]ne}}] != [{'id': '5e9bfd26-264f-4b6b-b805-709ce9f197af', 'p[279 chars]ne}}] 178s E 178s E First differing element 0: 178s E {'id': 'd8145f11-0d5e-46a4-ac0b-21bcf3219cd0', 'p[218 chars]: 0}} 178s E {'id': '5e9bfd26-264f-4b6b-b805-709ce9f197af', 'p[278 chars]one}} 178s E 178s E First list contains 1 additional elements. 178s E First extra element 1: 178s E {'id': '5e9bfd26-264f-4b6b-b805-709ce9f197af', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '505b00c1-97f2-4319-a836-c0065385adec', 'name': 'python3', 'last_activity': '2026-01-24T09:58:54.004429Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 178s E 178s E Diff is 830 characters long. Set self.maxDiff to None to see it. 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-505b00c1-97f2-4319-a836-c0065385adec.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59107 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38933 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 505b00c1-97f2-4319-a836-c0065385adec, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.650000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.450000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9cd9ac4-ea41-4869-b048-e8039d8179fb 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9cd9ac4-ea41-4869-b048-e8039d8179fb 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d8145f11-0d5e-46a4-ac0b-21bcf3219cd0 (::1) 1.250000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 505b00c1-97f2-4319-a836-c0065385adec 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 505b00c1-97f2-4319-a836-c0065385adec 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 3.750000ms referer=None 178s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ---------------------------- Captured stderr setup ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 178s from typing import TYPE_CHECKING, Any 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.250000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-7c9f5349-e1c7-41d8-9781-3759bd153f3a.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34729 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44471 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c9f5349-e1c7-41d8-9781-3759bd153f3a, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.430000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 505b00c1-97f2-4319-a836-c0065385adec 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 505b00c1-97f2-4319-a836-c0065385adec 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 0.760000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c9f5349-e1c7-41d8-9781-3759bd153f3a 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c9f5349-e1c7-41d8-9781-3759bd153f3a 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 6.010000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 106, in 178s from .decoder import JSONDecoder, JSONDecodeError 178s File "/usr/lib/python3.14/json/decoder.py", line 5, in 178s from json import scanner 178s File "/usr/lib/python3.14/json/scanner.py", line 5, in 178s from _json import make_scanner as c_make_scanner 178s KeyboardInterrupt 178s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.300000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3dtg2rq6/runtime/kernel-018209ce-8c78-4b6f-8f50-1d511c7a035c.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58369 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43259 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 018209ce-8c78-4b6f-8f50-1d511c7a035c, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp3dtg2rq6/notebooks/foo'} 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c9f5349-e1c7-41d8-9781-3759bd153f3a 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c9f5349-e1c7-41d8-9781-3759bd153f3a 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 13.240000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 018209ce-8c78-4b6f-8f50-1d511c7a035c 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 018209ce-8c78-4b6f-8f50-1d511c7a035c 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.resu/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 178s gc.collect() 178s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 178s lt() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5e9bfd26-264f-4b6b-b805-709ce9f197af (::1) 3.670000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 018209ce-8c78-4b6f-8f50-1d511c7a035c 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s _______________________ AsyncSessionAPITest.test_create ________________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgjt6zyws/config', '/tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgjt6zyws/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgjt6zyws/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgjt6zyws/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgjt6zyws/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.XpnBhI/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgjt6zyws/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgjt6zyws/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.340000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-9327eac1-cad4-435a-8ab9-3ad48a644a00.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36117 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38361 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9327eac1-cad4-435a-8ab9-3ad48a644a00, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgjt6zyws/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.060000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f (::1) 0.370000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9327eac1-cad4-435a-8ab9-3ad48a644a00 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9327eac1-cad4-435a-8ab9-3ad48a644a00 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f (::1) 3.680000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 851, in get_code 178s File "", line 951, in get_data 178s KeyboardInterrupt 178s _______________ AsyncSessionAPITest.test_create_console_session ________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fd3d3a11-09de-428d-bc6d-d1777fb502ef 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-56a2134f-edf9-43ab-a158-f555ec1e737d.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58299 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53927 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 56a2134f-edf9-43ab-a158-f555ec1e737d, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgjt6zyws/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.980000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9327eac1-cad4-435a-8ab9-3ad48a644a00 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9327eac1-cad4-435a-8ab9-3ad48a644a00 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/76285697-17f8-42b1-8043-3a816fe9a00f (::1) 1.270000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56a2134f-edf9-43ab-a158-f555ec1e737d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56a2134f-edf9-43ab-a158-f555ec1e737d 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fd3d3a11-09de-428d-bc6d-d1777fb502ef (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fd3d3a11-09de-428d-bc6d-d1777fb502ef', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fd3d3a11-09de-428d-bc6d-d1777fb502ef (::1) 3.590000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d188f306-9e8e-4076-ae30-43b31a8595d5 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-10deb4fd-acee-464c-abcf-8f85d2d02f21.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55511 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59829 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 10deb4fd-acee-464c-abcf-8f85d2d02f21, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgjt6zyws/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.980000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56a2134f-edf9-43ab-a158-f555ec1e737d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56a2134f-edf9-43ab-a158-f555ec1e737d 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fd3d3a11-09de-428d-bc6d-d1777fb502ef (::1) 1.240000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10deb4fd-acee-464c-abcf-8f85d2d02f21 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10deb4fd-acee-464c-abcf-8f85d2d02f21 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d188f306-9e8e-4076-ae30-43b31a8595d5 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d188f306-9e8e-4076-ae30-43b31a8595d5', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d188f306-9e8e-4076-ae30-43b31a8595d5 (::1) 3.630000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 851, in get_code 178s File "", line 951, in get_data 178s KeyboardInterrupt 178s _________________ AsyncSessionAPITest.test_create_file_session _________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59889 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47399 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgjt6zyws/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.880000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10deb4fd-acee-464c-abcf-8f85d2d02f21 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10deb4fd-acee-464c-abcf-8f85d2d02f21 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d188f306-9e8e-4076-ae30-43b31a8595d5 (::1) 0.480000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9 (::1) 3.560000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 46, in 178s import locale 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "", line 1292, in find_spec 178s File "", line 1266, in _get_spec 178s File "", line 1365, in find_spec 178s File "", line 152, in _path_stat 178s KeyboardInterrupt 178s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 178s 178s self = 178s 178s def test_create_with_kernel_id(self): 178s # create a new kernel 178s r = self.request('POST', 'api/kernels') 178s r.raise_for_status() 178s kernel = r.json() 178s 178s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 178s self.assertEqual(resp.status_code, 201) 178s newsession = resp.json() 178s self.assertIn('id', newsession) 178s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 178s self.assertEqual(newsession['kernel']['id'], kernel['id']) 178s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 178s 178s sessions = self.sess_api.list().json() 178s > self.assertEqual(sessions, [newsession]) 178s E AssertionError: Lists differ: [{'id': 'c1c405ad-a83a-40ab-9432-5011832827e9', 'p[553 chars]ne}}] != [{'id': '11240499-39b6-486f-801d-36fdd11299a2', 'p[279 chars]ne}}] 178s E 178s E First differing element 0: 178s E {'id': 'c1c405ad-a83a-40ab-9432-5011832827e9', 'p[218 chars]: 0}} 178s E {'id': '11240499-39b6-486f-801d-36fdd11299a2', 'p[278 chars]one}} 178s E 178s E First list contains 1 additional elements. 178s E First extra element 1: 178s E {'id': '11240499-39b6-486f-801d-36fdd11299a2', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'be09c451-a4c6-4dae-a394-2a91177b5aa8', 'name': 'python3', 'last_activity': '2026-01-24T09:58:54.283052Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 178s E 178s E Diff is 830 characters long. Set self.maxDiff to None to see it. 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-be09c451-a4c6-4dae-a394-2a91177b5aa8.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40603 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37921 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: be09c451-a4c6-4dae-a394-2a91177b5aa8, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.440000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.520000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c1c405ad-a83a-40ab-9432-5011832827e9 (::1) 0.460000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be09c451-a4c6-4dae-a394-2a91177b5aa8 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be09c451-a4c6-4dae-a394-2a91177b5aa8 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 3.620000ms referer=None 178s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ---------------------------- Captured stderr setup ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 125, in 178s import selectors 178s File "/usr/lib/python3.14/selectors.py", line 11, in 178s import math 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1261, in _find_spec 178s File "", line 1227, in __enter__ 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.350000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-7b6573d6-62ef-439a-99f0-0871f21143d3.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50739 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55877 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b6573d6-62ef-439a-99f0-0871f21143d3, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.770000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for be09c451-a4c6-4dae-a394-2a91177b5aa8 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be09c451-a4c6-4dae-a394-2a91177b5aa8 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 0.760000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b6573d6-62ef-439a-99f0-0871f21143d3 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b6573d6-62ef-439a-99f0-0871f21143d3 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 51, in 178s import threading 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 888, in get_code 178s File "", line 511, in _compile_bytecode 178s KeyboardInterrupt 178s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgjt6zyws/runtime/kernel-dc6d5a2e-a97d-42d4-80b8-500f39330f6c.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43357 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40639 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc6d5a2e-a97d-42d4-80b8-500f39330f6c, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgjt6zyws/notebooks/foo'} 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b6573d6-62ef-439a-99f0-0871f21143d3 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b6573d6-62ef-439a-99f0-0871f21143d3 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 13.990000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.120000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.350000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc6d5a2e-a97d-42d4-80b8-500f39330f6c 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc6d5a2e-a97d-42d4-80b8-500f39330f6c 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/11240499-39b6-486f-801d-36fdd11299a2', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 845, in get_code 178s File "", line 968, in path_stats 178s File "", line 152, in _path_stat 178s KeyboardInterrupt 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc6d5a2e-a97d-42d4-80b8-500f39330f6c 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9327eac1-cad4-435a-8ab9-3ad48a644a00 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b6573d6-62ef-439a-99f0-0871f21143d3 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10deb4fd-acee-464c-abcf-8f85d2d02f21 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56a2134f-edf9-43ab-a158-f555ec1e737d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c70d5bdd-1aa4-4db0-a64e-a5bd7ec2ed34 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: be09c451-a4c6-4dae-a394-2a91177b5aa8 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s =============================== warnings summary =============================== 178s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 178s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 178s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 178s return LooseVersion(v) >= LooseVersion(check) 178s 178s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 178s services/kernels/tests/test_kernels_api.py: 66 warnings 178s services/sessions/tests/test_sessions_api.py: 88 warnings 178s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 178s dt = unaware(*args, **kwargs) 178s 178s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 178s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 178s pytestmark = pytest.mark.integration_tests 178s 178s services/kernels/tests/test_kernels_api.py: 6 warnings 178s services/sessions/tests/test_sessions_api.py: 6 warnings 178s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 178s policy = events.get_event_loop_policy() 178s 178s services/kernels/tests/test_kernels_api.py: 24 warnings 178s services/sessions/tests/test_sessions_api.py: 19 warnings 178s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 178s loop = events.get_event_loop_policy().get_event_loop() 178s 178s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 178s loop.make_current() 178s 178s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 178s /usr/lib/python3.14/selectors.py:452: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 178s fd_event_list = self._selector.poll(timeout, max_ev) 178s Enable tracemalloc to get traceback where the object was allocated. 178s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 178s 178s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 178s =========================== short test summary info ============================ 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 178s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 178s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 178s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 178s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 178s ========== 23 failed, 307 deselected, 215 warnings, 4 errors in 3.35s ========== 178s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 178s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 178s autopkgtest [09:58:55]: test pytest: -----------------------] 179s pytest FAIL non-zero exit status 1 179s autopkgtest [09:58:56]: test pytest: - - - - - - - - - - results - - - - - - - - - - 179s autopkgtest [09:58:56]: @@@@@@@@@@@@@@@@@@@@ summary 179s pytest FAIL non-zero exit status 1