0s autopkgtest [03:29:11]: starting date and time: 2026-01-24 03:29:11+0000 0s autopkgtest [03:29:11]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [03:29:11]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.rgui2wqe/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:underscore --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=underscore/1.13.7~dfsg+~1.13.0-5' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-ppc64el-19.secgroup --name adt-resolute-ppc64el-jupyter-notebook-20260124-032910-juju-7f2275-prod-proposed-migration-environment-2-063a8449-2843-49ae-bff1-c60a3b1f642e --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-ppc64el-jupyter-notebook-20260124-032910-juju-7f2275-prod-proposed-migration-environment-2-063a8449-2843-49ae-bff1-c60a3b1f642e from image adt/ubuntu-resolute-ppc64el-server-20260123.img (UUID 3dff1a46-d1c8-44ff-849b-7d35415debc1)... 58s autopkgtest [03:30:09]: testbed dpkg architecture: ppc64el 59s autopkgtest [03:30:10]: testbed apt version: 3.1.13 59s autopkgtest [03:30:10]: @@@@@@@@@@@@@@@@@@@@ test bed setup 59s autopkgtest [03:30:10]: testbed release detected to be: None 60s autopkgtest [03:30:11]: updating testbed package index (apt update) 60s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 60s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 60s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 60s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 60s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1031 kB] 61s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [24.3 kB] 61s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 61s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [94.5 kB] 61s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [107 kB] 61s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [872 kB] 61s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [9920 B] 61s Fetched 2266 kB in 1s (2087 kB/s) 62s Reading package lists... 63s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 63s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 63s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 63s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 64s Reading package lists... 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Calculating upgrade... 64s The following packages will be upgraded: 64s cloud-initramfs-copymods cloud-initramfs-dyn-netconf libgpg-error-l10n 64s libgpg-error0 liblzo2-2 libplymouth5 libtasn1-6 plymouth 64s plymouth-theme-ubuntu-text python3-jaraco.context 64s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 64s Need to get 632 kB of archives. 64s After this operation, 10.2 kB disk space will be freed. 64s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgpg-error-l10n all 1.58-1build1 [9192 B] 64s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgpg-error0 ppc64el 1.58-1build1 [106 kB] 64s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtasn1-6 ppc64el 4.21.0-2 [58.0 kB] 64s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libplymouth5 ppc64el 24.004.60+git20250831.4a3c171d-0ubuntu5 [174 kB] 64s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el plymouth-theme-ubuntu-text ppc64el 24.004.60+git20250831.4a3c171d-0ubuntu5 [11.2 kB] 64s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el plymouth ppc64el 24.004.60+git20250831.4a3c171d-0ubuntu5 [156 kB] 64s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblzo2-2 ppc64el 2.10-3build2 [97.2 kB] 64s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-jaraco.context all 6.0.1-2 [8198 B] 64s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el cloud-initramfs-copymods all 0.50 [4528 B] 64s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el cloud-initramfs-dyn-netconf all 0.50 [6514 B] 64s dpkg-preconfigure: unable to re-open stdin: No such file or directory 64s Fetched 632 kB in 0s (32.5 MB/s) 64s (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 ... 120821 files and directories currently installed.) 64s Preparing to unpack .../0-libgpg-error-l10n_1.58-1build1_all.deb ... 64s Unpacking libgpg-error-l10n (1.58-1build1) over (1.58-1) ... 65s Preparing to unpack .../1-libgpg-error0_1.58-1build1_ppc64el.deb ... 65s Unpacking libgpg-error0:ppc64el (1.58-1build1) over (1.58-1) ... 65s Preparing to unpack .../2-libtasn1-6_4.21.0-2_ppc64el.deb ... 65s Unpacking libtasn1-6:ppc64el (4.21.0-2) over (4.20.0-2ubuntu1) ... 65s Preparing to unpack .../3-libplymouth5_24.004.60+git20250831.4a3c171d-0ubuntu5_ppc64el.deb ... 65s Unpacking libplymouth5:ppc64el (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 65s Preparing to unpack .../4-plymouth-theme-ubuntu-text_24.004.60+git20250831.4a3c171d-0ubuntu5_ppc64el.deb ... 65s Unpacking plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 65s Preparing to unpack .../5-plymouth_24.004.60+git20250831.4a3c171d-0ubuntu5_ppc64el.deb ... 65s Unpacking plymouth (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 65s Preparing to unpack .../6-liblzo2-2_2.10-3build2_ppc64el.deb ... 65s Unpacking liblzo2-2:ppc64el (2.10-3build2) over (2.10-3build1) ... 66s Preparing to unpack .../7-python3-jaraco.context_6.0.1-2_all.deb ... 66s Unpacking python3-jaraco.context (6.0.1-2) over (6.0.1-1build1) ... 66s Preparing to unpack .../8-cloud-initramfs-copymods_0.50_all.deb ... 66s Unpacking cloud-initramfs-copymods (0.50) over (0.49build1) ... 66s Preparing to unpack .../9-cloud-initramfs-dyn-netconf_0.50_all.deb ... 66s Unpacking cloud-initramfs-dyn-netconf (0.50) over (0.49build1) ... 66s Setting up libgpg-error0:ppc64el (1.58-1build1) ... 66s Setting up python3-jaraco.context (6.0.1-2) ... 66s Setting up liblzo2-2:ppc64el (2.10-3build2) ... 66s Setting up cloud-initramfs-copymods (0.50) ... 66s Setting up libplymouth5:ppc64el (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 66s Setting up cloud-initramfs-dyn-netconf (0.50) ... 66s Setting up libtasn1-6:ppc64el (4.21.0-2) ... 66s Setting up libgpg-error-l10n (1.58-1build1) ... 66s Setting up plymouth (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 66s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 67s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 67s Processing triggers for initramfs-tools (0.150ubuntu7) ... 67s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 77s Processing triggers for libc-bin (2.42-2ubuntu4) ... 79s Processing triggers for man-db (2.13.1-1) ... 81s Setting up plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 81s Processing triggers for initramfs-tools (0.150ubuntu7) ... 81s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 88s autopkgtest [03:30:39]: upgrading testbed (apt dist-upgrade and autopurge) 88s Reading package lists... 88s Building dependency tree... 88s Reading state information... 88s Calculating upgrade... 88s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s Reading package lists... 89s Building dependency tree... 89s Reading state information... 89s Solving dependencies... 89s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s autopkgtest [03:30:40]: rebooting testbed after setup commands that affected boot 127s autopkgtest [03:31:18]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:45:54 UTC 2026 129s autopkgtest [03:31:20]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 132s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 132s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 132s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 132s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 132s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 132s gpgv: Can't check signature: No public key 132s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 132s autopkgtest [03:31:23]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 133s autopkgtest [03:31:24]: build not needed 133s autopkgtest [03:31:24]: test pytest: preparing testbed 134s Reading package lists... 134s Building dependency tree... 134s Reading state information... 134s Solving dependencies... 134s The following NEW packages will be installed: 134s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 134s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 134s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 134s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 134s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 134s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 134s libpython3.14-minimal libpython3.14-stdlib libsodium23 134s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 134s python-notebook-doc python-tinycss2-common python3-all python3-argon2 134s python3-argon2-cffi-bindings python3-astroid python3-asttokens 134s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 134s python3-debugpy python3-decorator python3-defusedxml python3-executing 134s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 134s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 134s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 134s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 134s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 134s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 134s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 134s python3-pytest python3-requests-unixsocket python3-send2trash 134s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 134s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 134s python3-webencodings python3-zmq python3.14 python3.14-minimal 134s sphinx-rtd-theme-common 134s 0 upgraded, 94 newly installed, 0 to remove and 0 not upgraded. 134s Need to get 40.4 MB of archives. 134s After this operation, 206 MB of additional disk space will be used. 134s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-lato all 2.015-1build1 [2779 kB] 134s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-minimal ppc64el 3.14.2-1 [921 kB] 134s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-minimal ppc64el 3.14.2-1 [2712 kB] 134s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 134s Get:5 http://ftpmaster.internal/ubuntu resolute/universe ppc64el fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 134s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 135s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libbabeltrace1 ppc64el 1.5.11-5 [209 kB] 135s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 135s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight4t64 ppc64el 3.1.9-4.3build2 [296 kB] 135s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el gdb ppc64el 17.1-1ubuntu1 [5425 kB] 135s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-platformdirs all 4.5.1-1 [17.1 kB] 135s Get:12 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 135s Get:13 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-core all 5.9.1-1 [28.9 kB] 135s Get:14 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-core all 5.9.1-1 [6938 B] 135s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el libjs-underscore all 1.13.7~dfsg+~1.13.0-5 [86.6 kB] 135s Get:16 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 135s Get:17 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 135s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 135s Get:19 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 135s Get:20 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 135s Get:21 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-es6-promise all 4.2.8-12 [14.1 kB] 135s Get:22 http://ftpmaster.internal/ubuntu resolute/universe ppc64el node-jed all 1.1.1-4 [15.2 kB] 135s Get:23 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jed all 1.1.1-4 [2584 B] 135s Get:24 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 135s Get:25 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 135s Get:26 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 135s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 135s Get:28 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-moment all 2.29.4+ds-1 [147 kB] 135s Get:29 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 135s Get:30 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs-text all 2.0.12-2 [9732 B] 135s Get:31 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-text-encoding all 0.7.0-5 [140 kB] 135s Get:32 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-xterm all 5.3.0-4 [475 kB] 135s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-tornado ppc64el 6.5.4-0.1 [306 kB] 135s Get:34 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-terminado all 0.18.1-1 [13.2 kB] 135s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el libargon2-1 ppc64el 0~20190702+dfsg-5 [27.0 kB] 135s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-ply all 3.11-10 [45.9 kB] 135s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-pycparser all 2.23-1build1 [77.3 kB] 135s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-cffi all 2.0.0-2 [75.5 kB] 135s Get:39 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2-cffi-bindings ppc64el 25.1.0-2 [15.5 kB] 135s Get:40 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2 ppc64el 25.1.0-2 [13.8 kB] 135s Get:41 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-comm all 0.2.1-1build1 [7148 B] 135s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-stdlib ppc64el 3.14.2-1 [2444 kB] 135s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14 ppc64el 3.14.2-1 [816 kB] 135s Get:44 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-coverage ppc64el 7.8.2+dfsg1-1ubuntu1 [160 kB] 135s Get:45 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-debugpy ppc64el 1.8.19+ds-1ubuntu1 [927 kB] 135s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-decorator all 5.2.1-2 [28.1 kB] 135s Get:47 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-parso all 0.8.5-1 [68.0 kB] 135s Get:48 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 135s Get:49 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jedi all 0.19.1+ds1-1build1 [694 kB] 135s Get:50 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-matplotlib-inline all 0.2.1-1 [9462 B] 135s Get:51 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 135s Get:52 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-prompt-toolkit all 3.0.52-2 [258 kB] 135s Get:53 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-astroid all 4.0.2-1ubuntu1 [172 kB] 135s Get:54 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-asttokens all 3.0.1-1 [20.7 kB] 135s Get:55 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-executing all 2.2.1-0.1 [26.2 kB] 135s Get:56 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pure-eval all 0.2.3-1 [11.4 kB] 135s Get:57 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-stack-data all 0.6.3-3 [22.2 kB] 135s Get:58 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython all 8.35.0-2 [575 kB] 135s Get:59 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-psutil ppc64el 7.1.0-1ubuntu1 [192 kB] 135s Get:60 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libnorm1t64 ppc64el 1.5.9+dfsg-4 [198 kB] 135s Get:61 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libpgm-5.3-0t64 ppc64el 5.3.128~dfsg-2.1build2 [184 kB] 135s Get:62 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsodium23 ppc64el 1.0.18-2 [160 kB] 135s Get:63 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libzmq5 ppc64el 4.3.5-1build3 [302 kB] 135s Get:64 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-zmq ppc64el 27.1.0-1 [232 kB] 135s Get:65 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-client all 8.7.0-1 [78.5 kB] 135s Get:66 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nest-asyncio all 1.6.0-1 [6686 B] 135s Get:67 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipykernel all 6.30.1-1 [82.8 kB] 135s Get:68 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython-genutils all 0.2.0-7 [22.0 kB] 135s Get:69 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-tinycss2-common all 1.5.1-1 [47.3 kB] 135s Get:70 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-webencodings all 0.5.1-5build1 [11.7 kB] 135s Get:71 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-tinycss2 all 1.5.1-1 [23.3 kB] 135s Get:72 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-html5lib all 1.2-3 [90.6 kB] 135s Get:73 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-bleach all 6.3.0-1 [44.2 kB] 135s Get:74 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-soupsieve all 2.8.1-1 [33.7 kB] 135s Get:75 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-bs4 all 4.14.3-2build1 [84.8 kB] 135s Get:76 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-defusedxml all 0.7.1-3build1 [42.4 kB] 135s Get:77 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 135s Get:78 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mistune all 3.1.4-1 [35.0 kB] 135s Get:79 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-fastjsonschema all 2.21.1-1 [20.4 kB] 135s Get:80 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbformat all 5.10.4-1 [39.2 kB] 135s Get:81 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbclient all 0.10.4-1 [22.6 kB] 135s Get:82 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pandocfilters all 1.5.1-1 [23.6 kB] 135s Get:83 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbconvert all 7.16.6-1 [140 kB] 135s Get:84 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 135s Get:85 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-send2trash all 1.8.3-1 [14.6 kB] 135s Get:86 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 136s Get:87 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 136s Get:88 http://ftpmaster.internal/ubuntu resolute/main ppc64el sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 136s Get:89 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 136s Get:90 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-all ppc64el 3.13.9-3 [890 B] 136s Get:91 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-iniconfig all 2.1.0-2 [6962 B] 136s Get:92 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pluggy all 1.6.0-2 [21.1 kB] 136s Get:93 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest all 9.0.2-2 [277 kB] 136s Get:94 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-requests-unixsocket all 1.0.1-1 [8620 B] 136s Fetched 40.4 MB in 2s (20.8 MB/s) 136s Selecting previously unselected package fonts-lato. 137s (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 ... 120822 files and directories currently installed.) 137s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 137s Unpacking fonts-lato (2.015-1build1) ... 137s Selecting previously unselected package libpython3.14-minimal:ppc64el. 137s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_ppc64el.deb ... 137s Unpacking libpython3.14-minimal:ppc64el (3.14.2-1) ... 137s Selecting previously unselected package python3.14-minimal. 137s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_ppc64el.deb ... 137s Unpacking python3.14-minimal (3.14.2-1) ... 137s Selecting previously unselected package fonts-font-awesome. 137s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 137s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 137s Selecting previously unselected package fonts-glyphicons-halflings. 137s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 137s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 137s Selecting previously unselected package fonts-mathjax. 137s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 137s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 137s Selecting previously unselected package libbabeltrace1:ppc64el. 137s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_ppc64el.deb ... 137s Unpacking libbabeltrace1:ppc64el (1.5.11-5) ... 137s Selecting previously unselected package libsource-highlight-common. 137s Preparing to unpack .../07-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 137s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 137s Selecting previously unselected package libsource-highlight4t64:ppc64el. 137s Preparing to unpack .../08-libsource-highlight4t64_3.1.9-4.3build2_ppc64el.deb ... 137s Unpacking libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 137s Selecting previously unselected package gdb. 137s Preparing to unpack .../09-gdb_17.1-1ubuntu1_ppc64el.deb ... 137s Unpacking gdb (17.1-1ubuntu1) ... 137s Selecting previously unselected package python3-platformdirs. 137s Preparing to unpack .../10-python3-platformdirs_4.5.1-1_all.deb ... 137s Unpacking python3-platformdirs (4.5.1-1) ... 137s Selecting previously unselected package python3-traitlets. 137s Preparing to unpack .../11-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 137s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 137s Selecting previously unselected package python3-jupyter-core. 137s Preparing to unpack .../12-python3-jupyter-core_5.9.1-1_all.deb ... 137s Unpacking python3-jupyter-core (5.9.1-1) ... 137s Selecting previously unselected package jupyter-core. 137s Preparing to unpack .../13-jupyter-core_5.9.1-1_all.deb ... 137s Unpacking jupyter-core (5.9.1-1) ... 137s Selecting previously unselected package libjs-underscore. 137s Preparing to unpack .../14-libjs-underscore_1.13.7~dfsg+~1.13.0-5_all.deb ... 137s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-5) ... 137s Selecting previously unselected package libjs-backbone. 137s Preparing to unpack .../15-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 137s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 137s Selecting previously unselected package libjs-bootstrap. 137s Preparing to unpack .../16-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 137s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 137s Selecting previously unselected package libjs-jquery. 137s Preparing to unpack .../17-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 137s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 137s Selecting previously unselected package libjs-bootstrap-tour. 137s Preparing to unpack .../18-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 137s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 137s Selecting previously unselected package libjs-codemirror. 137s Preparing to unpack .../19-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 137s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 138s Selecting previously unselected package libjs-es6-promise. 138s Preparing to unpack .../20-libjs-es6-promise_4.2.8-12_all.deb ... 138s Unpacking libjs-es6-promise (4.2.8-12) ... 138s Selecting previously unselected package node-jed. 138s Preparing to unpack .../21-node-jed_1.1.1-4_all.deb ... 138s Unpacking node-jed (1.1.1-4) ... 138s Selecting previously unselected package libjs-jed. 138s Preparing to unpack .../22-libjs-jed_1.1.1-4_all.deb ... 138s Unpacking libjs-jed (1.1.1-4) ... 138s Selecting previously unselected package libjs-jquery-typeahead. 138s Preparing to unpack .../23-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 138s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 138s Selecting previously unselected package libjs-jquery-ui. 138s Preparing to unpack .../24-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 138s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 138s Selecting previously unselected package libjs-marked. 138s Preparing to unpack .../25-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 138s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 138s Selecting previously unselected package libjs-mathjax. 138s Preparing to unpack .../26-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 138s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 138s Selecting previously unselected package libjs-moment. 138s Preparing to unpack .../27-libjs-moment_2.29.4+ds-1_all.deb ... 138s Unpacking libjs-moment (2.29.4+ds-1) ... 138s Selecting previously unselected package libjs-requirejs. 138s Preparing to unpack .../28-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 138s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 138s Selecting previously unselected package libjs-requirejs-text. 138s Preparing to unpack .../29-libjs-requirejs-text_2.0.12-2_all.deb ... 138s Unpacking libjs-requirejs-text (2.0.12-2) ... 138s Selecting previously unselected package libjs-text-encoding. 138s Preparing to unpack .../30-libjs-text-encoding_0.7.0-5_all.deb ... 138s Unpacking libjs-text-encoding (0.7.0-5) ... 138s Selecting previously unselected package libjs-xterm. 138s Preparing to unpack .../31-libjs-xterm_5.3.0-4_all.deb ... 138s Unpacking libjs-xterm (5.3.0-4) ... 138s Selecting previously unselected package python3-tornado. 138s Preparing to unpack .../32-python3-tornado_6.5.4-0.1_ppc64el.deb ... 138s Unpacking python3-tornado (6.5.4-0.1) ... 138s Selecting previously unselected package python3-terminado. 138s Preparing to unpack .../33-python3-terminado_0.18.1-1_all.deb ... 138s Unpacking python3-terminado (0.18.1-1) ... 138s Selecting previously unselected package libargon2-1:ppc64el. 138s Preparing to unpack .../34-libargon2-1_0~20190702+dfsg-5_ppc64el.deb ... 138s Unpacking libargon2-1:ppc64el (0~20190702+dfsg-5) ... 138s Selecting previously unselected package python3-ply. 138s Preparing to unpack .../35-python3-ply_3.11-10_all.deb ... 138s Unpacking python3-ply (3.11-10) ... 138s Selecting previously unselected package python3-pycparser. 138s Preparing to unpack .../36-python3-pycparser_2.23-1build1_all.deb ... 138s Unpacking python3-pycparser (2.23-1build1) ... 138s Selecting previously unselected package python3-cffi. 138s Preparing to unpack .../37-python3-cffi_2.0.0-2_all.deb ... 138s Unpacking python3-cffi (2.0.0-2) ... 138s Selecting previously unselected package python3-argon2-cffi-bindings. 138s Preparing to unpack .../38-python3-argon2-cffi-bindings_25.1.0-2_ppc64el.deb ... 138s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 138s Selecting previously unselected package python3-argon2. 138s Preparing to unpack .../39-python3-argon2_25.1.0-2_ppc64el.deb ... 138s Unpacking python3-argon2 (25.1.0-2) ... 138s Selecting previously unselected package python3-comm. 138s Preparing to unpack .../40-python3-comm_0.2.1-1build1_all.deb ... 138s Unpacking python3-comm (0.2.1-1build1) ... 138s Selecting previously unselected package libpython3.14-stdlib:ppc64el. 138s Preparing to unpack .../41-libpython3.14-stdlib_3.14.2-1_ppc64el.deb ... 138s Unpacking libpython3.14-stdlib:ppc64el (3.14.2-1) ... 139s Selecting previously unselected package python3.14. 139s Preparing to unpack .../42-python3.14_3.14.2-1_ppc64el.deb ... 139s Unpacking python3.14 (3.14.2-1) ... 139s Selecting previously unselected package python3-coverage. 139s Preparing to unpack .../43-python3-coverage_7.8.2+dfsg1-1ubuntu1_ppc64el.deb ... 139s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 139s Selecting previously unselected package python3-debugpy. 139s Preparing to unpack .../44-python3-debugpy_1.8.19+ds-1ubuntu1_ppc64el.deb ... 139s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 139s Selecting previously unselected package python3-decorator. 139s Preparing to unpack .../45-python3-decorator_5.2.1-2_all.deb ... 139s Unpacking python3-decorator (5.2.1-2) ... 139s Selecting previously unselected package python3-parso. 139s Preparing to unpack .../46-python3-parso_0.8.5-1_all.deb ... 139s Unpacking python3-parso (0.8.5-1) ... 139s Selecting previously unselected package python3-typeshed. 139s Preparing to unpack .../47-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 139s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 139s Selecting previously unselected package python3-jedi. 139s Preparing to unpack .../48-python3-jedi_0.19.1+ds1-1build1_all.deb ... 139s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 139s Selecting previously unselected package python3-matplotlib-inline. 139s Preparing to unpack .../49-python3-matplotlib-inline_0.2.1-1_all.deb ... 139s Unpacking python3-matplotlib-inline (0.2.1-1) ... 139s Selecting previously unselected package python3-wcwidth. 139s Preparing to unpack .../50-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 139s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 139s Selecting previously unselected package python3-prompt-toolkit. 139s Preparing to unpack .../51-python3-prompt-toolkit_3.0.52-2_all.deb ... 139s Unpacking python3-prompt-toolkit (3.0.52-2) ... 139s Selecting previously unselected package python3-astroid. 139s Preparing to unpack .../52-python3-astroid_4.0.2-1ubuntu1_all.deb ... 139s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 139s Selecting previously unselected package python3-asttokens. 139s Preparing to unpack .../53-python3-asttokens_3.0.1-1_all.deb ... 139s Unpacking python3-asttokens (3.0.1-1) ... 140s Selecting previously unselected package python3-executing. 140s Preparing to unpack .../54-python3-executing_2.2.1-0.1_all.deb ... 140s Unpacking python3-executing (2.2.1-0.1) ... 140s Selecting previously unselected package python3-pure-eval. 140s Preparing to unpack .../55-python3-pure-eval_0.2.3-1_all.deb ... 140s Unpacking python3-pure-eval (0.2.3-1) ... 140s Selecting previously unselected package python3-stack-data. 140s Preparing to unpack .../56-python3-stack-data_0.6.3-3_all.deb ... 140s Unpacking python3-stack-data (0.6.3-3) ... 140s Selecting previously unselected package python3-ipython. 140s Preparing to unpack .../57-python3-ipython_8.35.0-2_all.deb ... 140s Unpacking python3-ipython (8.35.0-2) ... 140s Selecting previously unselected package python3-psutil. 140s Preparing to unpack .../58-python3-psutil_7.1.0-1ubuntu1_ppc64el.deb ... 140s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 140s Selecting previously unselected package libnorm1t64:ppc64el. 140s Preparing to unpack .../59-libnorm1t64_1.5.9+dfsg-4_ppc64el.deb ... 140s Unpacking libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 140s Selecting previously unselected package libpgm-5.3-0t64:ppc64el. 140s Preparing to unpack .../60-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_ppc64el.deb ... 140s Unpacking libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 140s Selecting previously unselected package libsodium23:ppc64el. 140s Preparing to unpack .../61-libsodium23_1.0.18-2_ppc64el.deb ... 140s Unpacking libsodium23:ppc64el (1.0.18-2) ... 140s Selecting previously unselected package libzmq5:ppc64el. 140s Preparing to unpack .../62-libzmq5_4.3.5-1build3_ppc64el.deb ... 140s Unpacking libzmq5:ppc64el (4.3.5-1build3) ... 140s Selecting previously unselected package python3-zmq. 140s Preparing to unpack .../63-python3-zmq_27.1.0-1_ppc64el.deb ... 140s Unpacking python3-zmq (27.1.0-1) ... 140s Selecting previously unselected package python3-jupyter-client. 140s Preparing to unpack .../64-python3-jupyter-client_8.7.0-1_all.deb ... 140s Unpacking python3-jupyter-client (8.7.0-1) ... 140s Selecting previously unselected package python3-nest-asyncio. 140s Preparing to unpack .../65-python3-nest-asyncio_1.6.0-1_all.deb ... 140s Unpacking python3-nest-asyncio (1.6.0-1) ... 140s Selecting previously unselected package python3-ipykernel. 140s Preparing to unpack .../66-python3-ipykernel_6.30.1-1_all.deb ... 140s Unpacking python3-ipykernel (6.30.1-1) ... 140s Selecting previously unselected package python3-ipython-genutils. 140s Preparing to unpack .../67-python3-ipython-genutils_0.2.0-7_all.deb ... 140s Unpacking python3-ipython-genutils (0.2.0-7) ... 140s Selecting previously unselected package python-tinycss2-common. 140s Preparing to unpack .../68-python-tinycss2-common_1.5.1-1_all.deb ... 140s Unpacking python-tinycss2-common (1.5.1-1) ... 140s Selecting previously unselected package python3-webencodings. 140s Preparing to unpack .../69-python3-webencodings_0.5.1-5build1_all.deb ... 140s Unpacking python3-webencodings (0.5.1-5build1) ... 140s Selecting previously unselected package python3-tinycss2. 140s Preparing to unpack .../70-python3-tinycss2_1.5.1-1_all.deb ... 140s Unpacking python3-tinycss2 (1.5.1-1) ... 140s Selecting previously unselected package python3-html5lib. 140s Preparing to unpack .../71-python3-html5lib_1.2-3_all.deb ... 140s Unpacking python3-html5lib (1.2-3) ... 140s Selecting previously unselected package python3-bleach. 140s Preparing to unpack .../72-python3-bleach_6.3.0-1_all.deb ... 140s Unpacking python3-bleach (6.3.0-1) ... 140s Selecting previously unselected package python3-soupsieve. 140s Preparing to unpack .../73-python3-soupsieve_2.8.1-1_all.deb ... 140s Unpacking python3-soupsieve (2.8.1-1) ... 140s Selecting previously unselected package python3-bs4. 140s Preparing to unpack .../74-python3-bs4_4.14.3-2build1_all.deb ... 140s Unpacking python3-bs4 (4.14.3-2build1) ... 140s Selecting previously unselected package python3-defusedxml. 140s Preparing to unpack .../75-python3-defusedxml_0.7.1-3build1_all.deb ... 140s Unpacking python3-defusedxml (0.7.1-3build1) ... 140s Selecting previously unselected package python3-jupyterlab-pygments. 140s Preparing to unpack .../76-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 140s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 140s Selecting previously unselected package python3-mistune. 140s Preparing to unpack .../77-python3-mistune_3.1.4-1_all.deb ... 140s Unpacking python3-mistune (3.1.4-1) ... 140s Selecting previously unselected package python3-fastjsonschema. 140s Preparing to unpack .../78-python3-fastjsonschema_2.21.1-1_all.deb ... 140s Unpacking python3-fastjsonschema (2.21.1-1) ... 140s Selecting previously unselected package python3-nbformat. 140s Preparing to unpack .../79-python3-nbformat_5.10.4-1_all.deb ... 140s Unpacking python3-nbformat (5.10.4-1) ... 140s Selecting previously unselected package python3-nbclient. 140s Preparing to unpack .../80-python3-nbclient_0.10.4-1_all.deb ... 140s Unpacking python3-nbclient (0.10.4-1) ... 140s Selecting previously unselected package python3-pandocfilters. 140s Preparing to unpack .../81-python3-pandocfilters_1.5.1-1_all.deb ... 140s Unpacking python3-pandocfilters (1.5.1-1) ... 140s Selecting previously unselected package python3-nbconvert. 140s Preparing to unpack .../82-python3-nbconvert_7.16.6-1_all.deb ... 140s Unpacking python3-nbconvert (7.16.6-1) ... 140s Selecting previously unselected package python3-prometheus-client. 140s Preparing to unpack .../83-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 140s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 140s Selecting previously unselected package python3-send2trash. 140s Preparing to unpack .../84-python3-send2trash_1.8.3-1_all.deb ... 140s Unpacking python3-send2trash (1.8.3-1) ... 140s Selecting previously unselected package python3-notebook. 140s Preparing to unpack .../85-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 140s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 140s Selecting previously unselected package jupyter-notebook. 140s Preparing to unpack .../86-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 140s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 140s Selecting previously unselected package sphinx-rtd-theme-common. 140s Preparing to unpack .../87-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 140s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 140s Selecting previously unselected package python-notebook-doc. 140s Preparing to unpack .../88-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 140s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 140s Selecting previously unselected package python3-all. 140s Preparing to unpack .../89-python3-all_3.13.9-3_ppc64el.deb ... 140s Unpacking python3-all (3.13.9-3) ... 140s Selecting previously unselected package python3-iniconfig. 140s Preparing to unpack .../90-python3-iniconfig_2.1.0-2_all.deb ... 140s Unpacking python3-iniconfig (2.1.0-2) ... 140s Selecting previously unselected package python3-pluggy. 140s Preparing to unpack .../91-python3-pluggy_1.6.0-2_all.deb ... 140s Unpacking python3-pluggy (1.6.0-2) ... 140s Selecting previously unselected package python3-pytest. 140s Preparing to unpack .../92-python3-pytest_9.0.2-2_all.deb ... 140s Unpacking python3-pytest (9.0.2-2) ... 140s Selecting previously unselected package python3-requests-unixsocket. 140s Preparing to unpack .../93-python3-requests-unixsocket_1.0.1-1_all.deb ... 141s Unpacking python3-requests-unixsocket (1.0.1-1) ... 141s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 141s Setting up python3-iniconfig (2.1.0-2) ... 141s Setting up python3-tornado (6.5.4-0.1) ... 142s Setting up libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 142s Setting up python3-pure-eval (0.2.3-1) ... 142s Setting up python3-send2trash (1.8.3-1) ... 142s Setting up fonts-lato (2.015-1build1) ... 142s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 142s Setting up libsodium23:ppc64el (1.0.18-2) ... 142s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 142s Setting up libjs-requirejs-text (2.0.12-2) ... 142s Setting up python3-parso (0.8.5-1) ... 142s Setting up python3-defusedxml (0.7.1-3build1) ... 142s Setting up python3-ipython-genutils (0.2.0-7) ... 142s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 142s Setting up libargon2-1:ppc64el (0~20190702+dfsg-5) ... 142s Setting up python3-ply (3.11-10) ... 143s Setting up libpython3.14-minimal:ppc64el (3.14.2-1) ... 143s Setting up libjs-moment (2.29.4+ds-1) ... 143s Setting up python3-pandocfilters (1.5.1-1) ... 143s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 143s Setting up libjs-es6-promise (4.2.8-12) ... 143s Setting up libjs-text-encoding (0.7.0-5) ... 143s Setting up python3-webencodings (0.5.1-5build1) ... 143s Setting up python3-platformdirs (4.5.1-1) ... 143s Setting up python3-psutil (7.1.0-1ubuntu1) ... 144s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 144s Setting up python3-pycparser (2.23-1build1) ... 144s Setting up python3-requests-unixsocket (1.0.1-1) ... 144s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 144s Setting up libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 144s Setting up python3-decorator (5.2.1-2) ... 144s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 145s Setting up node-jed (1.1.1-4) ... 145s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 145s Setting up libjs-xterm (5.3.0-4) ... 145s Setting up python3-nest-asyncio (1.6.0-1) ... 145s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 145s Setting up libjs-jed (1.1.1-4) ... 145s Setting up python3-html5lib (1.2-3) ... 145s Setting up libbabeltrace1:ppc64el (1.5.11-5) ... 145s Setting up python3-pluggy (1.6.0-2) ... 145s Setting up python3-fastjsonschema (2.21.1-1) ... 146s Setting up python3-terminado (0.18.1-1) ... 146s Setting up python3-astroid (4.0.2-1ubuntu1) ... 146s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 147s Setting up python-tinycss2-common (1.5.1-1) ... 147s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 147s Setting up python3-mistune (3.1.4-1) ... 147s Setting up python3-soupsieve (2.8.1-1) ... 147s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 147s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 147s Setting up python3.14-minimal (3.14.2-1) ... 148s Setting up python3-jupyter-core (5.9.1-1) ... 148s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 148s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-5) ... 148s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 148s Setting up python3-prompt-toolkit (3.0.52-2) ... 149s Setting up python3-tinycss2 (1.5.1-1) ... 149s Setting up libzmq5:ppc64el (4.3.5-1build3) ... 149s Setting up python3-jedi (0.19.1+ds1-1build1) ... 149s Setting up libpython3.14-stdlib:ppc64el (3.14.2-1) ... 149s Setting up python3-asttokens (3.0.1-1) ... 150s Setting up python3-pytest (9.0.2-2) ... 150s Setting up python3-cffi (2.0.0-2) ... 151s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 151s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 151s Setting up libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 151s Setting up python3-nbformat (5.10.4-1) ... 151s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 151s Setting up python3-bs4 (4.14.3-2build1) ... 151s Setting up python3-bleach (6.3.0-1) ... 151s Setting up python3-matplotlib-inline (0.2.1-1) ... 151s Setting up python3-comm (0.2.1-1build1) ... 152s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 152s Setting up gdb (17.1-1ubuntu1) ... 152s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 152s Setting up python3-executing (2.2.1-0.1) ... 152s Setting up python3-zmq (27.1.0-1) ... 152s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 152s Setting up python3-argon2 (25.1.0-2) ... 153s Setting up python3-jupyter-client (8.7.0-1) ... 153s Setting up jupyter-core (5.9.1-1) ... 153s Setting up python3.14 (3.14.2-1) ... 154s Setting up python3-stack-data (0.6.3-3) ... 154s Setting up python3-all (3.13.9-3) ... 154s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 154s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 155s Setting up python3-nbclient (0.10.4-1) ... 156s Setting up python3-ipython (8.35.0-2) ... 156s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 156s return result 157s Setting up python3-ipykernel (6.30.1-1) ... 157s Setting up python3-nbconvert (7.16.6-1) ... 157s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 158s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 158s Processing triggers for systemd (259-1ubuntu2) ... 158s Processing triggers for man-db (2.13.1-1) ... 159s Processing triggers for libc-bin (2.42-2ubuntu4) ... 160s autopkgtest [03:31:51]: test pytest: [----------------------- 160s Testing with python3.14 161s *** 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 165s ============================= test session starts ============================== 165s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 165s rootdir: /tmp/autopkgtest.5VVERi/autopkgtest_tmp 165s plugins: typeguard-4.4.4 165s collected 330 items / 6 deselected / 324 selected 165s 165s auth/tests/test_login.py .. [ 0%] 166s auth/tests/test_security.py .... [ 1%] 166s bundler/tests/test_bundler_api.py ..... [ 3%] 166s bundler/tests/test_bundler_tools.py ............. [ 7%] 167s bundler/tests/test_bundlerextension.py ... [ 8%] 167s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 167s services/api/tests/test_api.py ... [ 11%] 167s services/config/tests/test_config_api.py ... [ 12%] 167s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 168s ................s...........ss..s......................... [ 38%] 168s services/contents/tests/test_fileio.py ... [ 39%] 168s services/contents/tests/test_largefilemanager.py . [ 39%] 169s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 169s .... [ 50%] 180s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 180s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 181s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 181s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 182s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 182s F [ 66%] 187s terminal/tests/test_terminals_api.py ........ [ 68%] 187s tests/test_config_manager.py . [ 68%] 187s tests/test_files.py ..... [ 70%] 187s tests/test_gateway.py ...... [ 72%] 187s tests/test_i18n.py . [ 72%] 187s tests/test_log.py . [ 72%] 188s tests/test_nbextensions.py ................................... [ 83%] 189s tests/test_notebookapp.py .......................... [ 91%] 189s tests/test_paths.py ... [ 92%] 189s tests/test_serialize.py .. [ 93%] 189s tests/test_serverextensions.py ..... [ 94%] 189s tests/test_traittypes.py ........... [ 98%] 190s tests/test_utils.py ....s [ 99%] 191s tree/tests/test_tree_handler.py . [100%] 191s 191s ==================================== ERRORS ==================================== 191s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 191s 191s self = 191s 191s def tearDown(self): 191s for k in self.kern_api.list().json(): 191s > self.kern_api.shutdown(k['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 237, in 191s magic_check_bytes = re.compile(b'([*?[])') 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 764, in compile 191s return _sre.compile( 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-93cad22e-5eb2-4eb6-8689-043ed8613d8b.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56533 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41729 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93cad22e-5eb2-4eb6-8689-043ed8613d8b, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-269501af-fa04-4ab9-89c4-c7ef855f437d.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46353 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46171 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 269501af-fa04-4ab9-89c4-c7ef855f437d, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 269501af-fa04-4ab9-89c4-c7ef855f437d 191s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/269501af-fa04-4ab9-89c4-c7ef855f437d/interrupt (::1) 0.660000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 191s yield maybe_future(km.restart_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 191s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 191s await ensure_async(kernel.restart_kernel(now=now)) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 191s await self._async_shutdown_kernel(now=now, restart=True) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/269501af-fa04-4ab9-89c4-c7ef855f437d/restart (::1) 4.210000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 191s yielded = ctx_run(next, result) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b (::1) 6.520000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 191s import jupyter_client 191s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 191s from .asynchronous import AsyncKernelClient 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 191s from .client import AsyncKernelClient # noqa 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 191s import zmq.asyncio 191s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 191s import asyncio 191s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 191s from .base_events import * 191s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 191s import ssl 191s File "/usr/lib/python3.13/ssl.py", line 100, in 191s import _ssl # if we can't import it, let the error propagate 191s ^^^^^^^^^^^ 191s KeyboardInterrupt 191s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 191s 191s self = 191s 191s def tearDown(self): 191s for k in self.kern_api.list().json(): 191s > self.kern_api.shutdown(k['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 191s from subprocess import PIPE, Popen 191s File "/usr/lib/python3.13/subprocess.py", line 46, in 191s import locale 191s File "/usr/lib/python3.13/locale.py", line 180, in 191s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 191s code = _code(p, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 191s _compile(code, p.data, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 191s _compile(code, av[2], flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 191s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 191s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 191s _compile(code, av[2], flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 191s emit(ANY) 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-089ce980-fbbb-4909-b6a0-5f866a08cf50.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60257 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54033 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 089ce980-fbbb-4909-b6a0-5f866a08cf50, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.070000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-41cbadbe-37de-402f-bd20-fc9ade9f05d7.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42711 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46623 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41cbadbe-37de-402f-bd20-fc9ade9f05d7, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.670000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 41cbadbe-37de-402f-bd20-fc9ade9f05d7 191s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7/interrupt (::1) 0.610000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 191s yield maybe_future(km.restart_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 191s result = coro.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 191s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 191s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 191s yield self # This tells Task to wait for completion. 191s ^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 191s await ensure_async(kernel.restart_kernel(now=now)) 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 191s await self._async_shutdown_kernel(now=now, restart=True) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7/restart (::1) 3.300000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 (::1) 8.530000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 191s import jupyter_client 191s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 191s from .asynchronous import AsyncKernelClient 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 191s from .client import AsyncKernelClient # noqa 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 191s import zmq.asyncio 191s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 191s import asyncio 191s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 191s from .base_events import * 191s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 191s import concurrent.futures 191s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 191s from concurrent.futures._base import (FIRST_COMPLETED, 191s ...<9 lines>... 191s as_completed) 191s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 191s import logging 191s File "/usr/lib/python3.13/logging/__init__.py", line 26, in 191s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 191s File "/usr/lib/python3.13/traceback.py", line 7, in 191s import textwrap 191s File "/usr/lib/python3.13/textwrap.py", line 416, in 191s _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE) 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 191s code = _code(p, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 191s _compile_info(code, p, flags) 191s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/_compiler.py", line 518, in _compile_info 191s lo, hi = pattern.getwidth() 191s ~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.13/re/_parser.py", line 204, in getwidth 191s hi = MAXWIDTH 191s ^^ 191s KeyboardInterrupt 191s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7df6bfa4-8265-45b7-9327-61edff2a0104 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 191s from subprocess import PIPE, Popen 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1152, in get_code 191s File "", line 781, in _compile_bytecode 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-da25730d-46c2-442b-b64b-48599a8f537c.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58877 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34937 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: da25730d-46c2-442b-b64b-48599a8f537c, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.630000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.950000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7830d2d5-2655-448b-9581-895169dfc6a3 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7830d2d5-2655-448b-9581-895169dfc6a3 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1df40bab-051b-4c95-9204-a8e823a469a0 (::1) 0.830000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da25730d-46c2-442b-b64b-48599a8f537c 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da25730d-46c2-442b-b64b-48599a8f537c 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7df6bfa4-8265-45b7-9327-61edff2a0104 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7df6bfa4-8265-45b7-9327-61edff2a0104', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-e2fa0f90-91c4-4da1-b12c-30eeeba2bef7.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58017 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37905 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2fa0f90-91c4-4da1-b12c-30eeeba2bef7, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.130000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-5eece346-02df-43ca-b81f-3ac2181ba851.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50959 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47889 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5eece346-02df-43ca-b81f-3ac2181ba851, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.040000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2fa0f90-91c4-4da1-b12c-30eeeba2bef7 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2fa0f90-91c4-4da1-b12c-30eeeba2bef7 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 191s km.shutdown_kernel(before['kernel']['id']) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 15.790000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.930000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eece346-02df-43ca-b81f-3ac2181ba851 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eece346-02df-43ca-b81f-3ac2181ba851 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 191s import json 191s File "/usr/lib/python3.13/json/__init__.py", line 106, in 191s from .decoder import JSONDecoder, JSONDecodeError 191s File "/usr/lib/python3.13/json/decoder.py", line 5, in 191s from json import scanner 191s File "/usr/lib/python3.13/json/scanner.py", line 11, in 191s NUMBER_RE = re.compile( 191s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 191s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 191s p = _parser.parse(p, flags) 191s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 191s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 191s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 191s itemsappend(_parse(source, state, verbose, nested + 1, 191s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s not nested and not items)) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 191s state.closegroup(group, p) 191s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/_parser.py", line 97, in closegroup 191s def closegroup(self, gid, p): 191s 191s KeyboardInterrupt 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 191s import jupyter_client 191s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 191s from .asynchronous import AsyncKernelClient 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 191s from .client import AsyncKernelClient # noqa 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 191s import zmq.asyncio 191s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 191s from zmq import backend 191s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 191s _ns = select_backend(first) 191s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 191s mod = import_module(name) 191s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 191s return _bootstrap._gcd_import(name[level:], package, level) 191s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 191s from . import _zmq 191s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 191s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 12, in 191s class Errno(IntEnum): 191s ...<58 lines>... 191s EMTHREAD = _HAUSNUMERO + 54 191s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 191s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 191s File "/usr/lib/python3.13/enum.py", line 268, in __set_name__ 191s enum_member = enum_class._new_member_(enum_class, *args) 191s KeyboardInterrupt 191s Error calling __set_name__ on '_proto_member' instance 'ETERM' in 'Errno' 191s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-eea873f8-cde1-4e39-addc-3f326e8ea81a.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47307 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53849 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: eea873f8-cde1-4e39-addc-3f326e8ea81a, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eece346-02df-43ca-b81f-3ac2181ba851 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eece346-02df-43ca-b81f-3ac2181ba851 191s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 14.980000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eea873f8-cde1-4e39-addc-3f326e8ea81a 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eea873f8-cde1-4e39-addc-3f326e8ea81a 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 316, in 191s Match = type(_compiler.compile('', 0).match('')) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^ 191s KeyboardInterrupt 191s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5b25450-6571-4349-b1ad-42d9de97cdab 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 191s from ._version import ( 191s ...<4 lines>... 191s ) 191s File "", line 1357, in _find_and_load 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47285 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49483 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.140000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.690000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/793399a2-0f70-4f54-853c-e4037a11d72b (::1) 0.740000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5b25450-6571-4349-b1ad-42d9de97cdab (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5b25450-6571-4349-b1ad-42d9de97cdab', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 191s import jupyter_client 191s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 191s from .asynchronous import AsyncKernelClient 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 191s from .client import AsyncKernelClient # noqa 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 191s import zmq.asyncio 191s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 191s from zmq import backend 191s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 191s _ns = select_backend(first) 191s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 191s mod = import_module(name) 191s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 191s return _bootstrap._gcd_import(name[level:], package, level) 191s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 191s from . import _zmq 191s File "", line 645, in parent 191s KeyboardInterrupt 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-723b1099-a408-4624-80a0-b69cf9a79bb4.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40941 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34063 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 723b1099-a408-4624-80a0-b69cf9a79bb4, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.320000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-65bd7d17-94fd-41c4-9445-5060d4770efa.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56425 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43389 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65bd7d17-94fd-41c4-9445-5060d4770efa, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.700000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 723b1099-a408-4624-80a0-b69cf9a79bb4 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 723b1099-a408-4624-80a0-b69cf9a79bb4 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 191s yield maybe_future( 191s km.shutdown_kernel(before['kernel']['id']) 191s ) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 14.810000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65bd7d17-94fd-41c4-9445-5060d4770efa 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65bd7d17-94fd-41c4-9445-5060d4770efa 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 191s import json 191s File "/usr/lib/python3.13/json/__init__.py", line 107, in 191s from .encoder import JSONEncoder 191s File "/usr/lib/python3.13/json/encoder.py", line 20, in 191s HAS_UTF8 = re.compile(b'[\x80-\xff]') 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 191s p = _parser.parse(p, flags) 191s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 191s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 191s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 191s itemsappend(_parse(source, state, verbose, nested + 1, 191s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s not nested and not items)) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/_parser.py", line 565, in _parse 191s this = sourceget() 191s File "/usr/lib/python3.13/re/_parser.py", line 262, in get 191s self.__next() 191s ~~~~~~~~~~~^^ 191s File "/usr/lib/python3.13/re/_parser.py", line 239, in __next 191s def __next(self): 191s 191s KeyboardInterrupt 191s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-4b3fdd3e-1953-469c-a478-bce60d2988db.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33761 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53525 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b3fdd3e-1953-469c-a478-bce60d2988db, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65bd7d17-94fd-41c4-9445-5060d4770efa 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65bd7d17-94fd-41c4-9445-5060d4770efa 191s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 14.640000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b3fdd3e-1953-469c-a478-bce60d2988db 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b3fdd3e-1953-469c-a478-bce60d2988db 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 315, in 191s Pattern = type(_compiler.compile('', 0)) 191s ~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 191s p = _parser.parse(p, flags) 191s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 191s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 191s File "/usr/lib/python3.13/re/_parser.py", line 466, in _parse_sub 191s if len(items) == 1: 191s ~~~^^^^^^^ 191s KeyboardInterrupt 191s =================================== FAILURES =================================== 191s ______________________ KernelAPITest.test_default_kernel _______________________ 191s 191s self = 191s 191s def tearDown(self): 191s for k in self.kern_api.list().json(): 191s > self.kern_api.shutdown(k['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/84fcfedc-8c57-4b4e-8b91-afaef7ba962f 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log setup ------------------------------ 191s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp9g0ev2ya/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp9g0ev2ya/etc/jupyter'] for config files 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9g0ev2ya/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9g0ev2ya/config 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9g0ev2ya/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9g0ev2ya/config 191s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp9g0ev2ya/notebooks 191s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 191s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 191s WARNING NotebookApp:handlers.py:612 Forbidden 191s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 191s ----------------------------- Captured stderr call ----------------------------- 191s Could not import runpy module 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-84fcfedc-8c57-4b4e-8b91-afaef7ba962f.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59691 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38283 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 84fcfedc-8c57-4b4e-8b91-afaef7ba962f, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 57.170000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84fcfedc-8c57-4b4e-8b91-afaef7ba962f 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84fcfedc-8c57-4b4e-8b91-afaef7ba962f 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/84fcfedc-8c57-4b4e-8b91-afaef7ba962f (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/84fcfedc-8c57-4b4e-8b91-afaef7ba962f', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 191s yielded = ctx_run(next, result) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/84fcfedc-8c57-4b4e-8b91-afaef7ba962f (::1) 9.770000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1115, in get_code 191s File "", line 1215, in get_data 191s KeyboardInterrupt 191s ______________________ KernelAPITest.test_kernel_handler _______________________ 191s 191s self = 191s 191s def test_kernel_handler(self): 191s # GET kernel with given id 191s kid = self.kern_api.start().json()['id'] 191s r = self.kern_api.get(kid) 191s kern1 = r.json() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(kern1, dict) 191s self.assertIn('id', kern1) 191s self.assertEqual(kern1['id'], kid) 191s 191s # Request a bad kernel id and check that a JSON 191s # message is returned! 191s bad_id = '111-111-111-111-111' 191s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 191s self.kern_api.get(bad_id) 191s 191s # DELETE kernel with id 191s > r = self.kern_api.shutdown(kid) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 6, in 191s import fnmatch 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1152, in get_code 191s File "", line 781, in _compile_bytecode 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-b3ee6662-c739-43ca-9884-5ce7a9191c05.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47011 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47631 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3ee6662-c739-43ca-9884-5ce7a9191c05, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.130000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05 (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s 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 191s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 191s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.570000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3ee6662-c739-43ca-9884-5ce7a9191c05 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3ee6662-c739-43ca-9884-5ce7a9191c05 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 191s yielded = ctx_run(next, result) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05 (::1) 6.570000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84fcfedc-8c57-4b4e-8b91-afaef7ba962f 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84fcfedc-8c57-4b4e-8b91-afaef7ba962f 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/84fcfedc-8c57-4b4e-8b91-afaef7ba962f (::1) 0.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3ee6662-c739-43ca-9884-5ce7a9191c05 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3ee6662-c739-43ca-9884-5ce7a9191c05 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b3ee6662-c739-43ca-9884-5ce7a9191c05 (::1) 0.730000ms 191s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 191s 191s self = 191s 191s def test_main_kernel_handler(self): 191s # POST request 191s r = self.kern_api.start() 191s kern1 = r.json() 191s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 191s self.assertEqual(r.status_code, 201) 191s self.assertIsInstance(kern1, dict) 191s 191s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 191s expected_csp = '; '.join([ 191s "frame-ancestors 'self'", 191s 'report-uri ' + report_uri, 191s "default-src 'none'" 191s ]) 191s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 191s 191s # GET request 191s r = self.kern_api.list() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(r.json(), list) 191s self.assertEqual(r.json()[0]['id'], kern1['id']) 191s self.assertEqual(r.json()[0]['name'], kern1['name']) 191s 191s # create another kernel and check that they both are added to the 191s # list of kernels from a GET request 191s kern2 = self.kern_api.start().json() 191s assert isinstance(kern2, dict) 191s r = self.kern_api.list() 191s kernels = r.json() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(kernels, list) 191s self.assertEqual(len(kernels), 2) 191s 191s # Interrupt a kernel 191s r = self.kern_api.interrupt(kern2['id']) 191s self.assertEqual(r.status_code, 204) 191s 191s # Restart a kernel 191s > r = self.kern_api.restart(kern2['id']) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 191s return self._req('POST', url_path_join(id, 'restart')) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/269501af-fa04-4ab9-89c4-c7ef855f437d/restart 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 237, in 191s magic_check_bytes = re.compile(b'([*?[])') 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 764, in compile 191s return _sre.compile( 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-93cad22e-5eb2-4eb6-8689-043ed8613d8b.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56533 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41729 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93cad22e-5eb2-4eb6-8689-043ed8613d8b, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9g0ev2ya/runtime/kernel-269501af-fa04-4ab9-89c4-c7ef855f437d.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46353 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46171 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 269501af-fa04-4ab9-89c4-c7ef855f437d, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 269501af-fa04-4ab9-89c4-c7ef855f437d 191s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/269501af-fa04-4ab9-89c4-c7ef855f437d/interrupt (::1) 0.660000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 191s yield maybe_future(km.restart_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 191s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 191s await ensure_async(kernel.restart_kernel(now=now)) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 191s await self._async_shutdown_kernel(now=now, restart=True) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/269501af-fa04-4ab9-89c4-c7ef855f437d/restart (::1) 4.210000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 191s yielded = ctx_run(next, result) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b (::1) 6.520000ms referer=None 191s ________________________ KernelAPITest.test_no_kernels _________________________ 191s 191s self = 191s 191s def test_no_kernels(self): 191s """Make sure there are no kernels running at the start""" 191s kernels = self.kern_api.list().json() 191s > self.assertEqual(kernels, []) 191s E AssertionError: Lists differ: [{'id': '93cad22e-5eb2-4eb6-8689-043ed8613[281 chars]: 0}] != [] 191s E 191s E First list contains 2 additional elements. 191s E First extra element 0: 191s E {'id': '93cad22e-5eb2-4eb6-8689-043ed8613d8b', 'name': 'python3', 'last_activity': '2026-01-24T03:32:01.284769Z', 'execution_state': 'starting', 'connections': 0} 191s E 191s E + [] 191s E - [{'connections': 0, 191s E - 'execution_state': 'starting', 191s E - 'id': '93cad22e-5eb2-4eb6-8689-043ed8613d8b', 191s E - 'last_activity': '2026-01-24T03:32:01.284769Z', 191s E - 'name': 'python3'}, 191s E - {'connections': 0, 191s E - 'execution_state': 'starting', 191s E - 'id': '269501af-fa04-4ab9-89c4-c7ef855f437d', 191s E - 'last_activity': '2026-01-24T03:32:01.310947Z', 191s E - 'name': 'python3'}] 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.690000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93cad22e-5eb2-4eb6-8689-043ed8613d8b 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/93cad22e-5eb2-4eb6-8689-043ed8613d8b (::1) 0.650000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 269501af-fa04-4ab9-89c4-c7ef855f437d 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 269501af-fa04-4ab9-89c4-c7ef855f437d 191s ---------------------------- Captured log teardown ----------------------------- 191s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 191s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 191s _____________________ AsyncKernelAPITest.test_connections ______________________ 191s 191s self = 191s 191s def tearDown(self): 191s for k in self.kern_api.list().json(): 191s > self.kern_api.shutdown(k['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log setup ------------------------------ 191s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmptjwzrrar/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmptjwzrrar/etc/jupyter'] for config files 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptjwzrrar/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptjwzrrar/config 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptjwzrrar/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptjwzrrar/config 191s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmptjwzrrar/notebooks 191s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 191s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 191s WARNING NotebookApp:handlers.py:612 Forbidden 191s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54761 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34345 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.350000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 1.660000ms 191s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f/channels 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 191s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57219 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (starting) 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (busy) 191s 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.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [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.13'}, {'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/'}]} 191s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f) to 5.4 (client). 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (idle) 191s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f/channels (::1) 517.040000ms 191s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f/channels 191s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34345 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57219 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54761 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38141 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57219 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54761 191s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 191s Setting websocket_ping_timeout=30000 191s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (busy) 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (busy) 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (idle) 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 0.820000ms 191s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:kernelmanager.py:423 activity on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f: status (idle) 191s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:handlers.py:579 Websocket closed b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:156831cc-c088e8cca5d3946c63fbbe5b 191s INFO NotebookApp:kernelmanager.py:222 Starting buffering for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:156831cc-c088e8cca5d3946c63fbbe5b 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:iopub 191s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:iopub 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:iopub 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 0.650000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 0.500000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f:156831cc-c088e8cca5d3946c63fbbe5b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 7.250000ms referer=None 191s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 191s 191s self = 191s 191s def tearDown(self): 191s for k in self.kern_api.list().json(): 191s > self.kern_api.shutdown(k['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 126, in 191s from . import _compiler, _parser 191s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 191s from . import _parser 191s File "", line 1360, in _find_and_load 191s File "", line 1322, in _find_and_load_unlocked 191s File "", line 1262, in _find_spec 191s File "", line 1556, in find_spec 191s File "", line 1530, in _get_spec 191s File "", line 1662, in find_spec 191s File "", line 166, in _path_isfile 191s File "", line 158, in _path_is_mode_type 191s File "", line 152, in _path_stat 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-8e13ebdf-6edd-49af-82ed-5ff3a8f9beec.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58261 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60825 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.480000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f (::1) 0.630000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8e13ebdf-6edd-49af-82ed-5ff3a8f9beec (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8e13ebdf-6edd-49af-82ed-5ff3a8f9beec', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8e13ebdf-6edd-49af-82ed-5ff3a8f9beec (::1) 10.240000ms referer=None 191s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 191s 191s self = 191s 191s def test_kernel_handler(self): 191s # GET kernel with given id 191s kid = self.kern_api.start().json()['id'] 191s r = self.kern_api.get(kid) 191s kern1 = r.json() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(kern1, dict) 191s self.assertIn('id', kern1) 191s self.assertEqual(kern1['id'], kid) 191s 191s # Request a bad kernel id and check that a JSON 191s # message is returned! 191s bad_id = '111-111-111-111-111' 191s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 191s self.kern_api.get(bad_id) 191s 191s # DELETE kernel with id 191s > r = self.kern_api.shutdown(kid) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 191s from ._local import * 191s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 191s class PureWindowsPath(PurePath): 191s ...<7 lines>... 191s __slots__ = () 191s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 191s import ntpath 191s File "/usr/lib/python3.13/ntpath.py", line 170, in 191s from nt import _path_splitroot_ex as splitroot 191s File "", line 1360, in _find_and_load 191s File "", line 1322, in _find_and_load_unlocked 191s File "", line 1262, in _find_spec 191s File "", line 1556, in find_spec 191s File "", line 1530, in _get_spec 191s File "", line 1629, in find_spec 191s File "", line 152, in _path_stat 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-007506b4-0006-4b98-b570-12b9b80f6ad1.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56433 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39607 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 007506b4-0006-4b98-b570-12b9b80f6ad1, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.130000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1 (::1) 0.580000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s 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 191s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 191s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.630000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 007506b4-0006-4b98-b570-12b9b80f6ad1 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 007506b4-0006-4b98-b570-12b9b80f6ad1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1 (::1) 10.700000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.270000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8e13ebdf-6edd-49af-82ed-5ff3a8f9beec (::1) 0.810000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 007506b4-0006-4b98-b570-12b9b80f6ad1 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 007506b4-0006-4b98-b570-12b9b80f6ad1 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/007506b4-0006-4b98-b570-12b9b80f6ad1 (::1) 0.630000ms 191s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 191s 191s self = 191s 191s def test_main_kernel_handler(self): 191s # POST request 191s r = self.kern_api.start() 191s kern1 = r.json() 191s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 191s self.assertEqual(r.status_code, 201) 191s self.assertIsInstance(kern1, dict) 191s 191s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 191s expected_csp = '; '.join([ 191s "frame-ancestors 'self'", 191s 'report-uri ' + report_uri, 191s "default-src 'none'" 191s ]) 191s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 191s 191s # GET request 191s r = self.kern_api.list() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(r.json(), list) 191s self.assertEqual(r.json()[0]['id'], kern1['id']) 191s self.assertEqual(r.json()[0]['name'], kern1['name']) 191s 191s # create another kernel and check that they both are added to the 191s # list of kernels from a GET request 191s kern2 = self.kern_api.start().json() 191s assert isinstance(kern2, dict) 191s r = self.kern_api.list() 191s kernels = r.json() 191s self.assertEqual(r.status_code, 200) 191s assert isinstance(kernels, list) 191s self.assertEqual(len(kernels), 2) 191s 191s # Interrupt a kernel 191s r = self.kern_api.interrupt(kern2['id']) 191s self.assertEqual(r.status_code, 204) 191s 191s # Restart a kernel 191s > r = self.kern_api.restart(kern2['id']) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 191s return self._req('POST', url_path_join(id, 'restart')) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7/restart 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 191s from subprocess import PIPE, Popen 191s File "/usr/lib/python3.13/subprocess.py", line 46, in 191s import locale 191s File "/usr/lib/python3.13/locale.py", line 180, in 191s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 191s code = _code(p, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 191s _compile(code, p.data, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 191s _compile(code, av[2], flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 191s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 191s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 191s _compile(code, av[2], flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 191s emit(ANY) 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-089ce980-fbbb-4909-b6a0-5f866a08cf50.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60257 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54033 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 089ce980-fbbb-4909-b6a0-5f866a08cf50, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.070000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptjwzrrar/runtime/kernel-41cbadbe-37de-402f-bd20-fc9ade9f05d7.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42711 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46623 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41cbadbe-37de-402f-bd20-fc9ade9f05d7, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.670000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 41cbadbe-37de-402f-bd20-fc9ade9f05d7 191s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7/interrupt (::1) 0.610000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 191s yield maybe_future(km.restart_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 191s result = coro.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 191s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 191s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 191s yield self # This tells Task to wait for completion. 191s ^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 191s await ensure_async(kernel.restart_kernel(now=now)) 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 191s await self._async_shutdown_kernel(now=now, restart=True) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7/restart (::1) 3.300000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 191s yield maybe_future(km.shutdown_kernel(kernel_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 (::1) 8.530000ms referer=None 191s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 191s 191s self = 191s 191s def test_no_kernels(self): 191s """Make sure there are no kernels running at the start""" 191s kernels = self.kern_api.list().json() 191s > self.assertEqual(kernels, []) 191s E AssertionError: Lists differ: [{'id': '089ce980-fbbb-4909-b6a0-5f866a08c[281 chars]: 0}] != [] 191s E 191s E First list contains 2 additional elements. 191s E First extra element 0: 191s E {'id': '089ce980-fbbb-4909-b6a0-5f866a08cf50', 'name': 'python3', 'last_activity': '2026-01-24T03:32:02.230496Z', 'execution_state': 'starting', 'connections': 0} 191s E 191s E + [] 191s E - [{'connections': 0, 191s E - 'execution_state': 'starting', 191s E - 'id': '089ce980-fbbb-4909-b6a0-5f866a08cf50', 191s E - 'last_activity': '2026-01-24T03:32:02.230496Z', 191s E - 'name': 'python3'}, 191s E - {'connections': 0, 191s E - 'execution_state': 'starting', 191s E - 'id': '41cbadbe-37de-402f-bd20-fc9ade9f05d7', 191s E - 'last_activity': '2026-01-24T03:32:02.254380Z', 191s E - 'name': 'python3'}] 191s 191s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/089ce980-fbbb-4909-b6a0-5f866a08cf50 (::1) 1.260000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41cbadbe-37de-402f-bd20-fc9ade9f05d7 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41cbadbe-37de-402f-bd20-fc9ade9f05d7 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/41cbadbe-37de-402f-bd20-fc9ade9f05d7 (::1) 0.750000ms 191s ---------------------------- Captured log teardown ----------------------------- 191s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7b7a3c5-b5bd-4612-b5d7-9c0d57b59e5f 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089ce980-fbbb-4909-b6a0-5f866a08cf50 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e13ebdf-6edd-49af-82ed-5ff3a8f9beec 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 007506b4-0006-4b98-b570-12b9b80f6ad1 191s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 191s __________________________ SessionAPITest.test_create __________________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1de51b9e-2ee6-41a7-b70a-be3c6fcc2c46 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log setup ------------------------------ 191s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphhqs7a52/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphhqs7a52/etc/jupyter'] for config files 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphhqs7a52/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphhqs7a52/config 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphhqs7a52/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphhqs7a52/config 191s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphhqs7a52/notebooks 191s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 191s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 191s WARNING NotebookApp:handlers.py:612 Forbidden 191s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.710000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-f4820527-adbc-48ac-b711-c91dbd725ec1.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47723 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51485 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4820527-adbc-48ac-b711-c91dbd725ec1, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.410000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1de51b9e-2ee6-41a7-b70a-be3c6fcc2c46 (::1) 0.610000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4820527-adbc-48ac-b711-c91dbd725ec1 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4820527-adbc-48ac-b711-c91dbd725ec1 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1de51b9e-2ee6-41a7-b70a-be3c6fcc2c46 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1de51b9e-2ee6-41a7-b70a-be3c6fcc2c46', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 191s import json 191s File "/usr/lib/python3.13/json/__init__.py", line 107, in 191s from .encoder import JSONEncoder 191s File "/usr/lib/python3.13/json/encoder.py", line 18, in 191s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 191s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 191s return _compile(pattern, flags) 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 743, in compile 191s def compile(p, flags=0): 191s 191s KeyboardInterrupt 191s __________________ SessionAPITest.test_create_console_session __________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ae9b6703-4eb3-434a-bbde-5a75b74392b2 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-8a43dec9-a622-44c8-bcb2-e2994e64516b.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49975 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60399 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a43dec9-a622-44c8-bcb2-e2994e64516b, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.810000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4820527-adbc-48ac-b711-c91dbd725ec1 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4820527-adbc-48ac-b711-c91dbd725ec1 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1de51b9e-2ee6-41a7-b70a-be3c6fcc2c46 (::1) 4.970000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a43dec9-a622-44c8-bcb2-e2994e64516b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a43dec9-a622-44c8-bcb2-e2994e64516b 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ae9b6703-4eb3-434a-bbde-5a75b74392b2 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ae9b6703-4eb3-434a-bbde-5a75b74392b2', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 191s from ._local import * 191s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 191s import warnings 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1152, in get_code 191s File "", line 781, in _compile_bytecode 191s KeyboardInterrupt 191s ____________________ SessionAPITest.test_create_deprecated _____________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f3a6a242-f5f4-4c41-8cb9-f8b33b90baa0 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 191s from ._version import ( 191s ...<4 lines>... 191s ) 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1115, in get_code 191s File "", line 1215, in get_data 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-b30869f5-613f-431c-8845-214ef17465f5.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48891 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60311 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: b30869f5-613f-431c-8845-214ef17465f5, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.320000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a43dec9-a622-44c8-bcb2-e2994e64516b 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a43dec9-a622-44c8-bcb2-e2994e64516b 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ae9b6703-4eb3-434a-bbde-5a75b74392b2 (::1) 1.940000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b30869f5-613f-431c-8845-214ef17465f5 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b30869f5-613f-431c-8845-214ef17465f5 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f3a6a242-f5f4-4c41-8cb9-f8b33b90baa0 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f3a6a242-f5f4-4c41-8cb9-f8b33b90baa0', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f3a6a242-f5f4-4c41-8cb9-f8b33b90baa0 (::1) 10.860000ms referer=None 191s ___________________ SessionAPITest.test_create_file_session ____________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1df40bab-051b-4c95-9204-a8e823a469a0 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-7830d2d5-2655-448b-9581-895169dfc6a3.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45365 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48547 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7830d2d5-2655-448b-9581-895169dfc6a3, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.590000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.960000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b30869f5-613f-431c-8845-214ef17465f5 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b30869f5-613f-431c-8845-214ef17465f5 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f3a6a242-f5f4-4c41-8cb9-f8b33b90baa0 (::1) 0.840000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7830d2d5-2655-448b-9581-895169dfc6a3 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7830d2d5-2655-448b-9581-895169dfc6a3 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1df40bab-051b-4c95-9204-a8e823a469a0 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1df40bab-051b-4c95-9204-a8e823a469a0', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 126, in 191s from . import _compiler, _parser 191s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 191s from . import _parser 191s File "", line 477, in _lock_unlock_module 191s File "", line 374, in release 191s KeyboardInterrupt 191s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 191s 191s self = 191s 191s def test_create_with_kernel_id(self): 191s # create a new kernel 191s r = self.request('POST', 'api/kernels') 191s r.raise_for_status() 191s kernel = r.json() 191s 191s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 191s self.assertEqual(resp.status_code, 201) 191s newsession = resp.json() 191s self.assertIn('id', newsession) 191s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 191s self.assertEqual(newsession['kernel']['id'], kernel['id']) 191s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 191s 191s sessions = self.sess_api.list().json() 191s > self.assertEqual(sessions, [newsession]) 191s E AssertionError: Lists differ: [{'id': '1df40bab-051b-4c95-9204-a8e823a469a0', 'p[553 chars]ne}}] != [{'id': '7df6bfa4-8265-45b7-9327-61edff2a0104', 'p[279 chars]ne}}] 191s E 191s E First differing element 0: 191s E {'id': '1df40bab-051b-4c95-9204-a8e823a469a0', 'p[218 chars]: 0}} 191s E {'id': '7df6bfa4-8265-45b7-9327-61edff2a0104', 'p[278 chars]one}} 191s E 191s E First list contains 1 additional elements. 191s E First extra element 1: 191s E {'id': '7df6bfa4-8265-45b7-9327-61edff2a0104', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'da25730d-46c2-442b-b64b-48599a8f537c', 'name': 'python3', 'last_activity': '2026-01-24T03:32:12.907502Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 191s E 191s E Diff is 830 characters long. Set self.maxDiff to None to see it. 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 191s from subprocess import PIPE, Popen 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1152, in get_code 191s File "", line 781, in _compile_bytecode 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-da25730d-46c2-442b-b64b-48599a8f537c.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58877 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34937 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: da25730d-46c2-442b-b64b-48599a8f537c, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.630000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.950000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7830d2d5-2655-448b-9581-895169dfc6a3 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7830d2d5-2655-448b-9581-895169dfc6a3 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1df40bab-051b-4c95-9204-a8e823a469a0 (::1) 0.830000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da25730d-46c2-442b-b64b-48599a8f537c 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da25730d-46c2-442b-b64b-48599a8f537c 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7df6bfa4-8265-45b7-9327-61edff2a0104 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7df6bfa4-8265-45b7-9327-61edff2a0104', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 191s 191s self = 191s 191s def test_modify_kernel_id(self): 191s before = self.sess_api.create('foo/nb1.ipynb').json() 191s sid = before['id'] 191s 191s # create a new kernel 191s r = self.request('POST', 'api/kernels') 191s r.raise_for_status() 191s kernel = r.json() 191s 191s # Attach our session to the existing kernel 191s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 191s return self._req('PATCH', id, body) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-e2fa0f90-91c4-4da1-b12c-30eeeba2bef7.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58017 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37905 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2fa0f90-91c4-4da1-b12c-30eeeba2bef7, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.130000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-5eece346-02df-43ca-b81f-3ac2181ba851.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50959 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47889 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5eece346-02df-43ca-b81f-3ac2181ba851, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.040000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2fa0f90-91c4-4da1-b12c-30eeeba2bef7 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2fa0f90-91c4-4da1-b12c-30eeeba2bef7 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 191s km.shutdown_kernel(before['kernel']['id']) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 15.790000ms referer=None 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.930000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eece346-02df-43ca-b81f-3ac2181ba851 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eece346-02df-43ca-b81f-3ac2181ba851 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 191s 191s self = 191s 191s def test_modify_kernel_name(self): 191s before = self.sess_api.create('foo/nb1.ipynb').json() 191s sid = before['id'] 191s 191s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 191s self.assertEqual(after['id'], sid) 191s self.assertEqual(after['path'], before['path']) 191s self.assertEqual(after['type'], before['type']) 191s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 191s 191s # check kernel list, to be sure previous kernel was cleaned up 191s r = self.request('GET', 'api/kernels') 191s r.raise_for_status() 191s kernel_list = r.json() 191s after['kernel'].pop('last_activity') 191s [ k.pop('last_activity') for k in kernel_list ] 191s > self.assertEqual(kernel_list, [after['kernel']]) 191s E AssertionError: Lists differ: [{'id': 'e2fa0f90-91c4-4da1-b12c-30eeeba2bef7', 'na[176 chars]: 0}] != [{'id': 'eea873f8-cde1-4e39-addc-3f326e8ea81a', 'na[60 chars]: 0}] 191s E 191s E First differing element 0: 191s E {'id': 'e2fa0f90-91c4-4da1-b12c-30eeeba2bef7', 'na[59 chars]': 0} 191s E {'id': 'eea873f8-cde1-4e39-addc-3f326e8ea81a', 'na[59 chars]': 0} 191s E 191s E First list contains 1 additional elements. 191s E First extra element 1: 191s E {'id': 'eea873f8-cde1-4e39-addc-3f326e8ea81a', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 191s E 191s E [{'connections': 0, 191s E - 'execution_state': 'starting', 191s E - 'id': 'e2fa0f90-91c4-4da1-b12c-30eeeba2bef7', 191s E - 'name': 'python3'}, 191s E - {'connections': 0, 191s E 'execution_state': 'starting', 191s E 'id': 'eea873f8-cde1-4e39-addc-3f326e8ea81a', 191s E 'name': 'python3'}] 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-eea873f8-cde1-4e39-addc-3f326e8ea81a.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47307 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53849 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: eea873f8-cde1-4e39-addc-3f326e8ea81a, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eece346-02df-43ca-b81f-3ac2181ba851 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eece346-02df-43ca-b81f-3ac2181ba851 191s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 14.980000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eea873f8-cde1-4e39-addc-3f326e8ea81a 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eea873f8-cde1-4e39-addc-3f326e8ea81a 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f914f4e2-57a9-4ec5-8617-f2f5da1668b4', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s __________________ SessionAPITest.test_modify_path_deprecated __________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36781 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46153 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.840000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 191s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6 (::1) 0.860000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6 (::1) 7.580000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 191s from ._local import * 191s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 191s class PureWindowsPath(PurePath): 191s ...<7 lines>... 191s __slots__ = () 191s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 191s import ntpath 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1115, in get_code 191s File "", line 1215, in get_data 191s KeyboardInterrupt 191s _______________________ SessionAPITest.test_modify_type ________________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7ba1a971-18b6-4cd2-b62e-b3b410fc56ea 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphhqs7a52/runtime/kernel-3bae244c-7b6f-4c3a-896c-6a5a59d241e6.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40397 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53467 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3bae244c-7b6f-4c3a-896c-6a5a59d241e6, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphhqs7a52/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7ba1a971-18b6-4cd2-b62e-b3b410fc56ea (::1) 1.060000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8190ff73-75b4-4a1d-b0b3-6ef1e5a10db0 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/03f8c9ec-5daf-4cf0-8163-6be4b6ac97a6 (::1) 1.530000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bae244c-7b6f-4c3a-896c-6a5a59d241e6 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bae244c-7b6f-4c3a-896c-6a5a59d241e6 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7ba1a971-18b6-4cd2-b62e-b3b410fc56ea (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7ba1a971-18b6-4cd2-b62e-b3b410fc56ea', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 191s yielded = self.gen.send(value) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 191s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 191s stopper = ensure_async(km.shutdown_kernel(now, restart)) 191s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 191s return _runner_map[name].run(inner) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 191s return fut.result(None) 191s ~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 191s return self.__get_result() 191s ~~~~~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 191s raise self._exception 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7ba1a971-18b6-4cd2-b62e-b3b410fc56ea (::1) 8.100000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 191s from subprocess import PIPE, Popen 191s File "/usr/lib/python3.13/subprocess.py", line 125, in 191s import selectors 191s File "/usr/lib/python3.13/selectors.py", line 46, in 191s SelectorKey = namedtuple('SelectorKey', ['fileobj', 'fd', 'events', 'data']) 191s File "/usr/lib/python3.13/collections/__init__.py", line 512, in namedtuple 191s result = type(typename, (tuple,), class_namespace) 191s KeyboardInterrupt 191s ---------------------------- Captured log teardown ----------------------------- 191s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2fa0f90-91c4-4da1-b12c-30eeeba2bef7 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bae244c-7b6f-4c3a-896c-6a5a59d241e6 191s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 191s _______________________ AsyncSessionAPITest.test_create ________________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log setup ------------------------------ 191s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp9e2vokyq/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp9e2vokyq/etc/jupyter'] for config files 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9e2vokyq/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9e2vokyq/config 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9e2vokyq/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 191s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9e2vokyq/config 191s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp9e2vokyq/notebooks 191s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 191s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 191s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 191s WARNING NotebookApp:handlers.py:612 Forbidden 191s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-59d45be0-4bce-444f-8ef8-81dca5e4cf02.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37573 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41713 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 59d45be0-4bce-444f-8ef8-81dca5e4cf02, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.790000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.910000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184 (::1) 1.900000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 59d45be0-4bce-444f-8ef8-81dca5e4cf02 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 59d45be0-4bce-444f-8ef8-81dca5e4cf02 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/as/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 191s gc.collect() 191s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 191s yncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184 (::1) 7.350000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 191s from ._version import ( 191s ...<4 lines>... 191s ) 191s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 191s match = re.match(pattern, __version__) 191s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 191s return _compile(pattern, flags).match(string) 191s ~~~~~~~~^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 191s p = _compiler.compile(pattern, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 191s code = _code(p, flags) 191s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 191s _compile_info(code, p, flags) 191s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/re/_compiler.py", line 540, in _compile_info 191s emit(INFO) 191s ~~~~^^^^^^ 191s KeyboardInterrupt 191s _______________ AsyncSessionAPITest.test_create_console_session ________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/62a86f48-4f67-4073-b100-1da565da58d6 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-197734c0-387e-4f27-95ed-16d14e11698c.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58617 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59881 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 197734c0-387e-4f27-95ed-16d14e11698c, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.400000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.840000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 59d45be0-4bce-444f-8ef8-81dca5e4cf02 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 59d45be0-4bce-444f-8ef8-81dca5e4cf02 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/057177f9-3b84-4b07-aad1-735b83d7e184 (::1) 1.250000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 197734c0-387e-4f27-95ed-16d14e11698c 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 197734c0-387e-4f27-95ed-16d14e11698c 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/62a86f48-4f67-4073-b100-1da565da58d6 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/62a86f48-4f67-4073-b100-1da565da58d6', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s ERROR NotebookApp:log.py:55 { 191s "Host": "localhost:12341", 191s "Accept": "*/*", 191s "User-Agent": "python-requests/2.32.5" 191s } 191s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/62a86f48-4f67-4073-b100-1da565da58d6 (::1) 6.740000ms referer=None 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 126, in 191s from . import _compiler, _parser 191s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 191s from . import _parser 191s File "", line 1360, in _find_and_load 191s File "", line 1331, in _find_and_load_unlocked 191s File "", line 935, in _load_unlocked 191s File "", line 1019, in exec_module 191s File "", line 1152, in get_code 191s File "", line 783, in _compile_bytecode 191s File "", line 491, in _verbose_message 191s KeyboardInterrupt 191s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/00cb3690-1983-4124-8cb1-7ccb511d6646 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-0cb972f8-5f8c-44c2-a2a8-69e1290da334.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50967 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47523 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0cb972f8-5f8c-44c2-a2a8-69e1290da334, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.820000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 197734c0-387e-4f27-95ed-16d14e11698c 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 197734c0-387e-4f27-95ed-16d14e11698c 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/62a86f48-4f67-4073-b100-1da565da58d6 (::1) 0.700000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cb972f8-5f8c-44c2-a2a8-69e1290da334 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb972f8-5f8c-44c2-a2a8-69e1290da334 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/00cb3690-1983-4124-8cb1-7ccb511d6646 (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/00cb3690-1983-4124-8cb1-7ccb511d6646', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 143, in 191s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 191s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/enum.py", line 1844, in convert_class 191s contained._add_alias_(name) 191s ~~~~~~~~~~~~~~~~~~~~~^^^^^^ 191s File "/usr/lib/python3.13/enum.py", line 1221, in _add_alias_ 191s self.__class__._add_member_(name, self) 191s ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 191s File "/usr/lib/python3.13/enum.py", line 1071, in _add_member_ 191s attr = base.__dict__.get(name) 191s KeyboardInterrupt 191s _________________ AsyncSessionAPITest.test_create_file_session _________________ 191s 191s @self.addCleanup 191s def cleanup_sessions(): 191s for session in self.sess_api.list().json(): 191s > self.sess_api.delete(session['id']) 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 191s return self._req('DELETE', id) 191s ^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/793399a2-0f70-4f54-853c-e4037a11d72b 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-e81d5a3e-f744-4a84-9e78-4ddf683444eb.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33093 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59983 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: e81d5a3e-f744-4a84-9e78-4ddf683444eb, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.340000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cb972f8-5f8c-44c2-a2a8-69e1290da334 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb972f8-5f8c-44c2-a2a8-69e1290da334 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/00cb3690-1983-4124-8cb1-7ccb511d6646 (::1) 1.790000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/793399a2-0f70-4f54-853c-e4037a11d72b (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/793399a2-0f70-4f54-853c-e4037a11d72b', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s --------------------------- Captured stderr teardown --------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 191s from pathlib import Path 191s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 191s from ._abc import * 191s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 191s from glob import _Globber, _no_recurse_symlinks 191s File "/usr/lib/python3.13/glob.py", line 5, in 191s import re 191s File "/usr/lib/python3.13/re/__init__.py", line 126, in 191s from . import _compiler, _parser 191s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 191s from . import _parser 191s File "/usr/lib/python3.13/re/_parser.py", line 15, in 191s from ._constants import * 191s File "/usr/lib/python3.13/re/_constants.py", line 130, in 191s ATCODES = _makecodes( 191s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 191s ...<5 lines>... 191s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 191s ) 191s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 191s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 191s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 191s KeyboardInterrupt 191s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 191s 191s self = 191s 191s def test_create_with_kernel_id(self): 191s # create a new kernel 191s r = self.request('POST', 'api/kernels') 191s r.raise_for_status() 191s kernel = r.json() 191s 191s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 191s self.assertEqual(resp.status_code, 201) 191s newsession = resp.json() 191s self.assertIn('id', newsession) 191s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 191s self.assertEqual(newsession['kernel']['id'], kernel['id']) 191s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 191s 191s sessions = self.sess_api.list().json() 191s > self.assertEqual(sessions, [newsession]) 191s E AssertionError: Lists differ: [{'id': '793399a2-0f70-4f54-853c-e4037a11d72b', 'p[553 chars]ne}}] != [{'id': 'd5b25450-6571-4349-b1ad-42d9de97cdab', 'p[279 chars]ne}}] 191s E 191s E First differing element 0: 191s E {'id': '793399a2-0f70-4f54-853c-e4037a11d72b', 'p[218 chars]: 0}} 191s E {'id': 'd5b25450-6571-4349-b1ad-42d9de97cdab', 'p[278 chars]one}} 191s E 191s E First list contains 1 additional elements. 191s E First extra element 1: 191s E {'id': 'd5b25450-6571-4349-b1ad-42d9de97cdab', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4', 'name': 'python3', 'last_activity': '2026-01-24T03:32:13.816774Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 191s E 191s E Diff is 830 characters long. Set self.maxDiff to None to see it. 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 191s from ._version import ( 191s ...<4 lines>... 191s ) 191s File "", line 1357, in _find_and_load 191s KeyboardInterrupt 191s ------------------------------ Captured log call ------------------------------- 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 191s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4.json'] 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47285 191s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49483 191s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4, name: python3 191s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.140000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.690000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e81d5a3e-f744-4a84-9e78-4ddf683444eb 191s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/793399a2-0f70-4f54-853c-e4037a11d72b (::1) 0.740000ms 191s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 191s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4 191s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4 191s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5b25450-6571-4349-b1ad-42d9de97cdab (::1) 191s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5b25450-6571-4349-b1ad-42d9de97cdab', version='HTTP/1.1', remote_ip='::1') 191s Traceback (most recent call last): 191s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 191s result = await result 191s ^^^^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 191s future.result() 191s ~~~~~~~~~~~~~^^ 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 191s yield maybe_future(sm.delete_session(session_id)) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 191s yielded = self.gen.throw(exc) 191s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 191s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 191s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 191s value = future.result() 191s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 191s raise self._exception.with_traceback(self._exception_tb) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 191s result = coro.send(None) 191s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 191s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 191s raise km.ready.exception() # type: ignore[misc] 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 191s await kernel_awaitable 191s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 191s result = await obj 191s ^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 191s raise e 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 191s out = await method(self, *args, **kwargs) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 191s await self._async_finish_shutdown(restart=restart) 191s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 191s await asyncio.wait_for( 191s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 191s ) 191s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 191s async with timeouts.timeout(timeout): 191s ~~~~~~~~~~~~~~~~^^^^^^^^^ 191s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 191s raise RuntimeError("Timeout should be used inside a task") 191s RuntimeError: Timeout should be used inside a task 191s WARNING NotebookApp:handlers.py:612 Unhandled error 191s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 191s 191s self = 191s 191s def test_modify_kernel_id(self): 191s before = self.sess_api.create('foo/nb1.ipynb').json() 191s sid = before['id'] 191s 191s # create a new kernel 191s r = self.request('POST', 'api/kernels') 191s r.raise_for_status() 191s kernel = r.json() 191s 191s # Attach our session to the existing kernel 191s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 191s return self._req('PATCH', id, body) 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 191s response.raise_for_status() 191s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 191s 191s self = 191s 191s def raise_for_status(self): 191s """Raises :class:`HTTPError`, if one occurred.""" 191s 191s http_error_msg = "" 191s if isinstance(self.reason, bytes): 191s # We attempt to decode utf-8 first because some servers 191s # choose to localize their reason strings. If the string 191s # isn't utf-8, we fall back to iso-8859-1 for all other 191s # encodings. (See PR #3538) 191s try: 191s reason = self.reason.decode("utf-8") 191s except UnicodeDecodeError: 191s reason = self.reason.decode("iso-8859-1") 191s else: 191s reason = self.reason 191s 191s if 400 <= self.status_code < 500: 191s http_error_msg = ( 191s f"{self.status_code} Client Error: {reason} for url: {self.url}" 191s ) 191s 191s elif 500 <= self.status_code < 600: 191s http_error_msg = ( 191s f"{self.status_code} Server Error: {reason} for url: {self.url}" 191s ) 191s 191s if http_error_msg: 191s > raise HTTPError(http_error_msg, response=self) 191s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e 191s 191s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 191s ----------------------------- Captured stderr call ----------------------------- 191s Traceback (most recent call last): 191s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 191s return _run_code(code, main_globals, None, 191s "__main__", mod_spec) 191s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 191s exec(code, run_globals) 191s ~~~~^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 191s from ipykernel import kernelapp as app 191s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 191s from .connect import * # noqa: F403 191s ^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 191s import jupyter_client 191s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 191s from .asynchronous import AsyncKernelClient 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 191s from .client import AsyncKernelClient # noqa 191s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 191s import zmq.asyncio 191s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 191s from zmq import backend 191s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 191s _ns = select_backend(first) 191s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 191s mod = import_module(name) 191s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 191s return _bootstrap._gcd_import(name[level:], package, level) 191s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 191s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 191s from . import _zmq 191s File "", line 645, in parent 191s KeyboardInterrupt 191s Traceback (most recent call last): 191s ------------------------------ Captured log call ------------------------------- 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 192s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-723b1099-a408-4624-80a0-b69cf9a79bb4.json'] 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40941 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34063 192s INFO NotebookApp:kernelmanager.py:179 Kernel started: 723b1099-a408-4624-80a0-b69cf9a79bb4, name: python3 192s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 192s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.320000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 192s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-65bd7d17-94fd-41c4-9445-5060d4770efa.json'] 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56425 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43389 192s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65bd7d17-94fd-41c4-9445-5060d4770efa, name: python3 192s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 192s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.700000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 723b1099-a408-4624-80a0-b69cf9a79bb4 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 723b1099-a408-4624-80a0-b69cf9a79bb4 192s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 192s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 192s result = await result 192s ^^^^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 192s future.result() 192s ~~~~~~~~~~~~~^^ 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 192s yield maybe_future( 192s km.shutdown_kernel(before['kernel']['id']) 192s ) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 192s raise self._exception.with_traceback(self._exception_tb) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 192s result = coro.send(None) 192s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 192s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 192s raise km.ready.exception() # type: ignore[misc] 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s WARNING NotebookApp:handlers.py:612 Unhandled error 192s ERROR NotebookApp:log.py:55 { 192s "Host": "localhost:12341", 192s "Accept": "*/*", 192s "User-Agent": "python-requests/2.32.5" 192s } 192s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 14.810000ms referer=None 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65bd7d17-94fd-41c4-9445-5060d4770efa 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65bd7d17-94fd-41c4-9445-5060d4770efa 192s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 192s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 192s result = await result 192s ^^^^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 192s future.result() 192s ~~~~~~~~~~~~~^^ 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 192s yield maybe_future(sm.delete_session(session_id)) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 192s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 192s raise self._exception.with_traceback(self._exception_tb) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 192s result = coro.send(None) 192s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 192s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 192s raise km.ready.exception() # type: ignore[misc] 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s WARNING NotebookApp:handlers.py:612 Unhandled error 192s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 192s 192s self = 192s 192s def test_modify_kernel_name(self): 192s before = self.sess_api.create('foo/nb1.ipynb').json() 192s sid = before['id'] 192s 192s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 192s self.assertEqual(after['id'], sid) 192s self.assertEqual(after['path'], before['path']) 192s self.assertEqual(after['type'], before['type']) 192s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 192s 192s # check kernel list, to be sure previous kernel was cleaned up 192s r = self.request('GET', 'api/kernels') 192s r.raise_for_status() 192s kernel_list = r.json() 192s after['kernel'].pop('last_activity') 192s [ k.pop('last_activity') for k in kernel_list ] 192s > self.assertEqual(kernel_list, [after['kernel']]) 192s E AssertionError: Lists differ: [{'id': '723b1099-a408-4624-80a0-b69cf9a79bb4', 'n[177 chars]: 0}] != [{'id': '4b3fdd3e-1953-469c-a478-bce60d2988db', 'n[61 chars]: 0}] 192s E 192s E First differing element 0: 192s E {'id': '723b1099-a408-4624-80a0-b69cf9a79bb4', 'n[60 chars]': 0} 192s E {'id': '4b3fdd3e-1953-469c-a478-bce60d2988db', 'n[60 chars]': 0} 192s E 192s E First list contains 1 additional elements. 192s E First extra element 1: 192s E {'id': '4b3fdd3e-1953-469c-a478-bce60d2988db', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 192s E 192s E [{'connections': 0, 192s E - 'execution_state': 'starting', 192s E - 'id': '723b1099-a408-4624-80a0-b69cf9a79bb4', 192s E - 'name': 'python3'}, 192s E - {'connections': 0, 192s E 'execution_state': 'starting', 192s E 'id': '4b3fdd3e-1953-469c-a478-bce60d2988db', 192s E 'name': 'python3'}] 192s 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 192s ----------------------------- Captured stderr call ----------------------------- 192s Traceback (most recent call last): 192s ------------------------------ Captured log call ------------------------------- 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 192s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-4b3fdd3e-1953-469c-a478-bce60d2988db.json'] 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33761 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53525 192s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b3fdd3e-1953-469c-a478-bce60d2988db, name: python3 192s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65bd7d17-94fd-41c4-9445-5060d4770efa 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65bd7d17-94fd-41c4-9445-5060d4770efa 192s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 14.640000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b3fdd3e-1953-469c-a478-bce60d2988db 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b3fdd3e-1953-469c-a478-bce60d2988db 192s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e (::1) 192s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/790f294d-6080-4eb3-87a7-46e71502648e', version='HTTP/1.1', remote_ip='::1') 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 192s result = await result 192s ^^^^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 192s future.result() 192s ~~~~~~~~~~~~~^^ 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 192s yield maybe_future(sm.delete_session(session_id)) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 192s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 192s raise self._exception.with_traceback(self._exception_tb) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 192s result = coro.send(None) 192s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 192s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 192s raise km.ready.exception() # type: ignore[misc] 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s WARNING NotebookApp:handlers.py:612 Unhandled error 192s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 192s 192s @self.addCleanup 192s def cleanup_sessions(): 192s for session in self.sess_api.list().json(): 192s > self.sess_api.delete(session['id']) 192s 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 192s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 192s return self._req('DELETE', id) 192s ^^^^^^^^^^^^^^^^^^^^^^^ 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 192s response.raise_for_status() 192s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 192s 192s self = 192s 192s def raise_for_status(self): 192s """Raises :class:`HTTPError`, if one occurred.""" 192s 192s http_error_msg = "" 192s if isinstance(self.reason, bytes): 192s # We attempt to decode utf-8 first because some servers 192s # choose to localize their reason strings. If the string 192s # isn't utf-8, we fall back to iso-8859-1 for all other 192s # encodings. (See PR #3538) 192s try: 192s reason = self.reason.decode("utf-8") 192s except UnicodeDecodeError: 192s reason = self.reason.decode("iso-8859-1") 192s else: 192s reason = self.reason 192s 192s if 400 <= self.status_code < 500: 192s http_error_msg = ( 192s f"{self.status_code} Client Error: {reason} for url: {self.url}" 192s ) 192s 192s elif 500 <= self.status_code < 600: 192s http_error_msg = ( 192s f"{self.status_code} Server Error: {reason} for url: {self.url}" 192s ) 192s 192s if http_error_msg: 192s > raise HTTPError(http_error_msg, response=self) 192s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c63ece77-a8a1-4a1f-8114-c945301ea9fe 192s 192s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 192s ----------------------------- Captured stderr call ----------------------------- 192s Traceback (most recent call last): 192s ------------------------------ Captured log call ------------------------------- 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 192s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-fc7e492a-1b0c-4d01-a201-a11f9756a68a.json'] 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52673 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38321 192s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc7e492a-1b0c-4d01-a201-a11f9756a68a, name: python3 192s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 192s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.270000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 192s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c63ece77-a8a1-4a1f-8114-c945301ea9fe (::1) 1.880000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc7e492a-1b0c-4d01-a201-a11f9756a68a 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc7e492a-1b0c-4d01-a201-a11f9756a68a 192s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c63ece77-a8a1-4a1f-8114-c945301ea9fe (::1) 192s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c63ece77-a8a1-4a1f-8114-c945301ea9fe', version='HTTP/1.1', remote_ip='::1') 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 192s result = await result 192s ^^^^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 192s future.result() 192s ~~~~~~~~~~~~~^^ 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 192s yield maybe_future(sm.delete_session(session_id)) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 192s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 192s raise self._exception.with_traceback(self._exception_tb) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 192s result = coro.send(None) 192s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 192s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 192s raise km.ready.exception() # type: ignore[misc] 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s WARNING NotebookApp:handlers.py:612 Unhandled error 192s --------------------------- Captured stderr teardown --------------------------- 192s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 192s return _run_code(code, main_globals, None, 192s "__main__", mod_spec) 192s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 192s exec(code, run_globals) 192s ~~~~^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 192s from pathlib import Path 192s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 192s from ._abc import * 192s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 192s from glob import _Globber, _no_recurse_symlinks 192s File "/usr/lib/python3.13/glob.py", line 5, in 192s import re 192s File "/usr/lib/python3.13/re/__init__.py", line 126, in 192s from . import _compiler, _parser 192s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 192s from . import _parser 192s File "/usr/lib/python3.13/re/_parser.py", line 15, in 192s from ._constants import * 192s File "", line 1360, in _find_and_load 192s File "", line 1331, in _find_and_load_unlocked 192s File "", line 948, in _load_unlocked 192s File "", line 491, in _verbose_message 192s KeyboardInterrupt 192s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 192s 192s @self.addCleanup 192s def cleanup_sessions(): 192s for session in self.sess_api.list().json(): 192s > self.sess_api.delete(session['id']) 192s 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 192s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 192s return self._req('DELETE', id) 192s ^^^^^^^^^^^^^^^^^^^^^^^ 192s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 192s response.raise_for_status() 192s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 192s 192s self = 192s 192s def raise_for_status(self): 192s """Raises :class:`HTTPError`, if one occurred.""" 192s 192s http_error_msg = "" 192s if isinstance(self.reason, bytes): 192s # We attempt to decode utf-8 first because some servers 192s # choose to localize their reason strings. If the string 192s # isn't utf-8, we fall back to iso-8859-1 for all other 192s # encodings. (See PR #3538) 192s try: 192s reason = self.reason.decode("utf-8") 192s except UnicodeDecodeError: 192s reason = self.reason.decode("iso-8859-1") 192s else: 192s reason = self.reason 192s 192s if 400 <= self.status_code < 500: 192s http_error_msg = ( 192s f"{self.status_code} Client Error: {reason} for url: {self.url}" 192s ) 192s 192s elif 500 <= self.status_code < 600: 192s http_error_msg = ( 192s f"{self.status_code} Server Error: {reason} for url: {self.url}" 192s ) 192s 192s if http_error_msg: 192s > raise HTTPError(http_error_msg, response=self) 192s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7da2ed48-d741-4a2e-a41e-e79da8ec3d09 192s 192s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 192s ----------------------------- Captured stderr call ----------------------------- 192s Traceback (most recent call last): 192s ------------------------------ Captured log call ------------------------------- 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 192s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9e2vokyq/runtime/kernel-d7ddc077-fabf-4b30-ba62-c9f762f9f88f.json'] 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55475 192s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42211 192s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7ddc077-fabf-4b30-ba62-c9f762f9f88f, name: python3 192s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp9e2vokyq/notebooks/foo'} 192s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.350000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7da2ed48-d741-4a2e-a41e-e79da8ec3d09 (::1) 1.850000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc7e492a-1b0c-4d01-a201-a11f9756a68a 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc7e492a-1b0c-4d01-a201-a11f9756a68a 192s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c63ece77-a8a1-4a1f-8114-c945301ea9fe (::1) 0.700000ms 192s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 192s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7ddc077-fabf-4b30-ba62-c9f762f9f88f 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7ddc077-fabf-4b30-ba62-c9f762f9f88f 192s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7da2ed48-d741-4a2e-a41e-e79da8ec3d09 (::1) 192s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7da2ed48-d741-4a2e-a41e-e79da8ec3d09', version='HTTP/1.1', remote_ip='::1') 192s Traceback (most recent call last): 192s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 192s result = await result 192s ^^^^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 192s future.result() 192s ~~~~~~~~~~~~~^^ 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 192s yield maybe_future(sm.delete_session(session_id)) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 192s yielded = self.gen.throw(exc) 192s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 192s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 192s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 192s value = future.result() 192s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 192s raise self._exception.with_traceback(self._exception_tb) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 192s result = coro.send(None) 192s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 192s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 192s raise km.ready.exception() # type: ignore[misc] 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 192s await kernel_awaitable 192s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 192s result = await obj 192s ^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 192s raise e 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 192s out = await method(self, *args, **kwargs) 192s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 192s await self._async_finish_shutdown(restart=restart) 192s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 192s await asyncio.wait_for( 192s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 192s ) 192s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 192s async with timeouts.timeout(timeout): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^ 192s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 192s raise RuntimeError("Timeout should be used inside a task") 192s RuntimeError: Timeout should be used inside a task 192s WARNING NotebookApp:handlers.py:612 Unhandled error 192s --------------------------- Captured stderr teardown --------------------------- 192s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 192s return _run_code(code, main_globals, None, 192s "__main__", mod_spec) 192s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 192s exec(code, run_globals) 192s ~~~~^^^^^^^^^^^^^^^^^^^ 192s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 192s from pathlib import Path 192s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 192s from ._local import * 192s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 192s class PureWindowsPath(PurePath): 192s ...<7 lines>... 192s __slots__ = () 192s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 192s import ntpath 192s File "/usr/lib/python3.13/ntpath.py", line 45, in 192s from _winapi import ( 192s ...<2 lines>... 192s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 192s File "", line 1360, in _find_and_load 192s File "", line 1322, in _find_and_load_unlocked 192s File "", line 1262, in _find_spec 192s File "", line 1556, in find_spec 192s File "", line 1530, in _get_spec 192s File "", line 1629, in find_spec 192s File "", line 152, in _path_stat 192s KeyboardInterrupt 192s ---------------------------- Captured log teardown ----------------------------- 192s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e81d5a3e-f744-4a84-9e78-4ddf683444eb 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 723b1099-a408-4624-80a0-b69cf9a79bb4 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65bd7d17-94fd-41c4-9445-5060d4770efa 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b3fdd3e-1953-469c-a478-bce60d2988db 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb972f8-5f8c-44c2-a2a8-69e1290da334 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62e021b2-fde6-4fa3-ba7b-ae7ed46ad5a4 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 197734c0-387e-4f27-95ed-16d14e11698c 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc7e492a-1b0c-4d01-a201-a11f9756a68a 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 59d45be0-4bce-444f-8ef8-81dca5e4cf02 192s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7ddc077-fabf-4b30-ba62-c9f762f9f88f 192s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 192s =============================== warnings summary =============================== 192s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 192s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 192s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 192s return LooseVersion(v) >= LooseVersion(check) 192s 192s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 192s auth/tests/test_login.py: 2 warnings 192s bundler/tests/test_bundler_api.py: 2 warnings 192s services/api/tests/test_api.py: 4 warnings 192s services/config/tests/test_config_api.py: 7 warnings 192s services/contents/tests/test_contents_api.py: 318 warnings 192s services/kernels/tests/test_kernels_api.py: 110 warnings 192s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 192s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 192s services/sessions/tests/test_sessionmanager.py: 9 warnings 192s services/sessions/tests/test_sessions_api.py: 128 warnings 192s terminal/tests/test_terminals_api.py: 50 warnings 192s tests/test_files.py: 2 warnings 192s tests/test_gateway.py: 21 warnings 192s tests/test_notebookapp.py: 8 warnings 192s tests/test_paths.py: 2 warnings 192s tree/tests/test_tree_handler.py: 2 warnings 192s /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). 192s dt = unaware(*args, **kwargs) 192s 192s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 192s /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 192s pytestmark = pytest.mark.integration_tests 192s 192s auth/tests/test_login.py: 3 warnings 192s bundler/tests/test_bundler_api.py: 3 warnings 192s services/api/tests/test_api.py: 3 warnings 192s services/config/tests/test_config_api.py: 3 warnings 192s services/contents/tests/test_contents_api.py: 6 warnings 192s services/kernels/tests/test_kernels_api.py: 12 warnings 192s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 192s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 192s services/sessions/tests/test_sessions_api.py: 6 warnings 192s terminal/tests/test_terminals_api.py: 6 warnings 192s tests/test_files.py: 3 warnings 192s tests/test_gateway.py: 3 warnings 192s tests/test_notebookapp.py: 11 warnings 192s tests/test_paths.py: 3 warnings 192s tree/tests/test_tree_handler.py: 3 warnings 192s /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 192s policy = events.get_event_loop_policy() 192s 192s auth/tests/test_login.py: 9 warnings 192s bundler/tests/test_bundler_api.py: 9 warnings 192s services/api/tests/test_api.py: 9 warnings 192s services/config/tests/test_config_api.py: 9 warnings 192s services/contents/tests/test_contents_api.py: 18 warnings 192s services/kernels/tests/test_kernels_api.py: 47 warnings 192s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 192s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 192s services/sessions/tests/test_sessionmanager.py: 18 warnings 192s services/sessions/tests/test_sessions_api.py: 19 warnings 192s terminal/tests/test_terminals_api.py: 18 warnings 192s tests/test_files.py: 9 warnings 192s tests/test_gateway.py: 9 warnings 192s tests/test_notebookapp.py: 28 warnings 192s tests/test_paths.py: 9 warnings 192s tree/tests/test_tree_handler.py: 9 warnings 192s /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 192s loop = events.get_event_loop_policy().get_event_loop() 192s 192s bundler/tests/test_bundler_api.py: 6 warnings 192s services/api/tests/test_api.py: 6 warnings 192s services/contents/tests/test_contents_api.py: 806 warnings 192s services/contents/tests/test_largefilemanager.py: 42 warnings 192s services/contents/tests/test_manager.py: 526 warnings 192s tests/test_files.py: 8 warnings 192s tree/tests/test_tree_handler.py: 6 warnings 192s /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). 192s dt = unaware(*args, **kwargs) 192s 192s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 192s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 192s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 192s loop.make_current() 192s 192s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 192s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 192s /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/tmp_sscevsq/data/kernels/sample 2 192s d = self.find_kernel_specs() 192s 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 192s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 192s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 192s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3134) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 192s pid, fd = os.forkpty() 192s 192s tests/test_files.py::FilesTest::test_contents_manager 192s /usr/lib/python3/dist-packages/traitlets/traitlets.py:1799: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 192s for meta_name, meta_eval in metadata.items(): 192s Enable tracemalloc to get traceback where the object was allocated. 192s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 192s 192s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 192s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 192s /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). 192s dt = datetime.utcnow().isoformat() + 'Z' 192s 192s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 192s =========================== short test summary info ============================ 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 192s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 192s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 192s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 192s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 192s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 192s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 192s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 192s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 192s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 192s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 192s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 192s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 192s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 192s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 192s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 192s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 192s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 192s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 192s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 192s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 192s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 192s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2403 warnings, 8 errors in 30.23s = 192s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 192s *** 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 196s ============================= test session starts ============================== 196s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 196s rootdir: /tmp/autopkgtest.5VVERi/autopkgtest_tmp 196s plugins: typeguard-4.4.4 196s collected 330 items / 303 deselected / 27 selected 196s run-last-failure: rerun previous 27 failures 196s 197s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 199s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 199s 199s ==================================== ERRORS ==================================== 199s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 199s 199s self = 199s 199s def tearDown(self): 199s for k in self.kern_api.list().json(): 199s > self.kern_api.shutdown(k['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 125, in 199s import enum 199s File "/usr/lib/python3.13/enum.py", line 1413, in 199s class Flag(Enum, boundary=STRICT): 199s File "/usr/lib/python3.13/enum.py", line 1413, in Flag 199s class Flag(Enum, boundary=STRICT): 199s KeyboardInterrupt 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-11f0d355-b5a7-4e1d-91b3-2d48d0edc27f.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55749 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38627 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.680000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-9e2496a3-df7d-4331-83c5-537083e17ffd.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52731 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33463 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e2496a3-df7d-4331-83c5-537083e17ffd, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.210000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9e2496a3-df7d-4331-83c5-537083e17ffd 199s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9e2496a3-df7d-4331-83c5-537083e17ffd/interrupt (::1) 0.660000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 199s yield maybe_future(km.restart_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 199s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 199s await ensure_async(kernel.restart_kernel(now=now)) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 199s await self._async_shutdown_kernel(now=now, restart=True) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9e2496a3-df7d-4331-83c5-537083e17ffd/restart (::1) 8.610000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 199s yielded = ctx_run(next, result) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 199s import jupyter_client 199s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 199s from .asynchronous import AsyncKernelClient 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 199s from .client import AsyncKernelClient # noqa 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 199s import zmq.asyncio 199s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 199s import asyncio 199s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 199s from .base_events import * 199s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 199s import concurrent.futures 199s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 199s from concurrent.futures._base import (FIRST_COMPLETED, 199s ...<9 lines>... 199s as_completed) 199s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 199s import logging 199s File "/usr/lib/python3.13/logging/__init__.py", line 444, in 199s class PercentStyle(object): 199s ...<29 lines>... 199s raise ValueError('Formatting field not found in record: %s' % e) 199s File "/usr/lib/python3.13/logging/__init__.py", line 449, in PercentStyle 199s validation_pattern = re.compile(r'%\(\w+\)[#0+ -]*(\*|\d+)?(\.(\*|\d+))?[diouxefgcrsa%]', re.I) 199s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 199s return _compile(pattern, flags) 199s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 199s p = _compiler.compile(pattern, flags) 199s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 199s p = _parser.parse(p, flags) 199s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 199s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 199s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 199s itemsappend(_parse(source, state, verbose, nested + 1, 199s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s not nested and not items)) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3.13/re/_parser.py", line 681, in _parse 199s if subpattern: 199s ^^^^^^^^^^ 199s File "/usr/lib/python3.13/re/_parser.py", line 163, in __len__ 199s def __len__(self): 199s 199s KeyboardInterrupt 199s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 199s 199s self = 199s 199s def tearDown(self): 199s for k in self.kern_api.list().json(): 199s > self.kern_api.shutdown(k['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 199s from ._local import * 199s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 199s import grp 199s KeyboardInterrupt 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/os.py", line 46, in _get_exports_list 199s return list(module.__all__) 199s ^^^^^^^^^^^^^^ 199s AttributeError: module '_socket' has no attribute '__all__'. Did you mean: '__name__'? 199s 199s During handling of the above exception, another exception occurred: 199s 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 199s import jupyter_client 199s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 199s from .asynchronous import AsyncKernelClient 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 199s from .client import AsyncKernelClient # noqa 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 199s import zmq.asyncio 199s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 199s import asyncio 199s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 199s from .base_events import * 199s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 199s import socket 199s File "/usr/lib/python3.13/socket.py", line 68, in 199s __all__.extend(os._get_exports_list(_socket)) 199s ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.13/os.py", line 48, in _get_exports_list 199s return [n for n in dir(module) if n[0] != '_'] 199s ~~~^^^^^^^^ 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-b27d7135-c2f6-46bd-9ae5-42139e6ac3b3.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55805 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47869 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.910000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-dd5eae0b-05be-432a-9026-ae77461af980.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52923 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55475 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: dd5eae0b-05be-432a-9026-ae77461af980, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.470000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dd5eae0b-05be-432a-9026-ae77461af980 199s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980/interrupt (::1) 0.600000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 199s yield maybe_future(km.restart_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 199s result = coro.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 199s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 199s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 199s yield self # This tells Task to wait for completion. 199s ^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 199s await ensure_async(kernel.restart_kernel(now=now)) 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 199s await self._async_shutdown_kernel(now=now, restart=True) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980/restart (::1) 7.110000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 (::1) 9.900000ms referer=None 199s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-35a280d1-94a4-444a-b8ea-0e70f298f62e.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35707 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38055 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35a280d1-94a4-444a-b8ea-0e70f298f62e, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.480000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/eda87ba2-6c11-4a80-b603-ff1bca67dcff (::1) 1.980000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 199s from ._version import ( 199s ...<4 lines>... 199s ) 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1140, in get_code 199s File "", line 727, in _validate_timestamp_pyc 199s KeyboardInterrupt 199s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-5b4af924-f8ad-444a-8a3f-3473ddee1562.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36535 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37529 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b4af924-f8ad-444a-8a3f-3473ddee1562, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.800000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 39d8ba63-67a0-4f94-a731-ba208ced7314 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 39d8ba63-67a0-4f94-a731-ba208ced7314 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/08dc5d27-5de9-4eed-8fe2-725dcd987af9 (::1) 0.700000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 199s import json 199s File "/usr/lib/python3.13/json/__init__.py", line 106, in 199s from .decoder import JSONDecoder, JSONDecodeError 199s File "/usr/lib/python3.13/json/decoder.py", line 5, in 199s from json import scanner 199s File "/usr/lib/python3.13/json/scanner.py", line 11, in 199s NUMBER_RE = re.compile( 199s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 199s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 199s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 199s return _compile(pattern, flags) 199s File "/usr/lib/python3.13/re/__init__.py", line 351, in _compile 199s if flags & DEBUG: 199s ~~~~~~^~~~~~~ 199s File "/usr/lib/python3.13/enum.py", line 1607, in __and__ 199s def __and__(self, other): 199s 199s KeyboardInterrupt 199s =================================== FAILURES =================================== 199s ______________________ KernelAPITest.test_default_kernel _______________________ 199s 199s self = 199s 199s def tearDown(self): 199s for k in self.kern_api.list().json(): 199s > self.kern_api.shutdown(k['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log setup ------------------------------ 199s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpfn5knvy5/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpfn5knvy5/etc/jupyter'] for config files 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfn5knvy5/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfn5knvy5/config 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfn5knvy5/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfn5knvy5/config 199s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpfn5knvy5/notebooks 199s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 199s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 199s WARNING NotebookApp:handlers.py:612 Forbidden 199s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-0cdecc5f-b607-44e2-a8df-dbcb00cad4a2.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47297 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42961 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0cdecc5f-b607-44e2-a8df-dbcb00cad4a2, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 59.030000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0cdecc5f-b607-44e2-a8df-dbcb00cad4a2', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 199s yielded = ctx_run(next, result) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 (::1) 12.900000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 199s import json 199s File "/usr/lib/python3.13/json/__init__.py", line 107, in 199s from .encoder import JSONEncoder 199s File "/usr/lib/python3.13/json/encoder.py", line 19, in 199s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 199s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 199s return _compile(pattern, flags) 199s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 199s p = _compiler.compile(pattern, flags) 199s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 199s p = _parser.parse(p, flags) 199s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 199s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 199s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 199s itemsappend(_parse(source, state, verbose, nested + 1, 199s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s not nested and not items)) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 199s p = _parse_sub(source, state, sub_verbose, nested + 1) 199s File "/usr/lib/python3.13/re/_parser.py", line 457, in _parse_sub 199s start = source.tell() 199s File "/usr/lib/python3.13/re/_parser.py", line 292, in tell 199s def tell(self): 199s 199s KeyboardInterrupt 199s ______________________ KernelAPITest.test_kernel_handler _______________________ 199s 199s self = 199s 199s def test_kernel_handler(self): 199s # GET kernel with given id 199s kid = self.kern_api.start().json()['id'] 199s r = self.kern_api.get(kid) 199s kern1 = r.json() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(kern1, dict) 199s self.assertIn('id', kern1) 199s self.assertEqual(kern1['id'], kid) 199s 199s # Request a bad kernel id and check that a JSON 199s # message is returned! 199s bad_id = '111-111-111-111-111' 199s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 199s self.kern_api.get(bad_id) 199s 199s # DELETE kernel with id 199s > r = self.kern_api.shutdown(kid) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 199s from ._version import ( 199s ...<4 lines>... 199s ) 199s File "", line 1357, in _find_and_load 199s File "", line 416, in __enter__ 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55187 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58833 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.650000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s 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 199s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 199s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.560000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 199s yielded = ctx_run(next, result) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 (::1) 11.960000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0cdecc5f-b607-44e2-a8df-dbcb00cad4a2 (::1) 1.780000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cd1bfbc1-fea2-4c97-9b62-eaafdb1a2145 (::1) 0.620000ms 199s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 199s 199s self = 199s 199s def test_main_kernel_handler(self): 199s # POST request 199s r = self.kern_api.start() 199s kern1 = r.json() 199s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 199s self.assertEqual(r.status_code, 201) 199s self.assertIsInstance(kern1, dict) 199s 199s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 199s expected_csp = '; '.join([ 199s "frame-ancestors 'self'", 199s 'report-uri ' + report_uri, 199s "default-src 'none'" 199s ]) 199s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 199s 199s # GET request 199s r = self.kern_api.list() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(r.json(), list) 199s self.assertEqual(r.json()[0]['id'], kern1['id']) 199s self.assertEqual(r.json()[0]['name'], kern1['name']) 199s 199s # create another kernel and check that they both are added to the 199s # list of kernels from a GET request 199s kern2 = self.kern_api.start().json() 199s assert isinstance(kern2, dict) 199s r = self.kern_api.list() 199s kernels = r.json() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(kernels, list) 199s self.assertEqual(len(kernels), 2) 199s 199s # Interrupt a kernel 199s r = self.kern_api.interrupt(kern2['id']) 199s self.assertEqual(r.status_code, 204) 199s 199s # Restart a kernel 199s > r = self.kern_api.restart(kern2['id']) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 199s return self._req('POST', url_path_join(id, 'restart')) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/9e2496a3-df7d-4331-83c5-537083e17ffd/restart 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 125, in 199s import enum 199s File "/usr/lib/python3.13/enum.py", line 1413, in 199s class Flag(Enum, boundary=STRICT): 199s File "/usr/lib/python3.13/enum.py", line 1413, in Flag 199s class Flag(Enum, boundary=STRICT): 199s KeyboardInterrupt 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-11f0d355-b5a7-4e1d-91b3-2d48d0edc27f.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55749 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38627 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.680000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfn5knvy5/runtime/kernel-9e2496a3-df7d-4331-83c5-537083e17ffd.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52731 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33463 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e2496a3-df7d-4331-83c5-537083e17ffd, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.210000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9e2496a3-df7d-4331-83c5-537083e17ffd 199s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9e2496a3-df7d-4331-83c5-537083e17ffd/interrupt (::1) 0.660000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 199s yield maybe_future(km.restart_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 199s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 199s await ensure_async(kernel.restart_kernel(now=now)) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 199s await self._async_shutdown_kernel(now=now, restart=True) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9e2496a3-df7d-4331-83c5-537083e17ffd/restart (::1) 8.610000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 199s yielded = ctx_run(next, result) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ________________________ KernelAPITest.test_no_kernels _________________________ 199s 199s self = 199s 199s def test_no_kernels(self): 199s """Make sure there are no kernels running at the start""" 199s kernels = self.kern_api.list().json() 199s > self.assertEqual(kernels, []) 199s E AssertionError: Lists differ: [{'id': '11f0d355-b5a7-4e1d-91b3-2d48d0edc[281 chars]: 0}] != [] 199s E 199s E First list contains 2 additional elements. 199s E First extra element 0: 199s E {'id': '11f0d355-b5a7-4e1d-91b3-2d48d0edc27f', 'name': 'python3', 'last_activity': '2026-01-24T03:32:28.338113Z', 'execution_state': 'starting', 'connections': 0} 199s E 199s E + [] 199s E - [{'connections': 0, 199s E - 'execution_state': 'starting', 199s E - 'id': '11f0d355-b5a7-4e1d-91b3-2d48d0edc27f', 199s E - 'last_activity': '2026-01-24T03:32:28.338113Z', 199s E - 'name': 'python3'}, 199s E - {'connections': 0, 199s E - 'execution_state': 'starting', 199s E - 'id': '9e2496a3-df7d-4331-83c5-537083e17ffd', 199s E - 'last_activity': '2026-01-24T03:32:28.358984Z', 199s E - 'name': 'python3'}] 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 11f0d355-b5a7-4e1d-91b3-2d48d0edc27f 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/11f0d355-b5a7-4e1d-91b3-2d48d0edc27f (::1) 0.650000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e2496a3-df7d-4331-83c5-537083e17ffd 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e2496a3-df7d-4331-83c5-537083e17ffd 199s ---------------------------- Captured log teardown ----------------------------- 199s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 199s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 199s _____________________ AsyncKernelAPITest.test_connections ______________________ 199s 199s self = 199s 199s def tearDown(self): 199s for k in self.kern_api.list().json(): 199s > self.kern_api.shutdown(k['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log setup ------------------------------ 199s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpalay1if3/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpalay1if3/etc/jupyter'] for config files 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpalay1if3/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpalay1if3/config 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpalay1if3/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpalay1if3/config 199s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpalay1if3/notebooks 199s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 199s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 199s WARNING NotebookApp:handlers.py:612 Forbidden 199s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-a78d74ce-5ebe-4612-9788-f67174ec9336.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56879 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34455 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: a78d74ce-5ebe-4612-9788-f67174ec9336, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.190000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 0.490000ms 199s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336/channels 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 199s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46237 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (starting) 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (busy) 199s 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.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [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.13'}, {'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/'}]} 199s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel a78d74ce-5ebe-4612-9788-f67174ec9336) to 5.4 (client). 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (idle) 199s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336/channels (::1) 519.780000ms 199s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336/channels 199s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34455 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46237 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56879 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46631 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46237 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56879 199s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 199s Setting websocket_ping_timeout=30000 199s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (busy) 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (busy) 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 1.940000ms 199s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (idle) 199s DEBUG NotebookApp:kernelmanager.py:423 activity on a78d74ce-5ebe-4612-9788-f67174ec9336: status (idle) 199s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:handlers.py:579 Websocket closed a78d74ce-5ebe-4612-9788-f67174ec9336:73dd3dc2-9ca610557cfedc640d7c589c 199s INFO NotebookApp:kernelmanager.py:222 Starting buffering for a78d74ce-5ebe-4612-9788-f67174ec9336:73dd3dc2-9ca610557cfedc640d7c589c 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a78d74ce-5ebe-4612-9788-f67174ec9336:iopub 199s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a78d74ce-5ebe-4612-9788-f67174ec9336:iopub 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a78d74ce-5ebe-4612-9788-f67174ec9336:iopub 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 1.890000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 1.680000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a78d74ce-5ebe-4612-9788-f67174ec9336 199s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for a78d74ce-5ebe-4612-9788-f67174ec9336:73dd3dc2-9ca610557cfedc640d7c589c 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a78d74ce-5ebe-4612-9788-f67174ec9336 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 199s 199s self = 199s 199s def tearDown(self): 199s for k in self.kern_api.list().json(): 199s > self.kern_api.shutdown(k['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-6dccd94c-bb96-439f-b25a-6d37fc6f33f7.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38339 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40737 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dccd94c-bb96-439f-b25a-6d37fc6f33f7, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.670000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a78d74ce-5ebe-4612-9788-f67174ec9336 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a78d74ce-5ebe-4612-9788-f67174ec9336 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a78d74ce-5ebe-4612-9788-f67174ec9336 (::1) 1.970000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6dccd94c-bb96-439f-b25a-6d37fc6f33f7 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6dccd94c-bb96-439f-b25a-6d37fc6f33f7', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "/usr/lib/python3.13/re/_parser.py", line 20, in 199s DIGITS = frozenset("0123456789") 199s KeyboardInterrupt 199s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 199s 199s self = 199s 199s def test_kernel_handler(self): 199s # GET kernel with given id 199s kid = self.kern_api.start().json()['id'] 199s r = self.kern_api.get(kid) 199s kern1 = r.json() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(kern1, dict) 199s self.assertIn('id', kern1) 199s self.assertEqual(kern1['id'], kid) 199s 199s # Request a bad kernel id and check that a JSON 199s # message is returned! 199s bad_id = '111-111-111-111-111' 199s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 199s self.kern_api.get(bad_id) 199s 199s # DELETE kernel with id 199s > r = self.kern_api.shutdown(kid) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 125, in 199s import enum 199s File "/usr/lib/python3.13/enum.py", line 1645, in 199s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 199s ...<2 lines>... 199s """ 199s File "/usr/lib/python3.13/enum.py", line 527, in __new__ 199s _gnv = staticmethod(_gnv) 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-0efcde37-9904-47f4-b36f-edf6ad796ec1.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38671 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52199 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0efcde37-9904-47f4-b36f-edf6ad796ec1, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.250000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1 (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s 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 199s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 199s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0efcde37-9904-47f4-b36f-edf6ad796ec1 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0efcde37-9904-47f4-b36f-edf6ad796ec1 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1 (::1) 10.310000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6dccd94c-bb96-439f-b25a-6d37fc6f33f7 (::1) 0.640000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0efcde37-9904-47f4-b36f-edf6ad796ec1 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0efcde37-9904-47f4-b36f-edf6ad796ec1 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0efcde37-9904-47f4-b36f-edf6ad796ec1 (::1) 0.590000ms 199s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 199s 199s self = 199s 199s def test_main_kernel_handler(self): 199s # POST request 199s r = self.kern_api.start() 199s kern1 = r.json() 199s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 199s self.assertEqual(r.status_code, 201) 199s self.assertIsInstance(kern1, dict) 199s 199s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 199s expected_csp = '; '.join([ 199s "frame-ancestors 'self'", 199s 'report-uri ' + report_uri, 199s "default-src 'none'" 199s ]) 199s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 199s 199s # GET request 199s r = self.kern_api.list() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(r.json(), list) 199s self.assertEqual(r.json()[0]['id'], kern1['id']) 199s self.assertEqual(r.json()[0]['name'], kern1['name']) 199s 199s # create another kernel and check that they both are added to the 199s # list of kernels from a GET request 199s kern2 = self.kern_api.start().json() 199s assert isinstance(kern2, dict) 199s r = self.kern_api.list() 199s kernels = r.json() 199s self.assertEqual(r.status_code, 200) 199s assert isinstance(kernels, list) 199s self.assertEqual(len(kernels), 2) 199s 199s # Interrupt a kernel 199s r = self.kern_api.interrupt(kern2['id']) 199s self.assertEqual(r.status_code, 204) 199s 199s # Restart a kernel 199s > r = self.kern_api.restart(kern2['id']) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 199s return self._req('POST', url_path_join(id, 'restart')) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980/restart 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 199s from ._local import * 199s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 199s import grp 199s KeyboardInterrupt 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/os.py", line 46, in _get_exports_list 199s return list(module.__all__) 199s ^^^^^^^^^^^^^^ 199s AttributeError: module '_socket' has no attribute '__all__'. Did you mean: '__name__'? 199s 199s During handling of the above exception, another exception occurred: 199s 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 199s import jupyter_client 199s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 199s from .asynchronous import AsyncKernelClient 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 199s from .client import AsyncKernelClient # noqa 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 199s import zmq.asyncio 199s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 199s import asyncio 199s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 199s from .base_events import * 199s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 199s import socket 199s File "/usr/lib/python3.13/socket.py", line 68, in 199s __all__.extend(os._get_exports_list(_socket)) 199s ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.13/os.py", line 48, in _get_exports_list 199s return [n for n in dir(module) if n[0] != '_'] 199s ~~~^^^^^^^^ 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-b27d7135-c2f6-46bd-9ae5-42139e6ac3b3.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55805 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47869 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.910000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpalay1if3/runtime/kernel-dd5eae0b-05be-432a-9026-ae77461af980.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52923 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55475 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: dd5eae0b-05be-432a-9026-ae77461af980, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.470000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dd5eae0b-05be-432a-9026-ae77461af980 199s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980/interrupt (::1) 0.600000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 199s yield maybe_future(km.restart_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 199s result = coro.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 199s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 199s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 199s yield self # This tells Task to wait for completion. 199s ^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 199s await ensure_async(kernel.restart_kernel(now=now)) 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 199s await self._async_shutdown_kernel(now=now, restart=True) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980/restart (::1) 7.110000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 199s yield maybe_future(km.shutdown_kernel(kernel_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 (::1) 9.900000ms referer=None 199s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 199s 199s self = 199s 199s def test_no_kernels(self): 199s """Make sure there are no kernels running at the start""" 199s kernels = self.kern_api.list().json() 199s > self.assertEqual(kernels, []) 199s E AssertionError: Lists differ: [{'id': 'b27d7135-c2f6-46bd-9ae5-42139e6ac[281 chars]: 0}] != [] 199s E 199s E First list contains 2 additional elements. 199s E First extra element 0: 199s E {'id': 'b27d7135-c2f6-46bd-9ae5-42139e6ac3b3', 'name': 'python3', 'last_activity': '2026-01-24T03:32:29.256975Z', 'execution_state': 'starting', 'connections': 0} 199s E 199s E + [] 199s E - [{'connections': 0, 199s E - 'execution_state': 'starting', 199s E - 'id': 'b27d7135-c2f6-46bd-9ae5-42139e6ac3b3', 199s E - 'last_activity': '2026-01-24T03:32:29.256975Z', 199s E - 'name': 'python3'}, 199s E - {'connections': 0, 199s E - 'execution_state': 'starting', 199s E - 'id': 'dd5eae0b-05be-432a-9026-ae77461af980', 199s E - 'last_activity': '2026-01-24T03:32:29.282376Z', 199s E - 'name': 'python3'}] 199s 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.600000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 (::1) 0.630000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dd5eae0b-05be-432a-9026-ae77461af980 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dd5eae0b-05be-432a-9026-ae77461af980 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dd5eae0b-05be-432a-9026-ae77461af980 (::1) 0.690000ms 199s ---------------------------- Captured log teardown ----------------------------- 199s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b27d7135-c2f6-46bd-9ae5-42139e6ac3b3 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dccd94c-bb96-439f-b25a-6d37fc6f33f7 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0efcde37-9904-47f4-b36f-edf6ad796ec1 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a78d74ce-5ebe-4612-9788-f67174ec9336 199s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 199s __________________________ SessionAPITest.test_create __________________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log setup ------------------------------ 199s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpfkp3owpb/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpfkp3owpb/etc/jupyter'] for config files 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfkp3owpb/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfkp3owpb/config 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfkp3owpb/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfkp3owpb/config 199s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpfkp3owpb/notebooks 199s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 199s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 199s WARNING NotebookApp:handlers.py:612 Forbidden 199s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "", line 1360, in _find_and_load 199s File "", line 1322, in _find_and_load_unlocked 199s File "", line 1262, in _find_spec 199s File "", line 1556, in find_spec 199s File "", line 1530, in _get_spec 199s File "", line 1661, in find_spec 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-0a0f80b7-5c00-496d-ac11-e40209f1f398.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42365 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34219 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0a0f80b7-5c00-496d-ac11-e40209f1f398, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.450000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19 (::1) 0.600000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a0f80b7-5c00-496d-ac11-e40209f1f398 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a0f80b7-5c00-496d-ac11-e40209f1f398 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19 (::1) 8.080000ms referer=None 199s __________________ SessionAPITest.test_create_console_session __________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6e1e5673-45ce-484c-854f-cee3596ac222 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-0fab2cda-3470-4797-86ed-9a24518d0f65.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60483 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39619 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0fab2cda-3470-4797-86ed-9a24518d0f65, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.620000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a0f80b7-5c00-496d-ac11-e40209f1f398 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a0f80b7-5c00-496d-ac11-e40209f1f398 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/48e7c7a7-12f8-4de2-a2f4-5ce488048f19 (::1) 1.430000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0fab2cda-3470-4797-86ed-9a24518d0f65 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0fab2cda-3470-4797-86ed-9a24518d0f65 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6e1e5673-45ce-484c-854f-cee3596ac222 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6e1e5673-45ce-484c-854f-cee3596ac222', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 199s from ._local import * 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1152, in get_code 199s File "", line 781, in _compile_bytecode 199s KeyboardInterrupt 199s ____________________ SessionAPITest.test_create_deprecated _____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6e491c33-6601-4583-87b8-aa0ad7e5dc3d 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-c214c7c0-f328-4222-b81a-08838e02de38.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38257 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39577 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: c214c7c0-f328-4222-b81a-08838e02de38, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.560000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0fab2cda-3470-4797-86ed-9a24518d0f65 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0fab2cda-3470-4797-86ed-9a24518d0f65 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6e1e5673-45ce-484c-854f-cee3596ac222 (::1) 1.940000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c214c7c0-f328-4222-b81a-08838e02de38 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c214c7c0-f328-4222-b81a-08838e02de38 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6e491c33-6601-4583-87b8-aa0ad7e5dc3d (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6e491c33-6601-4583-87b8-aa0ad7e5dc3d', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6e491c33-6601-4583-87b8-aa0ad7e5dc3d (::1) 7.250000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 199s import functools 199s File "/usr/lib/python3.13/functools.py", line 18, in 199s from collections import namedtuple 199s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 199s from reprlib import recursive_repr as _recursive_repr 199s File "", line 1360, in _find_and_load 199s File "", line 1322, in _find_and_load_unlocked 199s File "", line 1262, in _find_spec 199s File "", line 1556, in find_spec 199s File "", line 1530, in _get_spec 199s File "", line 1629, in find_spec 199s File "", line 152, in _path_stat 199s KeyboardInterrupt 199s ___________________ SessionAPITest.test_create_file_session ____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/eda87ba2-6c11-4a80-b603-ff1bca67dcff 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-958f67e1-b40e-49d0-88b5-18fd7bd6499f.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55089 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40129 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 958f67e1-b40e-49d0-88b5-18fd7bd6499f, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.320000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c214c7c0-f328-4222-b81a-08838e02de38 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c214c7c0-f328-4222-b81a-08838e02de38 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6e491c33-6601-4583-87b8-aa0ad7e5dc3d (::1) 0.790000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/eda87ba2-6c11-4a80-b603-ff1bca67dcff (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/eda87ba2-6c11-4a80-b603-ff1bca67dcff', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1152, in get_code 199s File "", line 781, in _compile_bytecode 199s KeyboardInterrupt 199s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 199s 199s self = 199s 199s def test_create_with_kernel_id(self): 199s # create a new kernel 199s r = self.request('POST', 'api/kernels') 199s r.raise_for_status() 199s kernel = r.json() 199s 199s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 199s self.assertEqual(resp.status_code, 201) 199s newsession = resp.json() 199s self.assertIn('id', newsession) 199s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 199s self.assertEqual(newsession['kernel']['id'], kernel['id']) 199s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 199s 199s sessions = self.sess_api.list().json() 199s > self.assertEqual(sessions, [newsession]) 199s E AssertionError: Lists differ: [{'id': 'eda87ba2-6c11-4a80-b603-ff1bca67dcff', 'p[553 chars]ne}}] != [{'id': '717fe7e9-8e05-4907-96dd-0d3ef5b16720', 'p[279 chars]ne}}] 199s E 199s E First differing element 0: 199s E {'id': 'eda87ba2-6c11-4a80-b603-ff1bca67dcff', 'p[218 chars]: 0}} 199s E {'id': '717fe7e9-8e05-4907-96dd-0d3ef5b16720', 'p[278 chars]one}} 199s E 199s E First list contains 1 additional elements. 199s E First extra element 1: 199s E {'id': '717fe7e9-8e05-4907-96dd-0d3ef5b16720', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '35a280d1-94a4-444a-b8ea-0e70f298f62e', 'name': 'python3', 'last_activity': '2026-01-24T03:32:29.746751Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 199s E 199s E Diff is 830 characters long. Set self.maxDiff to None to see it. 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-35a280d1-94a4-444a-b8ea-0e70f298f62e.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35707 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38055 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35a280d1-94a4-444a-b8ea-0e70f298f62e, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.480000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 958f67e1-b40e-49d0-88b5-18fd7bd6499f 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/eda87ba2-6c11-4a80-b603-ff1bca67dcff (::1) 1.980000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 199s from subprocess import PIPE, Popen 199s File "/usr/lib/python3.13/subprocess.py", line 58, in 199s import fcntl 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-92589f27-d254-4f8d-aba4-d42503a78905.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58991 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33197 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92589f27-d254-4f8d-aba4-d42503a78905, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.220000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35a280d1-94a4-444a-b8ea-0e70f298f62e 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 1.120000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.640000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.730000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92589f27-d254-4f8d-aba4-d42503a78905 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92589f27-d254-4f8d-aba4-d42503a78905 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-4a7d1d4b-85c1-4061-9620-e8685488b929.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58473 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42401 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a7d1d4b-85c1-4061-9620-e8685488b929, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92589f27-d254-4f8d-aba4-d42503a78905 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92589f27-d254-4f8d-aba4-d42503a78905 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 15.470000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.660000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a7d1d4b-85c1-4061-9620-e8685488b929 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a7d1d4b-85c1-4061-9620-e8685488b929 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/717fe7e9-8e05-4907-96dd-0d3ef5b16720', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 199s from ._casefix import _EXTRA_CASES 199s File "", line 1360, in _find_and_load 199s File "", line 1322, in _find_and_load_unlocked 199s File "", line 1262, in _find_spec 199s File "", line 1556, in find_spec 199s File "", line 1530, in _get_spec 199s File "", line 1661, in find_spec 199s KeyboardInterrupt 199s _______________________ SessionAPITest.test_modify_type ________________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fe8559b3-375d-459d-9b79-73099fc95790 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfkp3owpb/runtime/kernel-b9e0547a-0c73-46fe-ab7c-75c0a1d42925.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45869 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54113 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: b9e0547a-0c73-46fe-ab7c-75c0a1d42925, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfkp3owpb/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.790000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/fe8559b3-375d-459d-9b79-73099fc95790 (::1) 1.260000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.720000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9e0547a-0c73-46fe-ab7c-75c0a1d42925 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9e0547a-0c73-46fe-ab7c-75c0a1d42925 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fe8559b3-375d-459d-9b79-73099fc95790 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fe8559b3-375d-459d-9b79-73099fc95790', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 199s yielded = self.gen.send(value) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 199s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 199s stopper = ensure_async(km.shutdown_kernel(now, restart)) 199s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 199s return _runner_map[name].run(inner) 199s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 199s return fut.result(None) 199s ~~~~~~~~~~^^^^^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 199s return self.__get_result() 199s ~~~~~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 199s raise self._exception 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 199s gc.collect() 199s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 199s 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "/usr/lib/python3.13/re/_parser.py", line 15, in 199s from ._constants import * 199s File "/usr/lib/python3.13/re/_constants.py", line 130, in 199s ATCODES = _makecodes( 199s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 199s ...<5 lines>... 199s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 199s ) 199s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 199s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 199s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s KeyboardInterrupt 199s ---------------------------- Captured log teardown ----------------------------- 199s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9e0547a-0c73-46fe-ab7c-75c0a1d42925 199s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 199s _______________________ AsyncSessionAPITest.test_create ________________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log setup ------------------------------ 199s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmppu9g3fxi/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmppu9g3fxi/etc/jupyter'] for config files 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppu9g3fxi/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmppu9g3fxi/config 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppu9g3fxi/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 199s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmppu9g3fxi/config 199s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmppu9g3fxi/notebooks 199s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 199s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 199s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 199s WARNING NotebookApp:handlers.py:612 Forbidden 199s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 199s from ._local import * 199s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 199s class PureWindowsPath(PurePath): 199s ...<7 lines>... 199s __slots__ = () 199s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 199s import ntpath 199s File "/usr/lib/python3.13/ntpath.py", line 170, in 199s from nt import _path_splitroot_ex as splitroot 199s File "", line 1360, in _find_and_load 199s File "", line 1322, in _find_and_load_unlocked 199s File "", line 1262, in _find_spec 199s File "", line 1556, in find_spec 199s File "", line 1530, in _get_spec 199s File "", line 1661, in find_spec 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-e88d18c7-09c8-4598-9cdc-f029a9b193d5.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50427 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38713 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: e88d18c7-09c8-4598-9cdc-f029a9b193d5, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.240000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31 (::1) 0.580000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e88d18c7-09c8-4598-9cdc-f029a9b193d5 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e88d18c7-09c8-4598-9cdc-f029a9b193d5 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31 (::1) 8.990000ms referer=None 199s _______________ AsyncSessionAPITest.test_create_console_session ________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6b1837f2-1850-430e-b4fe-07d8749c00b5 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35167 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43287 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.340000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e88d18c7-09c8-4598-9cdc-f029a9b193d5 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e88d18c7-09c8-4598-9cdc-f029a9b193d5 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3b9321af-15b2-4640-acbe-e3acc0438e31 (::1) 4.290000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6b1837f2-1850-430e-b4fe-07d8749c00b5 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6b1837f2-1850-430e-b4fe-07d8749c00b5', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6b1837f2-1850-430e-b4fe-07d8749c00b5 (::1) 6.880000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 199s import json 199s File "/usr/lib/python3.13/json/__init__.py", line 106, in 199s from .decoder import JSONDecoder, JSONDecodeError 199s File "/usr/lib/python3.13/json/decoder.py", line 5, in 199s from json import scanner 199s File "/usr/lib/python3.13/json/scanner.py", line 13, in 199s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 199s ~~~~~~~~~~~^~~~~~~~~~~~~~ 199s File "/usr/lib/python3.13/enum.py", line 1605, in __or__ 199s return self.__class__(value | other_value) 199s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3.13/enum.py", line 726, in __call__ 199s return cls.__new__(cls, value) 199s ~~~~~~~~~~~^^^^^^^^^^^^ 199s File "/usr/lib/python3.13/enum.py", line 1188, in __new__ 199s result = cls._missing_(value) 199s File "/usr/lib/python3.13/enum.py", line 1525, in _missing_ 199s for m in cls._iter_member_(member_value): 199s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 199s File "/usr/lib/python3.13/enum.py", line 1454, in _iter_member_by_def_ 199s yield from sorted( 199s ~~~~~~^ 199s cls._iter_member_by_value_(value), 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s key=lambda m: m._sort_order_, 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s ) 199s ^ 199s File "/usr/lib/python3.13/enum.py", line 1439, in _iter_member_by_value_ 199s @classmethod 199s 199s KeyboardInterrupt 199s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/26683ee3-2cdf-4707-a337-c636c9b75fe6 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-1e31bce0-37c4-4735-98ff-363c459366ef.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50575 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43737 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1e31bce0-37c4-4735-98ff-363c459366ef, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6b1837f2-1850-430e-b4fe-07d8749c00b5 (::1) 0.750000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e31bce0-37c4-4735-98ff-363c459366ef 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e31bce0-37c4-4735-98ff-363c459366ef 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/26683ee3-2cdf-4707-a337-c636c9b75fe6 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/26683ee3-2cdf-4707-a337-c636c9b75fe6', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/26683ee3-2cdf-4707-a337-c636c9b75fe6 (::1) 6.960000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 199s from ._casefix import _EXTRA_CASES 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1109, in get_code 199s File "", line 1232, in path_stats 199s File "", line 152, in _path_stat 199s KeyboardInterrupt 199s _________________ AsyncSessionAPITest.test_create_file_session _________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08dc5d27-5de9-4eed-8fe2-725dcd987af9 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-39d8ba63-67a0-4f94-a731-ba208ced7314.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41193 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42619 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 39d8ba63-67a0-4f94-a731-ba208ced7314, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.840000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e31bce0-37c4-4735-98ff-363c459366ef 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e31bce0-37c4-4735-98ff-363c459366ef 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/26683ee3-2cdf-4707-a337-c636c9b75fe6 (::1) 0.730000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 39d8ba63-67a0-4f94-a731-ba208ced7314 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 39d8ba63-67a0-4f94-a731-ba208ced7314 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08dc5d27-5de9-4eed-8fe2-725dcd987af9 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08dc5d27-5de9-4eed-8fe2-725dcd987af9', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 125, in 199s import enum 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1152, in get_code 199s File "", line 781, in _compile_bytecode 199s KeyboardInterrupt 199s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 199s 199s self = 199s 199s def test_create_with_kernel_id(self): 199s # create a new kernel 199s r = self.request('POST', 'api/kernels') 199s r.raise_for_status() 199s kernel = r.json() 199s 199s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 199s self.assertEqual(resp.status_code, 201) 199s newsession = resp.json() 199s self.assertIn('id', newsession) 199s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 199s self.assertEqual(newsession['kernel']['id'], kernel['id']) 199s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 199s 199s sessions = self.sess_api.list().json() 199s > self.assertEqual(sessions, [newsession]) 199s E AssertionError: Lists differ: [{'id': '08dc5d27-5de9-4eed-8fe2-725dcd987af9', 'p[553 chars]ne}}] != [{'id': '6b44ae23-4f64-4141-b5e7-bb62d3974ee7', 'p[279 chars]ne}}] 199s E 199s E First differing element 0: 199s E {'id': '08dc5d27-5de9-4eed-8fe2-725dcd987af9', 'p[218 chars]: 0}} 199s E {'id': '6b44ae23-4f64-4141-b5e7-bb62d3974ee7', 'p[278 chars]one}} 199s E 199s E First list contains 1 additional elements. 199s E First extra element 1: 199s E {'id': '6b44ae23-4f64-4141-b5e7-bb62d3974ee7', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5b4af924-f8ad-444a-8a3f-3473ddee1562', 'name': 'python3', 'last_activity': '2026-01-24T03:32:30.426370Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 199s E 199s E Diff is 830 characters long. Set self.maxDiff to None to see it. 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-5b4af924-f8ad-444a-8a3f-3473ddee1562.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36535 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37529 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b4af924-f8ad-444a-8a3f-3473ddee1562, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.800000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 39d8ba63-67a0-4f94-a731-ba208ced7314 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 39d8ba63-67a0-4f94-a731-ba208ced7314 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/08dc5d27-5de9-4eed-8fe2-725dcd987af9 (::1) 0.700000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-f488953e-4aa1-4859-8f0e-e35721c17241.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40443 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58873 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: f488953e-4aa1-4859-8f0e-e35721c17241, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.230000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 2.260000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f488953e-4aa1-4859-8f0e-e35721c17241 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f488953e-4aa1-4859-8f0e-e35721c17241 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 6.960000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 199s from ._local import * 199s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 199s import warnings 199s File "/usr/lib/python3.13/warnings.py", line 518, in 199s class deprecated: 199s ...<129 lines>... 199s ) 199s KeyboardInterrupt 199s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.990000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-f5ad725d-fe17-4fde-8dc7-73bfed6ec512.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57401 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44321 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: f5ad725d-fe17-4fde-8dc7-73bfed6ec512, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f488953e-4aa1-4859-8f0e-e35721c17241 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f488953e-4aa1-4859-8f0e-e35721c17241 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 14.320000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.720000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5ad725d-fe17-4fde-8dc7-73bfed6ec512 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5ad725d-fe17-4fde-8dc7-73bfed6ec512 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6b44ae23-4f64-4141-b5e7-bb62d3974ee7 (::1) 6.650000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "/usr/lib/python3.13/re/_parser.py", line 15, in 199s from ._constants import * 199s File "", line 1357, in _find_and_load 199s File "", line 417, in __enter__ 199s File "", line 456, in _get_module_lock 199s KeyboardInterrupt 199s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3a1a3b51-c6e8-4573-b9d8-96e92de2aa83 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ----------------------------- Captured stderr call ----------------------------- 199s Traceback (most recent call last): 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmppu9g3fxi/runtime/kernel-4736ab57-3a9a-4a3c-a161-541a4764e8c2.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56927 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51653 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4736ab57-3a9a-4a3c-a161-541a4764e8c2, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmppu9g3fxi/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.440000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3a1a3b51-c6e8-4573-b9d8-96e92de2aa83 (::1) 0.830000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4736ab57-3a9a-4a3c-a161-541a4764e8c2 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4736ab57-3a9a-4a3c-a161-541a4764e8c2 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3a1a3b51-c6e8-4573-b9d8-96e92de2aa83 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3a1a3b51-c6e8-4573-b9d8-96e92de2aa83', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3a1a3b51-c6e8-4573-b9d8-96e92de2aa83 (::1) 6.680000ms referer=None 199s --------------------------- Captured stderr teardown --------------------------- 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "/usr/lib/python3.13/re/_parser.py", line 15, in 199s from ._constants import * 199s File "/usr/lib/python3.13/re/_constants.py", line 130, in 199s ATCODES = _makecodes( 199s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 199s ...<5 lines>... 199s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 199s ) 199s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 199s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 199s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 199s KeyboardInterrupt 199s ---------------------------- Captured log teardown ----------------------------- 199s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e31bce0-37c4-4735-98ff-363c459366ef 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ba9f1dc-f488-4d6f-94cc-6d70d5c0bd94 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 39d8ba63-67a0-4f94-a731-ba208ced7314 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e88d18c7-09c8-4598-9cdc-f029a9b193d5 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f488953e-4aa1-4859-8f0e-e35721c17241 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4736ab57-3a9a-4a3c-a161-541a4764e8c2 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4af924-f8ad-444a-8a3f-3473ddee1562 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5ad725d-fe17-4fde-8dc7-73bfed6ec512 199s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 199s =============================== warnings summary =============================== 199s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 199s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 199s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 199s return LooseVersion(v) >= LooseVersion(check) 199s 199s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 199s services/kernels/tests/test_kernels_api.py: 72 warnings 199s services/sessions/tests/test_sessions_api.py: 106 warnings 199s /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). 199s dt = unaware(*args, **kwargs) 199s 199s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 199s /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 199s pytestmark = pytest.mark.integration_tests 199s 199s services/kernels/tests/test_kernels_api.py: 6 warnings 199s services/sessions/tests/test_sessions_api.py: 6 warnings 199s /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 199s policy = events.get_event_loop_policy() 199s 199s services/kernels/tests/test_kernels_api.py: 24 warnings 199s services/sessions/tests/test_sessions_api.py: 19 warnings 199s /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 199s loop = events.get_event_loop_policy().get_event_loop() 199s 199s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 199s loop.make_current() 199s 199s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 199s =========================== short test summary info ============================ 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 199s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 199s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 199s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 199s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 199s ===== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 6.67s ===== 199s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 199s *** 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 203s ============================= test session starts ============================== 203s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 203s rootdir: /tmp/autopkgtest.5VVERi/autopkgtest_tmp 203s plugins: typeguard-4.4.4 203s collected 330 items / 305 deselected / 25 selected 203s run-last-failure: rerun previous 25 failures 203s 205s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 206s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 206s 206s ==================================== ERRORS ==================================== 206s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 206s 206s self = 206s 206s def tearDown(self): 206s for k in self.kern_api.list().json(): 206s > self.kern_api.shutdown(k['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 3, in 206s import contextlib 206s File "/usr/lib/python3.13/contextlib.py", line 631, in 206s class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager): 206s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 206s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 206s KeyboardInterrupt 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 206s import jupyter_client 206s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 206s from .asynchronous import AsyncKernelClient 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 206s from .client import AsyncKernelClient # noqa 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 206s import zmq.asyncio 206s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 206s import asyncio 206s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 206s from .base_events import * 206s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 206s import ssl 206s File "/usr/lib/python3.13/ssl.py", line 376, in 206s DefaultVerifyPaths = namedtuple("DefaultVerifyPaths", 206s "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env " 206s "openssl_capath") 206s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 206s __new__ = eval(code, namespace) 206s File "", line 0, in 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-c2014a27-7596-4a63-b728-d71168140c57.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35225 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49883 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c2014a27-7596-4a63-b728-d71168140c57, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-c35553e8-44db-4d7e-8d01-c35c096d00a0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32827 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53955 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c35553e8-44db-4d7e-8d01-c35c096d00a0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.790000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c35553e8-44db-4d7e-8d01-c35c096d00a0 206s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0/interrupt (::1) 1.890000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 206s yield maybe_future(km.restart_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 206s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 206s await ensure_async(kernel.restart_kernel(now=now)) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 206s await self._async_shutdown_kernel(now=now, restart=True) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0/restart (::1) 13.040000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c2014a27-7596-4a63-b728-d71168140c57 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c2014a27-7596-4a63-b728-d71168140c57 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 206s yielded = ctx_run(next, result) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 206s 206s self = 206s 206s def tearDown(self): 206s for k in self.kern_api.list().json(): 206s > self.kern_api.shutdown(k['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 206s import functools 206s File "/usr/lib/python3.13/functools.py", line 18, in 206s from collections import namedtuple 206s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 206s from operator import eq as _eq 206s File "", line 1360, in _find_and_load 206s File "", line 1322, in _find_and_load_unlocked 206s File "", line 1262, in _find_spec 206s File "", line 1556, in find_spec 206s File "", line 1530, in _get_spec 206s File "", line 1629, in find_spec 206s File "", line 152, in _path_stat 206s KeyboardInterrupt 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 206s import jupyter_client 206s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 206s from .asynchronous import AsyncKernelClient 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 206s from .client import AsyncKernelClient # noqa 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 206s import zmq.asyncio 206s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 206s import asyncio 206s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 206s from .base_events import * 206s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 206s import concurrent.futures 206s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 206s from concurrent.futures._base import (FIRST_COMPLETED, 206s ...<9 lines>... 206s as_completed) 206s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 206s import logging 206s File "/usr/lib/python3.13/logging/__init__.py", line 734, in 206s _defaultFormatter = Formatter() 206s File "/usr/lib/python3.13/logging/__init__.py", line 621, in __init__ 206s self._style = _STYLES[style][0](fmt, defaults=defaults) 206s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-0b403fc2-390e-4dad-8de9-a0ffa3359368.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34701 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42877 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b403fc2-390e-4dad-8de9-a0ffa3359368, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.950000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-14e9e2c2-76cd-4c01-80f3-200dc2db4187.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44571 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41001 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14e9e2c2-76cd-4c01-80f3-200dc2db4187, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.050000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 14e9e2c2-76cd-4c01-80f3-200dc2db4187 206s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/14e9e2c2-76cd-4c01-80f3-200dc2db4187/interrupt (::1) 3.800000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 206s yield maybe_future(km.restart_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 206s result = coro.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 206s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 206s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 206s yield self # This tells Task to wait for completion. 206s ^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 206s await ensure_async(kernel.restart_kernel(now=now)) 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 206s await self._async_shutdown_kernel(now=now, restart=True) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/14e9e2c2-76cd-4c01-80f3-200dc2db4187/restart (::1) 7.330000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.750000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 (::1) 6.400000ms referer=None 206s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-6c7df6fd-21e4-4cf8-933f-30ca648d93a0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57339 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39725 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6c7df6fd-21e4-4cf8-933f-30ca648d93a0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.430000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e (::1) 0.800000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 8.480000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 206s from __future__ import annotations 206s File "", line 1360, in _find_and_load 206s File "", line 1322, in _find_and_load_unlocked 206s File "", line 1262, in _find_spec 206s File "", line 1556, in find_spec 206s File "", line 1530, in _get_spec 206s File "", line 1661, in find_spec 206s KeyboardInterrupt 206s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-a7a7812d-1169-41a0-a478-7e5d3a326dc0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37519 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34327 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: a7a7812d-1169-41a0-a478-7e5d3a326dc0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.880000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.160000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7 (::1) 0.730000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 206s import json 206s File "/usr/lib/python3.13/json/__init__.py", line 107, in 206s from .encoder import JSONEncoder 206s File "/usr/lib/python3.13/json/encoder.py", line 19, in 206s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 206s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 206s return _compile(pattern, flags) 206s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 206s p = _compiler.compile(pattern, flags) 206s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 206s p = _parser.parse(p, flags) 206s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 206s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 206s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 206s itemsappend(_parse(source, state, verbose, nested + 1, 206s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s not nested and not items)) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 206s p = _parse_sub(source, state, sub_verbose, nested + 1) 206s File "/usr/lib/python3.13/re/_parser.py", line 493, in _parse_sub 206s if len(item) != 1: 206s ~~~^^^^^^ 206s File "/usr/lib/python3.13/re/_parser.py", line 163, in __len__ 206s def __len__(self): 206s 206s KeyboardInterrupt 206s =================================== FAILURES =================================== 206s ______________________ KernelAPITest.test_default_kernel _______________________ 206s 206s self = 206s 206s def tearDown(self): 206s for k in self.kern_api.list().json(): 206s > self.kern_api.shutdown(k['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0e740154-56b5-4535-b78d-e9f1f33d6952 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ------------------------------ Captured log setup ------------------------------ 206s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpjw8y1kf2/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpjw8y1kf2/etc/jupyter'] for config files 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjw8y1kf2/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjw8y1kf2/config 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjw8y1kf2/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjw8y1kf2/config 206s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpjw8y1kf2/notebooks 206s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 206s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 206s WARNING NotebookApp:handlers.py:612 Forbidden 206s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.660000ms referer=None 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 206s import json 206s File "/usr/lib/python3.13/json/__init__.py", line 107, in 206s from .encoder import JSONEncoder 206s File "/usr/lib/python3.13/json/encoder.py", line 18, in 206s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 206s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 206s return _compile(pattern, flags) 206s File "/usr/lib/python3.13/re/__init__.py", line 341, in _compile 206s p = _cache.pop(key, None) 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-0e740154-56b5-4535-b78d-e9f1f33d6952.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33077 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59447 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0e740154-56b5-4535-b78d-e9f1f33d6952, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 55.010000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e740154-56b5-4535-b78d-e9f1f33d6952 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e740154-56b5-4535-b78d-e9f1f33d6952 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0e740154-56b5-4535-b78d-e9f1f33d6952 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0e740154-56b5-4535-b78d-e9f1f33d6952', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 206s yielded = ctx_run(next, result) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0e740154-56b5-4535-b78d-e9f1f33d6952 (::1) 15.240000ms referer=None 206s ______________________ KernelAPITest.test_kernel_handler _______________________ 206s 206s self = 206s 206s def test_kernel_handler(self): 206s # GET kernel with given id 206s kid = self.kern_api.start().json()['id'] 206s r = self.kern_api.get(kid) 206s kern1 = r.json() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(kern1, dict) 206s self.assertIn('id', kern1) 206s self.assertEqual(kern1['id'], kid) 206s 206s # Request a bad kernel id and check that a JSON 206s # message is returned! 206s bad_id = '111-111-111-111-111' 206s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 206s self.kern_api.get(bad_id) 206s 206s # DELETE kernel with id 206s > r = self.kern_api.shutdown(kid) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 206s from ._local import * 206s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 206s class PureWindowsPath(PurePath): 206s ...<7 lines>... 206s __slots__ = () 206s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 206s import ntpath 206s File "/usr/lib/python3.13/ntpath.py", line 557, in 206s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 206s File "", line 1360, in _find_and_load 206s File "", line 1322, in _find_and_load_unlocked 206s File "", line 1262, in _find_spec 206s File "", line 1556, in find_spec 206s File "", line 1530, in _get_spec 206s File "", line 1657, in find_spec 206s File "", line 133, in _path_join 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-32be9b26-bddd-4c7b-a568-4654df1aee3b.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59637 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46777 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32be9b26-bddd-4c7b-a568-4654df1aee3b, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.030000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b (::1) 0.540000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s 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 206s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 206s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32be9b26-bddd-4c7b-a568-4654df1aee3b 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32be9b26-bddd-4c7b-a568-4654df1aee3b 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 206s yielded = ctx_run(next, result) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b (::1) 13.390000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e740154-56b5-4535-b78d-e9f1f33d6952 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e740154-56b5-4535-b78d-e9f1f33d6952 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0e740154-56b5-4535-b78d-e9f1f33d6952 (::1) 0.750000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32be9b26-bddd-4c7b-a568-4654df1aee3b 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32be9b26-bddd-4c7b-a568-4654df1aee3b 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/32be9b26-bddd-4c7b-a568-4654df1aee3b (::1) 0.770000ms 206s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 206s 206s self = 206s 206s def test_main_kernel_handler(self): 206s # POST request 206s r = self.kern_api.start() 206s kern1 = r.json() 206s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 206s self.assertEqual(r.status_code, 201) 206s self.assertIsInstance(kern1, dict) 206s 206s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 206s expected_csp = '; '.join([ 206s "frame-ancestors 'self'", 206s 'report-uri ' + report_uri, 206s "default-src 'none'" 206s ]) 206s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 206s 206s # GET request 206s r = self.kern_api.list() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(r.json(), list) 206s self.assertEqual(r.json()[0]['id'], kern1['id']) 206s self.assertEqual(r.json()[0]['name'], kern1['name']) 206s 206s # create another kernel and check that they both are added to the 206s # list of kernels from a GET request 206s kern2 = self.kern_api.start().json() 206s assert isinstance(kern2, dict) 206s r = self.kern_api.list() 206s kernels = r.json() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(kernels, list) 206s self.assertEqual(len(kernels), 2) 206s 206s # Interrupt a kernel 206s r = self.kern_api.interrupt(kern2['id']) 206s self.assertEqual(r.status_code, 204) 206s 206s # Restart a kernel 206s > r = self.kern_api.restart(kern2['id']) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 206s return self._req('POST', url_path_join(id, 'restart')) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0/restart 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 3, in 206s import contextlib 206s File "/usr/lib/python3.13/contextlib.py", line 631, in 206s class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager): 206s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 206s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 206s KeyboardInterrupt 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 206s import jupyter_client 206s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 206s from .asynchronous import AsyncKernelClient 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 206s from .client import AsyncKernelClient # noqa 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 206s import zmq.asyncio 206s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 206s import asyncio 206s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 206s from .base_events import * 206s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 206s import ssl 206s File "/usr/lib/python3.13/ssl.py", line 376, in 206s DefaultVerifyPaths = namedtuple("DefaultVerifyPaths", 206s "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env " 206s "openssl_capath") 206s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 206s __new__ = eval(code, namespace) 206s File "", line 0, in 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-c2014a27-7596-4a63-b728-d71168140c57.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35225 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49883 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c2014a27-7596-4a63-b728-d71168140c57, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjw8y1kf2/runtime/kernel-c35553e8-44db-4d7e-8d01-c35c096d00a0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32827 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53955 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c35553e8-44db-4d7e-8d01-c35c096d00a0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.790000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c35553e8-44db-4d7e-8d01-c35c096d00a0 206s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0/interrupt (::1) 1.890000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 206s yield maybe_future(km.restart_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 206s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 206s await ensure_async(kernel.restart_kernel(now=now)) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 206s await self._async_shutdown_kernel(now=now, restart=True) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0/restart (::1) 13.040000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c2014a27-7596-4a63-b728-d71168140c57 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c2014a27-7596-4a63-b728-d71168140c57 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 206s yielded = ctx_run(next, result) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ________________________ KernelAPITest.test_no_kernels _________________________ 206s 206s self = 206s 206s def test_no_kernels(self): 206s """Make sure there are no kernels running at the start""" 206s kernels = self.kern_api.list().json() 206s > self.assertEqual(kernels, []) 206s E AssertionError: Lists differ: [{'id': 'c2014a27-7596-4a63-b728-d71168140[281 chars]: 0}] != [] 206s E 206s E First list contains 2 additional elements. 206s E First extra element 0: 206s E {'id': 'c2014a27-7596-4a63-b728-d71168140c57', 'name': 'python3', 'last_activity': '2026-01-24T03:32:35.744746Z', 'execution_state': 'starting', 'connections': 0} 206s E 206s E + [] 206s E - [{'connections': 0, 206s E - 'execution_state': 'starting', 206s E - 'id': 'c2014a27-7596-4a63-b728-d71168140c57', 206s E - 'last_activity': '2026-01-24T03:32:35.744746Z', 206s E - 'name': 'python3'}, 206s E - {'connections': 0, 206s E - 'execution_state': 'starting', 206s E - 'id': 'c35553e8-44db-4d7e-8d01-c35c096d00a0', 206s E - 'last_activity': '2026-01-24T03:32:35.764220Z', 206s E - 'name': 'python3'}] 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c2014a27-7596-4a63-b728-d71168140c57 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c2014a27-7596-4a63-b728-d71168140c57 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c2014a27-7596-4a63-b728-d71168140c57 (::1) 1.860000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c35553e8-44db-4d7e-8d01-c35c096d00a0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c35553e8-44db-4d7e-8d01-c35c096d00a0 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c35553e8-44db-4d7e-8d01-c35c096d00a0 (::1) 0.810000ms 206s ---------------------------- Captured log teardown ----------------------------- 206s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 206s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 206s _____________________ AsyncKernelAPITest.test_connections ______________________ 206s 206s self = 206s 206s def tearDown(self): 206s for k in self.kern_api.list().json(): 206s > self.kern_api.shutdown(k['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ------------------------------ Captured log setup ------------------------------ 206s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp21_gtunj/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp21_gtunj/etc/jupyter'] for config files 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp21_gtunj/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp21_gtunj/config 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp21_gtunj/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp21_gtunj/config 206s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp21_gtunj/notebooks 206s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 206s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 206s WARNING NotebookApp:handlers.py:612 Forbidden 206s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-91f823da-5da0-4dc0-871f-364d9e48cad2.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33361 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54927 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91f823da-5da0-4dc0-871f-364d9e48cad2, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.290000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 0.530000ms 206s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2/channels 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 206s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 91f823da-5da0-4dc0-871f-364d9e48cad2 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58175 206s DEBUG NotebookApp:kernelmanager.py:423 activity on 91f823da-5da0-4dc0-871f-364d9e48cad2: status (starting) 206s DEBUG NotebookApp:kernelmanager.py:423 activity on 91f823da-5da0-4dc0-871f-364d9e48cad2: status (busy) 206s 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.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [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.13'}, {'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/'}]} 206s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 91f823da-5da0-4dc0-871f-364d9e48cad2) to 5.4 (client). 206s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2/channels (::1) 609.720000ms 206s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2/channels 206s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 91f823da-5da0-4dc0-871f-364d9e48cad2 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54927 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58175 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33361 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43061 206s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 91f823da-5da0-4dc0-871f-364d9e48cad2 206s DEBUG NotebookApp:kernelmanager.py:423 activity on 91f823da-5da0-4dc0-871f-364d9e48cad2: status (idle) 206s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 206s Setting websocket_ping_timeout=30000 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 0.560000ms 206s DEBUG NotebookApp:handlers.py:579 Websocket closed 91f823da-5da0-4dc0-871f-364d9e48cad2:82e96b2b-3d97b520656ee1df9a460d76 206s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 91f823da-5da0-4dc0-871f-364d9e48cad2:82e96b2b-3d97b520656ee1df9a460d76 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91f823da-5da0-4dc0-871f-364d9e48cad2 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 1.880000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91f823da-5da0-4dc0-871f-364d9e48cad2 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91f823da-5da0-4dc0-871f-364d9e48cad2 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 10.750000ms referer=None 206s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 206s 206s self = 206s 206s def tearDown(self): 206s for k in self.kern_api.list().json(): 206s > self.kern_api.shutdown(k['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-28f38dfc-bd84-44c1-a8b6-5cf509fcdde7.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59333 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52639 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.460000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91f823da-5da0-4dc0-871f-364d9e48cad2 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91f823da-5da0-4dc0-871f-364d9e48cad2 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/91f823da-5da0-4dc0-871f-364d9e48cad2 (::1) 0.650000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/28f38dfc-bd84-44c1-a8b6-5cf509fcdde7', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 (::1) 10.720000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 206s from subprocess import PIPE, Popen 206s File "/usr/lib/python3.13/subprocess.py", line 46, in 206s import locale 206s File "/usr/lib/python3.13/locale.py", line 180, in 206s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 206s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 206s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 206s return _compile(pattern, flags) 206s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 206s p = _compiler.compile(pattern, flags) 206s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 206s code = _code(p, flags) 206s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 206s _compile(code, p.data, flags) 206s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 206s _compile(code, av[2], flags) 206s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 206s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 206s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 206s _compile(code, av[2], flags) 206s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 206s emit(ANY) 206s ~~~~^^^^^ 206s KeyboardInterrupt 206s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 206s 206s self = 206s 206s def test_kernel_handler(self): 206s # GET kernel with given id 206s kid = self.kern_api.start().json()['id'] 206s r = self.kern_api.get(kid) 206s kern1 = r.json() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(kern1, dict) 206s self.assertIn('id', kern1) 206s self.assertEqual(kern1['id'], kid) 206s 206s # Request a bad kernel id and check that a JSON 206s # message is returned! 206s bad_id = '111-111-111-111-111' 206s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 206s self.kern_api.get(bad_id) 206s 206s # DELETE kernel with id 206s > r = self.kern_api.shutdown(kid) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e145185e-f8e9-450c-81d3-6dfd70777ffc 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 5, in 206s import re 206s File "/usr/lib/python3.13/re/__init__.py", line 126, in 206s from . import _compiler, _parser 206s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 206s from . import _parser 206s File "/usr/lib/python3.13/re/_parser.py", line 15, in 206s from ._constants import * 206s File "/usr/lib/python3.13/re/_constants.py", line 130, in 206s ATCODES = _makecodes( 206s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 206s ...<5 lines>... 206s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 206s ) 206s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 206s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 206s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-e145185e-f8e9-450c-81d3-6dfd70777ffc.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43325 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58093 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: e145185e-f8e9-450c-81d3-6dfd70777ffc, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.120000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e145185e-f8e9-450c-81d3-6dfd70777ffc (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s 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 206s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 206s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.580000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e145185e-f8e9-450c-81d3-6dfd70777ffc 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e145185e-f8e9-450c-81d3-6dfd70777ffc 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e145185e-f8e9-450c-81d3-6dfd70777ffc (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e145185e-f8e9-450c-81d3-6dfd70777ffc', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e145185e-f8e9-450c-81d3-6dfd70777ffc (::1) 7.920000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e145185e-f8e9-450c-81d3-6dfd70777ffc 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e145185e-f8e9-450c-81d3-6dfd70777ffc 206s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 206s 206s self = 206s 206s def test_main_kernel_handler(self): 206s # POST request 206s r = self.kern_api.start() 206s kern1 = r.json() 206s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 206s self.assertEqual(r.status_code, 201) 206s self.assertIsInstance(kern1, dict) 206s 206s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 206s expected_csp = '; '.join([ 206s "frame-ancestors 'self'", 206s 'report-uri ' + report_uri, 206s "default-src 'none'" 206s ]) 206s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 206s 206s # GET request 206s r = self.kern_api.list() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(r.json(), list) 206s self.assertEqual(r.json()[0]['id'], kern1['id']) 206s self.assertEqual(r.json()[0]['name'], kern1['name']) 206s 206s # create another kernel and check that they both are added to the 206s # list of kernels from a GET request 206s kern2 = self.kern_api.start().json() 206s assert isinstance(kern2, dict) 206s r = self.kern_api.list() 206s kernels = r.json() 206s self.assertEqual(r.status_code, 200) 206s assert isinstance(kernels, list) 206s self.assertEqual(len(kernels), 2) 206s 206s # Interrupt a kernel 206s r = self.kern_api.interrupt(kern2['id']) 206s self.assertEqual(r.status_code, 204) 206s 206s # Restart a kernel 206s > r = self.kern_api.restart(kern2['id']) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 206s return self._req('POST', url_path_join(id, 'restart')) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/14e9e2c2-76cd-4c01-80f3-200dc2db4187/restart 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 206s import functools 206s File "/usr/lib/python3.13/functools.py", line 18, in 206s from collections import namedtuple 206s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 206s from operator import eq as _eq 206s File "", line 1360, in _find_and_load 206s File "", line 1322, in _find_and_load_unlocked 206s File "", line 1262, in _find_spec 206s File "", line 1556, in find_spec 206s File "", line 1530, in _get_spec 206s File "", line 1629, in find_spec 206s File "", line 152, in _path_stat 206s KeyboardInterrupt 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 206s import jupyter_client 206s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 206s from .asynchronous import AsyncKernelClient 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 206s from .client import AsyncKernelClient # noqa 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 206s import zmq.asyncio 206s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 206s import asyncio 206s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 206s from .base_events import * 206s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 206s import concurrent.futures 206s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 206s from concurrent.futures._base import (FIRST_COMPLETED, 206s ...<9 lines>... 206s as_completed) 206s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 206s import logging 206s File "/usr/lib/python3.13/logging/__init__.py", line 734, in 206s _defaultFormatter = Formatter() 206s File "/usr/lib/python3.13/logging/__init__.py", line 621, in __init__ 206s self._style = _STYLES[style][0](fmt, defaults=defaults) 206s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-0b403fc2-390e-4dad-8de9-a0ffa3359368.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34701 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42877 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b403fc2-390e-4dad-8de9-a0ffa3359368, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.950000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp21_gtunj/runtime/kernel-14e9e2c2-76cd-4c01-80f3-200dc2db4187.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44571 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41001 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14e9e2c2-76cd-4c01-80f3-200dc2db4187, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.050000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 14e9e2c2-76cd-4c01-80f3-200dc2db4187 206s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/14e9e2c2-76cd-4c01-80f3-200dc2db4187/interrupt (::1) 3.800000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 206s yield maybe_future(km.restart_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 206s result = coro.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 206s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 206s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 206s yield self # This tells Task to wait for completion. 206s ^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 206s await ensure_async(kernel.restart_kernel(now=now)) 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 206s await self._async_shutdown_kernel(now=now, restart=True) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/14e9e2c2-76cd-4c01-80f3-200dc2db4187/restart (::1) 7.330000ms referer=None 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.750000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 206s yield maybe_future(km.shutdown_kernel(kernel_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 (::1) 6.400000ms referer=None 206s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 206s 206s self = 206s 206s def test_no_kernels(self): 206s """Make sure there are no kernels running at the start""" 206s kernels = self.kern_api.list().json() 206s > self.assertEqual(kernels, []) 206s E AssertionError: Lists differ: [{'id': '0b403fc2-390e-4dad-8de9-a0ffa3359[281 chars]: 0}] != [] 206s E 206s E First list contains 2 additional elements. 206s E First extra element 0: 206s E {'id': '0b403fc2-390e-4dad-8de9-a0ffa3359368', 'name': 'python3', 'last_activity': '2026-01-24T03:32:36.749041Z', 'execution_state': 'starting', 'connections': 0} 206s E 206s E + [] 206s E - [{'connections': 0, 206s E - 'execution_state': 'starting', 206s E - 'id': '0b403fc2-390e-4dad-8de9-a0ffa3359368', 206s E - 'last_activity': '2026-01-24T03:32:36.749041Z', 206s E - 'name': 'python3'}, 206s E - {'connections': 0, 206s E - 'execution_state': 'starting', 206s E - 'id': '14e9e2c2-76cd-4c01-80f3-200dc2db4187', 206s E - 'last_activity': '2026-01-24T03:32:36.770918Z', 206s E - 'name': 'python3'}] 206s 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0b403fc2-390e-4dad-8de9-a0ffa3359368 (::1) 1.770000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14e9e2c2-76cd-4c01-80f3-200dc2db4187 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14e9e2c2-76cd-4c01-80f3-200dc2db4187 206s ---------------------------- Captured log teardown ----------------------------- 206s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e145185e-f8e9-450c-81d3-6dfd70777ffc 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b403fc2-390e-4dad-8de9-a0ffa3359368 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91f823da-5da0-4dc0-871f-364d9e48cad2 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28f38dfc-bd84-44c1-a8b6-5cf509fcdde7 206s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 206s __________________________ SessionAPITest.test_create __________________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b93334a3-55a0-45e7-abf6-530c7d73f3b0 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ------------------------------ Captured log setup ------------------------------ 206s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpbm_zs51l/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpbm_zs51l/etc/jupyter'] for config files 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbm_zs51l/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbm_zs51l/config 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbm_zs51l/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbm_zs51l/config 206s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpbm_zs51l/notebooks 206s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 206s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 206s WARNING NotebookApp:handlers.py:612 Forbidden 206s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-13152027-abf0-4f6b-ae59-882d5d1d38e3.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57607 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47169 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 13152027-abf0-4f6b-ae59-882d5d1d38e3, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbm_zs51l/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.150000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/b93334a3-55a0-45e7-abf6-530c7d73f3b0 (::1) 0.590000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13152027-abf0-4f6b-ae59-882d5d1d38e3 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13152027-abf0-4f6b-ae59-882d5d1d38e3 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b93334a3-55a0-45e7-abf6-530c7d73f3b0 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b93334a3-55a0-45e7-abf6-530c7d73f3b0', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 206s from typing import TYPE_CHECKING, Any 206s File "/usr/lib/python3.13/typing.py", line 1709, in 206s class _CallableGenericAlias(_NotIterable, _GenericAlias, _root=True): 206s ...<13 lines>... 206s return operator.getitem, (Callable, args) 206s File "/usr/lib/python3.13/typing.py", line 511, in __init_subclass__ 206s def __init_subclass__(cls, /, *args, **kwds): 206s 206s KeyboardInterrupt 206s __________________ SessionAPITest.test_create_console_session __________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9e1d4a30-fbbc-4329-b13c-67fb15956c97 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 206s import json 206s File "/usr/lib/python3.13/json/__init__.py", line 107, in 206s from .encoder import JSONEncoder 206s File "", line 1360, in _find_and_load 206s File "", line 1331, in _find_and_load_unlocked 206s File "", line 921, in _load_unlocked 206s File "", line 818, in module_from_spec 206s File "", line 48, in _new_module 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-31d91cc5-c92a-452e-ab23-c56c97cbd932.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44847 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51581 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 31d91cc5-c92a-452e-ab23-c56c97cbd932, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbm_zs51l/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.950000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.850000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13152027-abf0-4f6b-ae59-882d5d1d38e3 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13152027-abf0-4f6b-ae59-882d5d1d38e3 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b93334a3-55a0-45e7-abf6-530c7d73f3b0 (::1) 0.880000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31d91cc5-c92a-452e-ab23-c56c97cbd932 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31d91cc5-c92a-452e-ab23-c56c97cbd932 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9e1d4a30-fbbc-4329-b13c-67fb15956c97 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9e1d4a30-fbbc-4329-b13c-67fb15956c97', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9e1d4a30-fbbc-4329-b13c-67fb15956c97 (::1) 10.890000ms referer=None 206s ____________________ SessionAPITest.test_create_deprecated _____________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a451678f-e6b9-48d4-b695-b1d93f879692 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 206s from subprocess import PIPE, Popen 206s File "/usr/lib/python3.13/subprocess.py", line 58, in 206s import fcntl 206s KeyboardInterrupt 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-abe786fd-2a55-4409-8bf5-e1e850b98e6d.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38013 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54919 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: abe786fd-2a55-4409-8bf5-e1e850b98e6d, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbm_zs51l/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.180000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31d91cc5-c92a-452e-ab23-c56c97cbd932 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31d91cc5-c92a-452e-ab23-c56c97cbd932 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9e1d4a30-fbbc-4329-b13c-67fb15956c97 (::1) 0.820000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for abe786fd-2a55-4409-8bf5-e1e850b98e6d 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: abe786fd-2a55-4409-8bf5-e1e850b98e6d 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a451678f-e6b9-48d4-b695-b1d93f879692 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a451678f-e6b9-48d4-b695-b1d93f879692', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a451678f-e6b9-48d4-b695-b1d93f879692 (::1) 7.550000ms referer=None 206s ___________________ SessionAPITest.test_create_file_session ____________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-a55e83ff-b300-4f4a-9350-2b60beeae5b7.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48445 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38357 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: a55e83ff-b300-4f4a-9350-2b60beeae5b7, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbm_zs51l/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.200000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for abe786fd-2a55-4409-8bf5-e1e850b98e6d 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: abe786fd-2a55-4409-8bf5-e1e850b98e6d 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a451678f-e6b9-48d4-b695-b1d93f879692 (::1) 0.780000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e (::1) 7.640000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 206s import json 206s File "/usr/lib/python3.13/json/__init__.py", line 107, in 206s from .encoder import JSONEncoder 206s File "/usr/lib/python3.13/json/encoder.py", line 19, in 206s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 206s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 206s return _compile(pattern, flags) 206s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 206s p = _compiler.compile(pattern, flags) 206s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 206s p = _parser.parse(p, flags) 206s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 206s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 206s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 206s itemsappend(_parse(source, state, verbose, nested + 1, 206s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s not nested and not items)) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 206s p = _parse_sub(source, state, sub_verbose, nested + 1) 206s File "/usr/lib/python3.13/re/_parser.py", line 499, in _parse_sub 206s set.extend(av) 206s ~~~~~~~~~~^^^^ 206s KeyboardInterrupt 206s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 206s 206s self = 206s 206s def test_create_with_kernel_id(self): 206s # create a new kernel 206s r = self.request('POST', 'api/kernels') 206s r.raise_for_status() 206s kernel = r.json() 206s 206s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 206s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 206s gc.collect() 206s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 206s self.assertEqual(resp.status_code, 201) 206s newsession = resp.json() 206s self.assertIn('id', newsession) 206s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 206s self.assertEqual(newsession['kernel']['id'], kernel['id']) 206s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 206s 206s sessions = self.sess_api.list().json() 206s > self.assertEqual(sessions, [newsession]) 206s E AssertionError: Lists differ: [{'id': '9429c0cc-e3b2-4db5-8f4b-5019a752395e', 'p[553 chars]ne}}] != [{'id': 'b9b96690-dca0-4267-aabd-2502e9a57534', 'p[279 chars]ne}}] 206s E 206s E First differing element 0: 206s E {'id': '9429c0cc-e3b2-4db5-8f4b-5019a752395e', 'p[218 chars]: 0}} 206s E {'id': 'b9b96690-dca0-4267-aabd-2502e9a57534', 'p[278 chars]one}} 206s E 206s E First list contains 1 additional elements. 206s E First extra element 1: 206s E {'id': 'b9b96690-dca0-4267-aabd-2502e9a57534', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6c7df6fd-21e4-4cf8-933f-30ca648d93a0', 'name': 'python3', 'last_activity': '2026-01-24T03:32:37.255832Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 206s E 206s E Diff is 830 characters long. Set self.maxDiff to None to see it. 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-6c7df6fd-21e4-4cf8-933f-30ca648d93a0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57339 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39725 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6c7df6fd-21e4-4cf8-933f-30ca648d93a0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.430000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a55e83ff-b300-4f4a-9350-2b60beeae5b7 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9429c0cc-e3b2-4db5-8f4b-5019a752395e (::1) 0.800000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 8.480000ms referer=None 206s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-f53ddb19-3fc8-4343-ab7b-573675404c15.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40137 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32869 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: f53ddb19-3fc8-4343-ab7b-573675404c15, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.100000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c7df6fd-21e4-4cf8-933f-30ca648d93a0 206s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 1.050000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.650000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f53ddb19-3fc8-4343-ab7b-573675404c15 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f53ddb19-3fc8-4343-ab7b-573675404c15 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 7.890000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 206s from subprocess import PIPE, Popen 206s File "/usr/lib/python3.13/subprocess.py", line 49, in 206s import signal 206s File "/usr/lib/python3.13/signal.py", line 19, in 206s _IntEnum._convert_( 206s ~~~~~~~~~~~~~~~~~~^ 206s 'Sigmasks', __name__, 206s ^^^^^^^^^^^^^^^^^^^^^ 206s lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK')) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3.13/enum.py", line 921, in _convert_ 206s members.sort(key=lambda t: (t[1], t[0])) 206s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s KeyboardInterrupt 206s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbm_zs51l/runtime/kernel-99a41469-d80e-473c-84ce-b611ce341487.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33263 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37017 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99a41469-d80e-473c-84ce-b611ce341487, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpbm_zs51l/notebooks/foo'} 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f53ddb19-3fc8-4343-ab7b-573675404c15 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f53ddb19-3fc8-4343-ab7b-573675404c15 206s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 14.550000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99a41469-d80e-473c-84ce-b611ce341487 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99a41469-d80e-473c-84ce-b611ce341487 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 206s yielded = self.gen.send(value) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 206s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 206s stopper = ensure_async(km.shutdown_kernel(now, restart)) 206s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 206s return _runner_map[name].run(inner) 206s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 206s return fut.result(None) 206s ~~~~~~~~~~^^^^^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 206s return self.__get_result() 206s ~~~~~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 206s raise self._exception 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b9b96690-dca0-4267-aabd-2502e9a57534 (::1) 7.440000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 5, in 206s import re 206s File "/usr/lib/python3.13/re/__init__.py", line 126, in 206s from . import _compiler, _parser 206s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 206s from . import _parser 206s File "/usr/lib/python3.13/re/_parser.py", line 15, in 206s from ._constants import * 206s File "/usr/lib/python3.13/re/_constants.py", line 23, in 206s class PatternError(Exception): 206s ...<29 lines>... 206s super().__init__(msg) 206s KeyboardInterrupt 206s _______________________ AsyncSessionAPITest.test_create ________________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ------------------------------ Captured log setup ------------------------------ 206s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_ubp99ag/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_ubp99ag/etc/jupyter'] for config files 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_ubp99ag/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_ubp99ag/config 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_ubp99ag/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 206s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_ubp99ag/config 206s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_ubp99ag/notebooks 206s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 206s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 206s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 206s WARNING NotebookApp:handlers.py:612 Forbidden 206s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.470000ms referer=None 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-7834925e-a5fe-41fc-be7f-dd1bcf485bd2.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51765 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52277 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7834925e-a5fe-41fc-be7f-dd1bcf485bd2, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_ubp99ag/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.560000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e (::1) 0.570000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7834925e-a5fe-41fc-be7f-dd1bcf485bd2 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7834925e-a5fe-41fc-be7f-dd1bcf485bd2 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e (::1) 7.240000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 206s from subprocess import PIPE, Popen 206s File "/usr/lib/python3.13/subprocess.py", line 51, in 206s import threading 206s File "", line 1360, in _find_and_load 206s File "", line 1331, in _find_and_load_unlocked 206s File "", line 935, in _load_unlocked 206s File "", line 1019, in exec_module 206s File "", line 1152, in get_code 206s File "", line 781, in _compile_bytecode 206s KeyboardInterrupt 206s _______________ AsyncSessionAPITest.test_create_console_session ________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4f7b0f44-9688-4433-b4a5-8e054fc6164d 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-c7398f50-cb59-41bc-b331-a3f0d24e11d4.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54973 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36421 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7398f50-cb59-41bc-b331-a3f0d24e11d4, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_ubp99ag/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.270000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7834925e-a5fe-41fc-be7f-dd1bcf485bd2 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7834925e-a5fe-41fc-be7f-dd1bcf485bd2 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8780f70e-8b59-4c18-85c2-8fe8934a0f4e (::1) 0.770000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7398f50-cb59-41bc-b331-a3f0d24e11d4 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7398f50-cb59-41bc-b331-a3f0d24e11d4 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4f7b0f44-9688-4433-b4a5-8e054fc6164d (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4f7b0f44-9688-4433-b4a5-8e054fc6164d', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 5, in 206s import re 206s File "/usr/lib/python3.13/re/__init__.py", line 126, in 206s from . import _compiler, _parser 206s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 206s from . import _parser 206s File "/usr/lib/python3.13/re/_parser.py", line 15, in 206s from ._constants import * 206s File "/usr/lib/python3.13/re/_constants.py", line 130, in 206s ATCODES = _makecodes( 206s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 206s ...<5 lines>... 206s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 206s ) 206s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 206s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 206s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 206s KeyboardInterrupt 206s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c5986b39-385a-4cab-a66e-854c2516ddf9 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-e936e4d2-3624-46b7-9f49-a9bb96ea12de.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47861 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58101 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: e936e4d2-3624-46b7-9f49-a9bb96ea12de, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_ubp99ag/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.580000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7398f50-cb59-41bc-b331-a3f0d24e11d4 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7398f50-cb59-41bc-b331-a3f0d24e11d4 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4f7b0f44-9688-4433-b4a5-8e054fc6164d (::1) 0.740000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e936e4d2-3624-46b7-9f49-a9bb96ea12de 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e936e4d2-3624-46b7-9f49-a9bb96ea12de 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c5986b39-385a-4cab-a66e-854c2516ddf9 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c5986b39-385a-4cab-a66e-854c2516ddf9', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s ERROR NotebookApp:log.py:55 { 206s "Host": "localhost:12341", 206s "Accept": "*/*", 206s "User-Agent": "python-requests/2.32.5" 206s } 206s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c5986b39-385a-4cab-a66e-854c2516ddf9 (::1) 7.070000ms referer=None 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 206s from ipykernel import kernelapp as app 206s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 206s from .connect import * # noqa: F403 206s ^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 206s from __future__ import annotations 206s File "", line 1360, in _find_and_load 206s File "", line 1331, in _find_and_load_unlocked 206s File "", line 935, in _load_unlocked 206s File "", line 1019, in exec_module 206s File "", line 1115, in get_code 206s File "", line 1214, in get_data 206s KeyboardInterrupt 206s _________________ AsyncSessionAPITest.test_create_file_session _________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-c5d5b0df-e4ec-4458-9c06-fce80cb8536e.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53085 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47437 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: c5d5b0df-e4ec-4458-9c06-fce80cb8536e, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_ubp99ag/notebooks/foo'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.830000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e936e4d2-3624-46b7-9f49-a9bb96ea12de 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e936e4d2-3624-46b7-9f49-a9bb96ea12de 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c5986b39-385a-4cab-a66e-854c2516ddf9 (::1) 0.690000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 5, in 206s import re 206s File "/usr/lib/python3.13/re/__init__.py", line 126, in 206s from . import _compiler, _parser 206s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 206s from . import _parser 206s File "/usr/lib/python3.13/re/_parser.py", line 15, in 206s from ._constants import * 206s File "/usr/lib/python3.13/re/_constants.py", line 130, in 206s ATCODES = _makecodes( 206s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 206s ...<5 lines>... 206s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 206s ) 206s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 206s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 206s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 206s KeyboardInterrupt 206s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 206s 206s self = 206s 206s def test_create_with_kernel_id(self): 206s # create a new kernel 206s r = self.request('POST', 'api/kernels') 206s r.raise_for_status() 206s kernel = r.json() 206s 206s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 206s self.assertEqual(resp.status_code, 201) 206s newsession = resp.json() 206s self.assertIn('id', newsession) 206s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 206s self.assertEqual(newsession['kernel']['id'], kernel['id']) 206s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 206s 206s sessions = self.sess_api.list().json() 206s > self.assertEqual(sessions, [newsession]) 206s E AssertionError: Lists differ: [{'id': '19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7', 'pa[552 chars]ne}}] != [{'id': '13fa938d-6b93-4607-87d4-cfc236653578', 'pa[278 chars]ne}}] 206s E 206s E First differing element 0: 206s E {'id': '19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7', 'pa[217 chars]: 0}} 206s E {'id': '13fa938d-6b93-4607-87d4-cfc236653578', 'pa[277 chars]one}} 206s E 206s E First list contains 1 additional elements. 206s E First extra element 1: 206s E {'id': '13fa938d-6b93-4607-87d4-cfc236653578', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a7a7812d-1169-41a0-a478-7e5d3a326dc0', 'name': 'python3', 'last_activity': '2026-01-24T03:32:37.861798Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 206s E 206s E Diff is 830 characters long. Set self.maxDiff to None to see it. 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-a7a7812d-1169-41a0-a478-7e5d3a326dc0.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37519 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34327 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: a7a7812d-1169-41a0-a478-7e5d3a326dc0, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.880000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.160000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c5d5b0df-e4ec-4458-9c06-fce80cb8536e 206s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/19d8dafe-7b53-4c9e-b7da-f4b86c59d7f7 (::1) 0.730000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-2b11c943-879f-4c46-8cd7-6ac6476a1f12.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48435 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55519 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b11c943-879f-4c46-8cd7-6ac6476a1f12, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.150000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7a7812d-1169-41a0-a478-7e5d3a326dc0 206s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 2.170000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.700000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b11c943-879f-4c46-8cd7-6ac6476a1f12 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b11c943-879f-4c46-8cd7-6ac6476a1f12 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 206s from ._local import * 206s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 206s class _PathParents(Sequence): 206s ...<25 lines>... 206s return "<{}.parents>".format(type(self._path).__name__) 206s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 206s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 206s KeyboardInterrupt 206s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 206s 206s @self.addCleanup 206s def cleanup_sessions(): 206s for session in self.sess_api.list().json(): 206s > self.sess_api.delete(session['id']) 206s 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 206s return self._req('DELETE', id) 206s ^^^^^^^^^^^^^^^^^^^^^^^ 206s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 206s response.raise_for_status() 206s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 206s 206s self = 206s 206s def raise_for_status(self): 206s """Raises :class:`HTTPError`, if one occurred.""" 206s 206s http_error_msg = "" 206s if isinstance(self.reason, bytes): 206s # We attempt to decode utf-8 first because some servers 206s # choose to localize their reason strings. If the string 206s # isn't utf-8, we fall back to iso-8859-1 for all other 206s # encodings. (See PR #3538) 206s try: 206s reason = self.reason.decode("utf-8") 206s except UnicodeDecodeError: 206s reason = self.reason.decode("iso-8859-1") 206s else: 206s reason = self.reason 206s 206s if 400 <= self.status_code < 500: 206s http_error_msg = ( 206s f"{self.status_code} Client Error: {reason} for url: {self.url}" 206s ) 206s 206s elif 500 <= self.status_code < 600: 206s http_error_msg = ( 206s f"{self.status_code} Server Error: {reason} for url: {self.url}" 206s ) 206s 206s if http_error_msg: 206s > raise HTTPError(http_error_msg, response=self) 206s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 206s 206s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 206s ----------------------------- Captured stderr call ----------------------------- 206s Traceback (most recent call last): 206s ------------------------------ Captured log call ------------------------------- 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 206s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_ubp99ag/runtime/kernel-1d1d8f84-4829-4a4c-b2a6-7db8fcf04826.json'] 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60859 206s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53649 206s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d1d8f84-4829-4a4c-b2a6-7db8fcf04826, name: python3 206s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_ubp99ag/notebooks/foo'} 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b11c943-879f-4c46-8cd7-6ac6476a1f12 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b11c943-879f-4c46-8cd7-6ac6476a1f12 206s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 15.690000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.660000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.720000ms 206s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 206s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d1d8f84-4829-4a4c-b2a6-7db8fcf04826 206s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d1d8f84-4829-4a4c-b2a6-7db8fcf04826 206s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578 (::1) 206s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/13fa938d-6b93-4607-87d4-cfc236653578', version='HTTP/1.1', remote_ip='::1') 206s Traceback (most recent call last): 206s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 206s result = await result 206s ^^^^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 206s future.result() 206s ~~~~~~~~~~~~~^^ 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 206s yield maybe_future(sm.delete_session(session_id)) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 206s yielded = self.gen.throw(exc) 206s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 206s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 206s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 206s value = future.result() 206s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 206s raise self._exception.with_traceback(self._exception_tb) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 206s result = coro.send(None) 206s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 206s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 206s raise km.ready.exception() # type: ignore[misc] 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 206s await kernel_awaitable 206s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 206s result = await obj 206s ^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 206s raise e 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 206s out = await method(self, *args, **kwargs) 206s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 206s await self._async_finish_shutdown(restart=restart) 206s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 206s await asyncio.wait_for( 206s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 206s ) 206s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 206s async with timeouts.timeout(timeout): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^ 206s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 206s raise RuntimeError("Timeout should be used inside a task") 206s RuntimeError: Timeout should be used inside a task 206s WARNING NotebookApp:handlers.py:612 Unhandled error 206s --------------------------- Captured stderr teardown --------------------------- 206s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 206s return _run_code(code, main_globals, None, 206s "__main__", mod_spec) 206s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 206s exec(code, run_globals) 206s ~~~~^^^^^^^^^^^^^^^^^^^ 206s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 206s from pathlib import Path 206s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 206s from ._abc import * 206s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 206s from glob import _Globber, _no_recurse_symlinks 206s File "/usr/lib/python3.13/glob.py", line 5, in 206s import re 206s File "/usr/lib/python3.13/re/__init__.py", line 126, in 206s from . import _compiler, _parser 206s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 206s from . import _parser 206s File "", line 1360, in _find_and_load 206s File "", line 1331, in _find_and_load_unlocked 206s File "", line 935, in _load_unlocked 206s File "", line 1019, in exec_module 206s File "", line 1152, in get_code 206s File "", line 781, in _compile_bytecode 206s KeyboardInterrupt 206s =============================== warnings summary =============================== 206s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 206s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 206s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 206s return LooseVersion(v) >= LooseVersion(check) 206s 206s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 206s services/kernels/tests/test_kernels_api.py: 68 warnings 206s services/sessions/tests/test_sessions_api.py: 96 warnings 206s /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). 206s dt = unaware(*args, **kwargs) 206s 206s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 206s /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 206s pytestmark = pytest.mark.integration_tests 206s 206s services/kernels/tests/test_kernels_api.py: 6 warnings 206s services/sessions/tests/test_sessions_api.py: 6 warnings 206s /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 206s policy = events.get_event_loop_policy() 206s 206s services/kernels/tests/test_kernels_api.py: 24 warnings 206s services/sessions/tests/test_sessions_api.py: 19 warnings 206s /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 206s loop = events.get_event_loop_policy().get_event_loop() 206s 206s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 206s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 206s loop.make_current() 206s 206s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 206s /usr/lib/python3.14/selectors.py:452: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 206s fd_event_list = self._selector.poll(timeout, max_ev) 206s Enable tracemalloc to get traceback where the object was allocated. 206s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 206s 206s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 206s =========================== short test summary info ============================ 206s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 206s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 206s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 206s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 206s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 206s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 206s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 206s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 206s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 206s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 206s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 206s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 206s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 206s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 206s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 206s ===== 23 failed, 2 passed, 305 deselected, 225 warnings, 4 errors in 6.66s ===== 207s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 207s *** 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 211s ============================= test session starts ============================== 211s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 211s rootdir: /tmp/autopkgtest.5VVERi/autopkgtest_tmp 211s plugins: typeguard-4.4.4 211s collected 330 items / 307 deselected / 23 selected 211s run-last-failure: rerun previous 23 failures 211s 213s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 214s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 214s 214s ==================================== ERRORS ==================================== 214s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 214s import functools 214s File "/usr/lib/python3.13/functools.py", line 455, in 214s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 214s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 214s __new__ = eval(code, namespace) 214s File "", line 0, in 214s KeyboardInterrupt 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 214s import jupyter_client 214s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 214s from .asynchronous import AsyncKernelClient 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 214s from .client import AsyncKernelClient # noqa 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 214s import zmq.asyncio 214s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 214s import asyncio 214s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 214s from .base_events import * 214s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 214s import socket 214s File "/usr/lib/python3.13/socket.py", line 76, in 214s IntEnum._convert_( 214s ~~~~~~~~~~~~~~~~~^ 214s 'AddressFamily', 214s ^^^^^^^^^^^^^^^^ 214s __name__, 214s ^^^^^^^^^ 214s lambda C: C.isupper() and C.startswith('AF_')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 214s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 214s File "/usr/lib/python3.13/enum.py", line 1794, in convert_class 214s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 214s ~~~~~~~~~~~~~~^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 43, in _is_descriptor 214s hasattr(obj, '__set__') or 214s ~~~~~~~^^^^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-9ac2d915-3e90-4cd7-af70-998345113af9.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55773 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38871 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9ac2d915-3e90-4cd7-af70-998345113af9, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.880000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-49e85670-106f-4640-8d7d-e8faa6449dcb.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34383 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56457 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49e85670-106f-4640-8d7d-e8faa6449dcb, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 49e85670-106f-4640-8d7d-e8faa6449dcb 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb/interrupt (::1) 4.090000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb/restart (::1) 8.210000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.820000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ac2d915-3e90-4cd7-af70-998345113af9 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ac2d915-3e90-4cd7-af70-998345113af9 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 214s import functools 214s File "/usr/lib/python3.13/functools.py", line 18, in 214s from collections import namedtuple 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 946, in _load_unlocked 214s KeyboardInterrupt 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-9771c34b-42e6-4a3d-b91d-e2d2092f9c97.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52075 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52491 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-85b0abef-e512-453b-a715-ab703091b3ca.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51699 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42635 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85b0abef-e512-453b-a715-ab703091b3ca, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.970000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.900000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 85b0abef-e512-453b-a715-ab703091b3ca 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca/interrupt (::1) 4.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 214s result = coro.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 214s yield self # This tells Task to wait for completion. 214s ^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca/restart (::1) 7.270000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 (::1) 6.600000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 214s import jupyter_client 214s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 214s from .asynchronous import AsyncKernelClient 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 214s from .client import AsyncKernelClient # noqa 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 214s import zmq.asyncio 214s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 214s import asyncio 214s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 214s from .base_events import * 214s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 214s import socket 214s File "/usr/lib/python3.13/socket.py", line 86, in 214s IntFlag._convert_( 214s ~~~~~~~~~~~~~~~~~^ 214s 'MsgFlag', 214s ^^^^^^^^^^ 214s __name__, 214s ^^^^^^^^^ 214s lambda C: C.isupper() and C.startswith('MSG_')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 214s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 214s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 214s setattr(enum_class, name, member) 214s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 214s super().__setattr__(name, value) 214s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "/usr/lib/python3.13/subprocess.py", line 46, in 214s import locale 214s File "/usr/lib/python3.13/locale.py", line 1769, in 214s __all__.append("LC_MESSAGES") 214s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-12876fc4-260d-45ae-9009-901ae66570f1.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41293 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47167 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12876fc4-260d-45ae-9009-901ae66570f1, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.240000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.730000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7 (::1) 2.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12876fc4-260d-45ae-9009-901ae66570f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12876fc4-260d-45ae-9009-901ae66570f1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 11.880000ms referer=None 214s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-3d0186f7-e5f2-430e-ab55-7a0961f2be35.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47691 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40985 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3d0186f7-e5f2-430e-ab55-7a0961f2be35, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.400000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8469607a-4380-49d4-bb92-d689625ada84 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8469607a-4380-49d4-bb92-d689625ada84 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382 (::1) 0.700000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "/usr/lib/python3.13/subprocess.py", line 125, in 214s import selectors 214s File "/usr/lib/python3.13/selectors.py", line 414, in 214s class PollSelector(_PollLikeSelector): 214s ...<3 lines>... 214s _EVENT_WRITE = select.POLLOUT 214s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 214s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 214s KeyboardInterrupt 214s =================================== FAILURES =================================== 214s ______________________ KernelAPITest.test_default_kernel _______________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/641f12eb-d7f5-4169-af39-fbb93b46016b 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpog25vubd/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpog25vubd/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpog25vubd/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpog25vubd/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpog25vubd/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpog25vubd/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpog25vubd/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 214s import json 214s File "/usr/lib/python3.13/json/__init__.py", line 107, in 214s from .encoder import JSONEncoder 214s File "", line 1357, in _find_and_load 214s File "", line 417, in __enter__ 214s File "", line 456, in _get_module_lock 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-641f12eb-d7f5-4169-af39-fbb93b46016b.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38933 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60893 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 641f12eb-d7f5-4169-af39-fbb93b46016b, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 58.620000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641f12eb-d7f5-4169-af39-fbb93b46016b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641f12eb-d7f5-4169-af39-fbb93b46016b 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/641f12eb-d7f5-4169-af39-fbb93b46016b (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/641f12eb-d7f5-4169-af39-fbb93b46016b', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/641f12eb-d7f5-4169-af39-fbb93b46016b (::1) 8.300000ms referer=None 214s ______________________ KernelAPITest.test_kernel_handler _______________________ 214s 214s self = 214s 214s def test_kernel_handler(self): 214s # GET kernel with given id 214s kid = self.kern_api.start().json()['id'] 214s r = self.kern_api.get(kid) 214s kern1 = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kern1, dict) 214s self.assertIn('id', kern1) 214s self.assertEqual(kern1['id'], kid) 214s 214s # Request a bad kernel id and check that a JSON 214s # message is returned! 214s bad_id = '111-111-111-111-111' 214s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 214s self.kern_api.get(bad_id) 214s 214s # DELETE kernel with id 214s > r = self.kern_api.shutdown(kid) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 214s from glob import _Globber, _no_recurse_symlinks 214s File "/usr/lib/python3.13/glob.py", line 5, in 214s import re 214s File "", line 1360, in _find_and_load 214s File "", line 1322, in _find_and_load_unlocked 214s File "", line 1262, in _find_spec 214s File "", line 1556, in find_spec 214s File "", line 1530, in _get_spec 214s File "", line 1647, in find_spec 214s File "", line 131, in _path_join 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51467 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39355 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.560000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d (::1) 0.540000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s 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 214s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d (::1) 7.790000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641f12eb-d7f5-4169-af39-fbb93b46016b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641f12eb-d7f5-4169-af39-fbb93b46016b 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/641f12eb-d7f5-4169-af39-fbb93b46016b (::1) 1.880000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5dcc7107-84ec-4fcb-b7f8-18919e3bcd1d (::1) 0.700000ms 214s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 214s 214s self = 214s 214s def test_main_kernel_handler(self): 214s # POST request 214s r = self.kern_api.start() 214s kern1 = r.json() 214s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 214s self.assertEqual(r.status_code, 201) 214s self.assertIsInstance(kern1, dict) 214s 214s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 214s expected_csp = '; '.join([ 214s "frame-ancestors 'self'", 214s 'report-uri ' + report_uri, 214s "default-src 'none'" 214s ]) 214s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 214s 214s # GET request 214s r = self.kern_api.list() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(r.json(), list) 214s self.assertEqual(r.json()[0]['id'], kern1['id']) 214s self.assertEqual(r.json()[0]['name'], kern1['name']) 214s 214s # create another kernel and check that they both are added to the 214s # list of kernels from a GET request 214s kern2 = self.kern_api.start().json() 214s assert isinstance(kern2, dict) 214s r = self.kern_api.list() 214s kernels = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kernels, list) 214s self.assertEqual(len(kernels), 2) 214s 214s # Interrupt a kernel 214s r = self.kern_api.interrupt(kern2['id']) 214s self.assertEqual(r.status_code, 204) 214s 214s # Restart a kernel 214s > r = self.kern_api.restart(kern2['id']) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 214s return self._req('POST', url_path_join(id, 'restart')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb/restart 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 214s import functools 214s File "/usr/lib/python3.13/functools.py", line 455, in 214s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 214s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 214s __new__ = eval(code, namespace) 214s File "", line 0, in 214s KeyboardInterrupt 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 214s import jupyter_client 214s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 214s from .asynchronous import AsyncKernelClient 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 214s from .client import AsyncKernelClient # noqa 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 214s import zmq.asyncio 214s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 214s import asyncio 214s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 214s from .base_events import * 214s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 214s import socket 214s File "/usr/lib/python3.13/socket.py", line 76, in 214s IntEnum._convert_( 214s ~~~~~~~~~~~~~~~~~^ 214s 'AddressFamily', 214s ^^^^^^^^^^^^^^^^ 214s __name__, 214s ^^^^^^^^^ 214s lambda C: C.isupper() and C.startswith('AF_')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 214s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 214s File "/usr/lib/python3.13/enum.py", line 1794, in convert_class 214s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 214s ~~~~~~~~~~~~~~^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 43, in _is_descriptor 214s hasattr(obj, '__set__') or 214s ~~~~~~~^^^^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-9ac2d915-3e90-4cd7-af70-998345113af9.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55773 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38871 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9ac2d915-3e90-4cd7-af70-998345113af9, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.880000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.790000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpog25vubd/runtime/kernel-49e85670-106f-4640-8d7d-e8faa6449dcb.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34383 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56457 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49e85670-106f-4640-8d7d-e8faa6449dcb, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 49e85670-106f-4640-8d7d-e8faa6449dcb 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb/interrupt (::1) 4.090000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb/restart (::1) 8.210000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.820000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ac2d915-3e90-4cd7-af70-998345113af9 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ac2d915-3e90-4cd7-af70-998345113af9 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ________________________ KernelAPITest.test_no_kernels _________________________ 214s 214s self = 214s 214s def test_no_kernels(self): 214s """Make sure there are no kernels running at the start""" 214s kernels = self.kern_api.list().json() 214s > self.assertEqual(kernels, []) 214s E AssertionError: Lists differ: [{'id': '9ac2d915-3e90-4cd7-af70-998345113[281 chars]: 0}] != [] 214s E 214s E First list contains 2 additional elements. 214s E First extra element 0: 214s E {'id': '9ac2d915-3e90-4cd7-af70-998345113af9', 'name': 'python3', 'last_activity': '2026-01-24T03:32:43.195733Z', 'execution_state': 'starting', 'connections': 0} 214s E 214s E + [] 214s E - [{'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '9ac2d915-3e90-4cd7-af70-998345113af9', 214s E - 'last_activity': '2026-01-24T03:32:43.195733Z', 214s E - 'name': 'python3'}, 214s E - {'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '49e85670-106f-4640-8d7d-e8faa6449dcb', 214s E - 'last_activity': '2026-01-24T03:32:43.217466Z', 214s E - 'name': 'python3'}] 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ac2d915-3e90-4cd7-af70-998345113af9 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ac2d915-3e90-4cd7-af70-998345113af9 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9ac2d915-3e90-4cd7-af70-998345113af9 (::1) 1.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49e85670-106f-4640-8d7d-e8faa6449dcb 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49e85670-106f-4640-8d7d-e8faa6449dcb 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49e85670-106f-4640-8d7d-e8faa6449dcb (::1) 0.680000ms 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s _____________________ AsyncKernelAPITest.test_connections ______________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp6cer22lg/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp6cer22lg/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6cer22lg/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6cer22lg/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6cer22lg/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6cer22lg/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp6cer22lg/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-0aacd0b4-6a4a-40e3-ac6a-33b704381a62.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34947 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37083 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.340000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 0.530000ms 214s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62/channels 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 214s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60423 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (starting) 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (busy) 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (idle) 214s 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.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [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.13'}, {'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/'}]} 214s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 0aacd0b4-6a4a-40e3-ac6a-33b704381a62) to 5.4 (client). 214s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62/channels (::1) 720.540000ms 214s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62/channels 214s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37083 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60423 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34947 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39275 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60423 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34947 214s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 214s Setting websocket_ping_timeout=30000 214s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 2.580000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 0.800000ms 214s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (busy) 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (busy) 214s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (idle) 214s DEBUG NotebookApp:handlers.py:579 Websocket closed 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:46f3d125-6351518982ec2bdea58561e5 214s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:46f3d125-6351518982ec2bdea58561e5 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62: status (idle) 214s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:iopub 214s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:iopub 214s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:iopub 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 0.670000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 1.170000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62:46f3d125-6351518982ec2bdea58561e5 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 8.260000ms referer=None 214s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/70b8c986-7133-46f4-9593-aac9f82cb6f1 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-70b8c986-7133-46f4-9593-aac9f82cb6f1.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43321 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48431 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 70b8c986-7133-46f4-9593-aac9f82cb6f1, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.260000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.610000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0aacd0b4-6a4a-40e3-ac6a-33b704381a62 (::1) 0.690000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70b8c986-7133-46f4-9593-aac9f82cb6f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70b8c986-7133-46f4-9593-aac9f82cb6f1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/70b8c986-7133-46f4-9593-aac9f82cb6f1 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/70b8c986-7133-46f4-9593-aac9f82cb6f1', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 214s from ._local import * 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 214s 214s self = 214s 214s def test_kernel_handler(self): 214s # GET kernel with given id 214s kid = self.kern_api.start().json()['id'] 214s r = self.kern_api.get(kid) 214s kern1 = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kern1, dict) 214s self.assertIn('id', kern1) 214s self.assertEqual(kern1['id'], kid) 214s 214s # Request a bad kernel id and check that a JSON 214s # message is returned! 214s bad_id = '111-111-111-111-111' 214s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 214s self.kern_api.get(bad_id) 214s 214s # DELETE kernel with id 214s > r = self.kern_api.shutdown(kid) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-9d1a3cea-d569-4b1f-81db-88208be3a296.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36077 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33247 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d1a3cea-d569-4b1f-81db-88208be3a296, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296 (::1) 2.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s 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 214s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.610000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d1a3cea-d569-4b1f-81db-88208be3a296 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d1a3cea-d569-4b1f-81db-88208be3a296 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296 (::1) 15.830000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70b8c986-7133-46f4-9593-aac9f82cb6f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70b8c986-7133-46f4-9593-aac9f82cb6f1 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/70b8c986-7133-46f4-9593-aac9f82cb6f1 (::1) 0.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d1a3cea-d569-4b1f-81db-88208be3a296 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d1a3cea-d569-4b1f-81db-88208be3a296 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9d1a3cea-d569-4b1f-81db-88208be3a296 (::1) 0.660000ms 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 214s import functools 214s File "/usr/lib/python3.13/functools.py", line 455, in 214s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 214s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 214s __new__ = eval(code, namespace) 214s File "", line 0, in 214s KeyboardInterrupt 214s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 214s 214s self = 214s 214s def test_main_kernel_handler(self): 214s # POST request 214s r = self.kern_api.start() 214s kern1 = r.json() 214s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 214s self.assertEqual(r.status_code, 201) 214s self.assertIsInstance(kern1, dict) 214s 214s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 214s expected_csp = '; '.join([ 214s "frame-ancestors 'self'", 214s 'report-uri ' + report_uri, 214s "default-src 'none'" 214s ]) 214s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 214s 214s # GET request 214s r = self.kern_api.list() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(r.json(), list) 214s self.assertEqual(r.json()[0]['id'], kern1['id']) 214s self.assertEqual(r.json()[0]['name'], kern1['name']) 214s 214s # create another kernel and check that they both are added to the 214s # list of kernels from a GET request 214s kern2 = self.kern_api.start().json() 214s assert isinstance(kern2, dict) 214s r = self.kern_api.list() 214s kernels = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kernels, list) 214s self.assertEqual(len(kernels), 2) 214s 214s # Interrupt a kernel 214s r = self.kern_api.interrupt(kern2['id']) 214s self.assertEqual(r.status_code, 204) 214s 214s # Restart a kernel 214s > r = self.kern_api.restart(kern2['id']) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 214s return self._req('POST', url_path_join(id, 'restart')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca/restart 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 214s import functools 214s File "/usr/lib/python3.13/functools.py", line 18, in 214s from collections import namedtuple 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 946, in _load_unlocked 214s KeyboardInterrupt 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-9771c34b-42e6-4a3d-b91d-e2d2092f9c97.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52075 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52491 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6cer22lg/runtime/kernel-85b0abef-e512-453b-a715-ab703091b3ca.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51699 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42635 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85b0abef-e512-453b-a715-ab703091b3ca, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.970000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.900000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 85b0abef-e512-453b-a715-ab703091b3ca 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca/interrupt (::1) 4.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 214s result = coro.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 214s yield self # This tells Task to wait for completion. 214s ^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca/restart (::1) 7.270000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 (::1) 6.600000ms referer=None 214s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 214s 214s self = 214s 214s def test_no_kernels(self): 214s """Make sure there are no kernels running at the start""" 214s kernels = self.kern_api.list().json() 214s > self.assertEqual(kernels, []) 214s E AssertionError: Lists differ: [{'id': '9771c34b-42e6-4a3d-b91d-e2d2092f9[281 chars]: 0}] != [] 214s E 214s E First list contains 2 additional elements. 214s E First extra element 0: 214s E {'id': '9771c34b-42e6-4a3d-b91d-e2d2092f9c97', 'name': 'python3', 'last_activity': '2026-01-24T03:32:44.422296Z', 'execution_state': 'starting', 'connections': 0} 214s E 214s E + [] 214s E - [{'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '9771c34b-42e6-4a3d-b91d-e2d2092f9c97', 214s E - 'last_activity': '2026-01-24T03:32:44.422296Z', 214s E - 'name': 'python3'}, 214s E - {'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '85b0abef-e512-453b-a715-ab703091b3ca', 214s E - 'last_activity': '2026-01-24T03:32:44.442390Z', 214s E - 'name': 'python3'}] 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.620000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9771c34b-42e6-4a3d-b91d-e2d2092f9c97 (::1) 0.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85b0abef-e512-453b-a715-ab703091b3ca 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85b0abef-e512-453b-a715-ab703091b3ca 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/85b0abef-e512-453b-a715-ab703091b3ca (::1) 0.670000ms 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d1a3cea-d569-4b1f-81db-88208be3a296 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0aacd0b4-6a4a-40e3-ac6a-33b704381a62 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70b8c986-7133-46f4-9593-aac9f82cb6f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9771c34b-42e6-4a3d-b91d-e2d2092f9c97 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s __________________________ SessionAPITest.test_create __________________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgxec7s2o/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgxec7s2o/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgxec7s2o/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgxec7s2o/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgxec7s2o/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgxec7s2o/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgxec7s2o/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-65d52146-e3d0-4738-9788-25033b469356.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39245 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49565 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65d52146-e3d0-4738-9788-25033b469356, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgxec7s2o/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617 (::1) 0.580000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65d52146-e3d0-4738-9788-25033b469356 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65d52146-e3d0-4738-9788-25033b469356 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617 (::1) 7.750000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 214s from ._local import * 214s File "", line 1357, in _find_and_load 214s File "", line 418, in __enter__ 214s File "", line 311, in acquire 214s File "", line 170, in __enter__ 214s File "", line 132, in setdefault 214s File "", line 80, in __init__ 214s KeyboardInterrupt 214s __________________ SessionAPITest.test_create_console_session __________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ad4c35bc-1591-4c51-9563-b15d48329c49 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "/usr/lib/python3.13/subprocess.py", line 46, in 214s import locale 214s File "/usr/lib/python3.13/locale.py", line 180, in 214s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 214s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 214s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 214s return _compile(pattern, flags) 214s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 214s p = _compiler.compile(pattern, flags) 214s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 214s code = _code(p, flags) 214s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 214s _compile_info(code, p, flags) 214s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/re/_compiler.py", line 560, in _compile_info 214s emit(len(prefix)) # length 214s ~~~^^^^^^^^ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-0156a356-36bb-46aa-999f-543dd14d40c6.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40071 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45623 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0156a356-36bb-46aa-999f-543dd14d40c6, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgxec7s2o/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.050000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65d52146-e3d0-4738-9788-25033b469356 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65d52146-e3d0-4738-9788-25033b469356 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/406bec1f-8729-4e40-abcd-3af6d3ac6617 (::1) 1.590000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0156a356-36bb-46aa-999f-543dd14d40c6 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0156a356-36bb-46aa-999f-543dd14d40c6 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ad4c35bc-1591-4c51-9563-b15d48329c49 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ad4c35bc-1591-4c51-9563-b15d48329c49', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ad4c35bc-1591-4c51-9563-b15d48329c49 (::1) 12.680000ms referer=None 214s ____________________ SessionAPITest.test_create_deprecated _____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3a4b382-4831-44c1-8799-11ed1e9486d2 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 214s from ._local import * 214s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 214s class PureWindowsPath(PurePath): 214s ...<7 lines>... 214s __slots__ = () 214s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 214s import ntpath 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-8f572a6d-1685-4450-b125-30aa07725c42.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46947 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49247 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f572a6d-1685-4450-b125-30aa07725c42, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgxec7s2o/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.110000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0156a356-36bb-46aa-999f-543dd14d40c6 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0156a356-36bb-46aa-999f-543dd14d40c6 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ad4c35bc-1591-4c51-9563-b15d48329c49 (::1) 4.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f572a6d-1685-4450-b125-30aa07725c42 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f572a6d-1685-4450-b125-30aa07725c42 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3a4b382-4831-44c1-8799-11ed1e9486d2 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3a4b382-4831-44c1-8799-11ed1e9486d2', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c3a4b382-4831-44c1-8799-11ed1e9486d2 (::1) 8.410000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s ___________________ SessionAPITest.test_create_file_session ____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 214s import json 214s File "/usr/lib/python3.13/json/__init__.py", line 106, in 214s from .decoder import JSONDecoder, JSONDecodeError 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-b887a0ce-474d-4d62-b4ac-eb627ffb08f1.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54867 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48611 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: b887a0ce-474d-4d62-b4ac-eb627ffb08f1, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgxec7s2o/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.100000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f572a6d-1685-4450-b125-30aa07725c42 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f572a6d-1685-4450-b125-30aa07725c42 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c3a4b382-4831-44c1-8799-11ed1e9486d2 (::1) 1.590000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7 (::1) 9.040000ms referer=None 214s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 214s 214s self = 214s 214s def test_create_with_kernel_id(self): 214s # create a new kernel 214s r = self.request('POST', 'api/kernels') 214s r.raise_for_status() 214s kernel = r.json() 214s 214s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 214s self.assertEqual(resp.status_code, 201) 214s newsession = resp.json() 214s self.assertIn('id', newsession) 214s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 214s self.assertEqual(newsession['kernel']['id'], kernel['id']) 214s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 214s 214s sessions = self.sess_api.list().json() 214s > self.assertEqual(sessions, [newsession]) 214s E AssertionError: Lists differ: [{'id': 'ff952f40-9850-448b-ba53-8739d68b64f7', 'p[553 chars]ne}}] != [{'id': '38b9ebe7-76a3-477d-99b5-dd733af967c9', 'p[279 chars]ne}}] 214s E 214s E First differing element 0: 214s E {'id': 'ff952f40-9850-448b-ba53-8739d68b64f7', 'p[218 chars]: 0}} 214s E {'id': '38b9ebe7-76a3-477d-99b5-dd733af967c9', 'p[278 chars]one}} 214s E 214s E First list contains 1 additional elements. 214s E First extra element 1: 214s E {'id': '38b9ebe7-76a3-477d-99b5-dd733af967c9', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '12876fc4-260d-45ae-9009-901ae66570f1', 'name': 'python3', 'last_activity': '2026-01-24T03:32:44.936218Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 214s E 214s E Diff is 830 characters long. Set self.maxDiff to None to see it. 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "/usr/lib/python3.13/subprocess.py", line 46, in 214s import locale 214s File "/usr/lib/python3.13/locale.py", line 1769, in 214s __all__.append("LC_MESSAGES") 214s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-12876fc4-260d-45ae-9009-901ae66570f1.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41293 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47167 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12876fc4-260d-45ae-9009-901ae66570f1, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.240000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.730000ms 214s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 214s gc.collect() 214s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b887a0ce-474d-4d62-b4ac-eb627ffb08f1 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ff952f40-9850-448b-ba53-8739d68b64f7 (::1) 2.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12876fc4-260d-45ae-9009-901ae66570f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12876fc4-260d-45ae-9009-901ae66570f1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 11.880000ms referer=None 214s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.010000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-61be3395-dd6b-4474-b9c0-0f739bf32aec.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46681 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46197 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 61be3395-dd6b-4474-b9c0-0f739bf32aec, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.510000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12876fc4-260d-45ae-9009-901ae66570f1 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12876fc4-260d-45ae-9009-901ae66570f1 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 3.120000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61be3395-dd6b-4474-b9c0-0f739bf32aec 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61be3395-dd6b-4474-b9c0-0f739bf32aec 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 214s import json 214s File "/usr/lib/python3.13/json/__init__.py", line 107, in 214s from .encoder import JSONEncoder 214s File "/usr/lib/python3.13/json/encoder.py", line 18, in 214s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 214s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 214s return _compile(pattern, flags) 214s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 214s p = _compiler.compile(pattern, flags) 214s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 214s code = _code(p, flags) 214s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 214s _compile_info(code, p, flags) 214s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/re/_compiler.py", line 568, in _compile_info 214s charset, hascased = _optimize_charset(charset) 214s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.13/re/_compiler.py", line 342, in _optimize_charset 214s data = _mk_bitmap(charmap) 214s File "/usr/lib/python3.13/re/_compiler.py", line 391, in _mk_bitmap 214s return [_int(s[i - _CODEBITS: i], 2) 214s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 214s KeyboardInterrupt 214s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgxec7s2o/runtime/kernel-902f8a08-678d-429e-b503-2fcd7b6c6a41.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48953 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46867 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 902f8a08-678d-429e-b503-2fcd7b6c6a41, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgxec7s2o/notebooks/foo'} 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61be3395-dd6b-4474-b9c0-0f739bf32aec 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61be3395-dd6b-4474-b9c0-0f739bf32aec 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 15.340000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.670000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 902f8a08-678d-429e-b503-2fcd7b6c6a41 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 902f8a08-678d-429e-b503-2fcd7b6c6a41 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/38b9ebe7-76a3-477d-99b5-dd733af967c9 (::1) 7.260000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 214s from glob import _Globber, _no_recurse_symlinks 214s File "/usr/lib/python3.13/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.13/re/__init__.py", line 126, in 214s from . import _compiler, _parser 214s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 214s from . import _parser 214s File "/usr/lib/python3.13/re/_parser.py", line 15, in 214s from ._constants import * 214s File "/usr/lib/python3.13/re/_constants.py", line 130, in 214s ATCODES = _makecodes( 214s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 214s ...<5 lines>... 214s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 214s ) 214s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 214s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 214s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s KeyboardInterrupt 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 902f8a08-678d-429e-b503-2fcd7b6c6a41 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s _______________________ AsyncSessionAPITest.test_create ________________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpa0f6sf1v/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpa0f6sf1v/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpa0f6sf1v/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpa0f6sf1v/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpa0f6sf1v/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpa0f6sf1v/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpa0f6sf1v/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.460000ms referer=None 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-b249231b-f323-4bc7-8a90-a9c10a607983.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46535 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56643 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: b249231b-f323-4bc7-8a90-a9c10a607983, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0f6sf1v/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.660000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49 (::1) 0.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b249231b-f323-4bc7-8a90-a9c10a607983 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b249231b-f323-4bc7-8a90-a9c10a607983 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49 (::1) 7.060000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "/usr/lib/python3.13/subprocess.py", line 51, in 214s import threading 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1115, in get_code 214s File "", line 1215, in get_data 214s KeyboardInterrupt 214s _______________ AsyncSessionAPITest.test_create_console_session ________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5fd92d17-c1f3-40fa-a16d-c6c76c27b53e 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 214s from ._local import * 214s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 214s class PureWindowsPath(PurePath): 214s ...<7 lines>... 214s __slots__ = () 214s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 214s import ntpath 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-694f9ca5-4154-4e7c-b96e-fbf57cde260a.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33831 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43633 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 694f9ca5-4154-4e7c-b96e-fbf57cde260a, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0f6sf1v/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.540000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b249231b-f323-4bc7-8a90-a9c10a607983 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b249231b-f323-4bc7-8a90-a9c10a607983 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9969f33b-047c-4e39-965a-deb50f20ad49 (::1) 0.830000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 694f9ca5-4154-4e7c-b96e-fbf57cde260a 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 694f9ca5-4154-4e7c-b96e-fbf57cde260a 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fd92d17-c1f3-40fa-a16d-c6c76c27b53e (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fd92d17-c1f3-40fa-a16d-c6c76c27b53e', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5fd92d17-c1f3-40fa-a16d-c6c76c27b53e (::1) 11.710000ms referer=None 214s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e71b0202-1dc1-4255-9765-c4a023d5e6ab 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-0ee5b407-425c-4ad7-9a0b-259527527fd6.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47607 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32957 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0ee5b407-425c-4ad7-9a0b-259527527fd6, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0f6sf1v/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.670000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 694f9ca5-4154-4e7c-b96e-fbf57cde260a 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 694f9ca5-4154-4e7c-b96e-fbf57cde260a 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5fd92d17-c1f3-40fa-a16d-c6c76c27b53e (::1) 0.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ee5b407-425c-4ad7-9a0b-259527527fd6 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ee5b407-425c-4ad7-9a0b-259527527fd6 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e71b0202-1dc1-4255-9765-c4a023d5e6ab (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e71b0202-1dc1-4255-9765-c4a023d5e6ab', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 214s from glob import _Globber, _no_recurse_symlinks 214s File "/usr/lib/python3.13/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.13/re/__init__.py", line 126, in 214s from . import _compiler, _parser 214s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 214s from . import _parser 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s _________________ AsyncSessionAPITest.test_create_file_session _________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-8469607a-4380-49d4-bb92-d689625ada84.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54571 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42655 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8469607a-4380-49d4-bb92-d689625ada84, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0f6sf1v/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.430000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ee5b407-425c-4ad7-9a0b-259527527fd6 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ee5b407-425c-4ad7-9a0b-259527527fd6 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e71b0202-1dc1-4255-9765-c4a023d5e6ab (::1) 0.750000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8469607a-4380-49d4-bb92-d689625ada84 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8469607a-4380-49d4-bb92-d689625ada84 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382 (::1) 6.770000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 214s from glob import _Globber, _no_recurse_symlinks 214s File "/usr/lib/python3.13/glob.py", line 6, in 214s import fnmatch 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 214s 214s self = 214s 214s def test_create_with_kernel_id(self): 214s # create a new kernel 214s r = self.request('POST', 'api/kernels') 214s r.raise_for_status() 214s kernel = r.json() 214s 214s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 214s self.assertEqual(resp.status_code, 201) 214s newsession = resp.json() 214s self.assertIn('id', newsession) 214s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 214s self.assertEqual(newsession['kernel']['id'], kernel['id']) 214s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 214s 214s sessions = self.sess_api.list().json() 214s > self.assertEqual(sessions, [newsession]) 214s E AssertionError: Lists differ: [{'id': 'f35cc524-34c6-4b49-b389-d019783cb382', 'p[553 chars]ne}}] != [{'id': '2a0a50db-8530-4740-a9b1-bb7771d650eb', 'p[279 chars]ne}}] 214s E 214s E First differing element 0: 214s E {'id': 'f35cc524-34c6-4b49-b389-d019783cb382', 'p[218 chars]: 0}} 214s E {'id': '2a0a50db-8530-4740-a9b1-bb7771d650eb', 'p[278 chars]one}} 214s E 214s E First list contains 1 additional elements. 214s E First extra element 1: 214s E {'id': '2a0a50db-8530-4740-a9b1-bb7771d650eb', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '3d0186f7-e5f2-430e-ab55-7a0961f2be35', 'name': 'python3', 'last_activity': '2026-01-24T03:32:45.431310Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 214s E 214s E Diff is 830 characters long. Set self.maxDiff to None to see it. 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-3d0186f7-e5f2-430e-ab55-7a0961f2be35.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47691 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40985 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3d0186f7-e5f2-430e-ab55-7a0961f2be35, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.400000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8469607a-4380-49d4-bb92-d689625ada84 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8469607a-4380-49d4-bb92-d689625ada84 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f35cc524-34c6-4b49-b389-d019783cb382 (::1) 0.700000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.800000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-d774594a-91f2-4280-97fb-fdf5cff0cca7.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35513 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49899 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: d774594a-91f2-4280-97fb-fdf5cff0cca7, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.210000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 2.260000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d774594a-91f2-4280-97fb-fdf5cff0cca7 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d774594a-91f2-4280-97fb-fdf5cff0cca7 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 214s from ._local import * 214s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 214s import warnings 214s File "", line 1360, in _find_and_load 214s File "", line 1331, in _find_and_load_unlocked 214s File "", line 935, in _load_unlocked 214s File "", line 1019, in exec_module 214s File "", line 1152, in get_code 214s File "", line 781, in _compile_bytecode 214s KeyboardInterrupt 214s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.840000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0f6sf1v/runtime/kernel-76876e77-be84-4156-97a6-5276ec0f2aa5.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48581 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60985 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76876e77-be84-4156-97a6-5276ec0f2aa5, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpa0f6sf1v/notebooks/foo'} 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d774594a-91f2-4280-97fb-fdf5cff0cca7 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d774594a-91f2-4280-97fb-fdf5cff0cca7 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 16.070000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.760000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.770000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76876e77-be84-4156-97a6-5276ec0f2aa5 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76876e77-be84-4156-97a6-5276ec0f2aa5 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a0a50db-8530-4740-a9b1-bb7771d650eb', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 214s from ._abc import * 214s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 214s from glob import _Globber, _no_recurse_symlinks 214s File "/usr/lib/python3.13/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.13/re/__init__.py", line 125, in 214s import enum 214s File "/usr/lib/python3.13/enum.py", line 1932, in 214s @_simple_enum(StrEnum) 214s ~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 1794, in convert_class 214s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 214s ~~~~~~~~~~~^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.13/enum.py", line 78, in _is_private 214s def _is_private(cls_name, name): 214s 214s KeyboardInterrupt 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 694f9ca5-4154-4e7c-b96e-fbf57cde260a 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b249231b-f323-4bc7-8a90-a9c10a607983 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d774594a-91f2-4280-97fb-fdf5cff0cca7 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ee5b407-425c-4ad7-9a0b-259527527fd6 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76876e77-be84-4156-97a6-5276ec0f2aa5 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d0186f7-e5f2-430e-ab55-7a0961f2be35 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8469607a-4380-49d4-bb92-d689625ada84 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s =============================== warnings summary =============================== 214s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 214s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 214s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 214s return LooseVersion(v) >= LooseVersion(check) 214s 214s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 214s services/kernels/tests/test_kernels_api.py: 73 warnings 214s services/sessions/tests/test_sessions_api.py: 88 warnings 214s /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). 214s dt = unaware(*args, **kwargs) 214s 214s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 214s /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 214s pytestmark = pytest.mark.integration_tests 214s 214s services/kernels/tests/test_kernels_api.py: 6 warnings 214s services/sessions/tests/test_sessions_api.py: 6 warnings 214s /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 214s policy = events.get_event_loop_policy() 214s 214s services/kernels/tests/test_kernels_api.py: 24 warnings 214s services/sessions/tests/test_sessions_api.py: 19 warnings 214s /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 214s loop = events.get_event_loop_policy().get_event_loop() 214s 214s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 214s loop.make_current() 214s 214s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 214s /usr/lib/python3.14/threading.py:144: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 214s return _CRLock(*args, **kwargs) 214s Enable tracemalloc to get traceback where the object was allocated. 214s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 214s 214s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 214s =========================== short test summary info ============================ 214s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 214s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 214s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 214s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 214s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 214s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 214s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 214s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 214s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 214s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 214s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 214s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 214s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 214s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 214s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 214s ========== 23 failed, 307 deselected, 222 warnings, 4 errors in 6.75s ========== 214s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 214s *** 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 218s ============================= test session starts ============================== 218s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 218s rootdir: /tmp/autopkgtest.5VVERi/autopkgtest_tmp 218s plugins: typeguard-4.4.4 218s collected 330 items / 307 deselected / 23 selected 218s run-last-failure: rerun previous 23 failures 218s 220s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 221s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 221s 221s ==================================== ERRORS ==================================== 221s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 221s 221s self = 221s 221s def tearDown(self): 221s for k in self.kern_api.list().json(): 221s > self.kern_api.shutdown(k['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 236, in 221s magic_check = re.compile('([*?[])') 221s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 221s return _compile(pattern, flags) 221s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 221s p = _compiler.compile(pattern, flags) 221s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 221s p = _parser.parse(p, flags) 221s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 221s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 221s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 221s itemsappend(_parse(source, state, verbose, nested + 1, 221s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 221s p = _parse_sub(source, state, sub_verbose, nested + 1) 221s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 221s itemsappend(_parse(source, state, verbose, nested + 1, 221s File "/usr/lib/python3.13/re/_parser.py", line 886, in _parse 221s op, av = subpattern[i] 221s File "/usr/lib/python3.13/re/_parser.py", line 167, in __getitem__ 221s def __getitem__(self, index): 221s KeyboardInterrupt 221s Exception ignored in: .KeyedRef.remove at 0x61431db70b80> 221s Traceback (most recent call last): 221s File "", line 91, in remove 221s KeyboardInterrupt: 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-6e343a84-1d94-44c2-a6b8-0ad5a2751342.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44655 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56961 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e343a84-1d94-44c2-a6b8-0ad5a2751342, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-97e19618-043b-47b5-bfee-c47930e8f462.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55535 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45191 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97e19618-043b-47b5-bfee-c47930e8f462, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 97e19618-043b-47b5-bfee-c47930e8f462 221s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462/interrupt (::1) 2.010000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 221s yield maybe_future(km.restart_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 221s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 221s await ensure_async(kernel.restart_kernel(now=now)) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 221s await self._async_shutdown_kernel(now=now, restart=True) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462/restart (::1) 8.430000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 221s yielded = ctx_run(next, result) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 (::1) 6.990000ms referer=None 221s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 221s 221s self = 221s 221s def tearDown(self): 221s for k in self.kern_api.list().json(): 221s > self.kern_api.shutdown(k['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 221s from . import _parser 221s File "/usr/lib/python3.13/re/_parser.py", line 15, in 221s from ._constants import * 221s File "/usr/lib/python3.13/re/_constants.py", line 130, in 221s ATCODES = _makecodes( 221s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 221s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 221s KeyboardInterrupt 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-ad0797b6-5219-4c05-a636-7623c9ee9e3d.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38443 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46947 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: ad0797b6-5219-4c05-a636-7623c9ee9e3d, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.690000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-b8119042-639e-4070-8e2a-65b399b24211.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57431 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37611 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: b8119042-639e-4070-8e2a-65b399b24211, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.040000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b8119042-639e-4070-8e2a-65b399b24211 221s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211/interrupt (::1) 0.610000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 221s yield maybe_future(km.restart_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 221s result = coro.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 221s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 221s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 221s yield self # This tells Task to wait for completion. 221s ^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 221s await ensure_async(kernel.restart_kernel(now=now)) 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 221s await self._async_shutdown_kernel(now=now, restart=True) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211/restart (::1) 3.350000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d (::1) 10.220000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 221s import jupyter_client 221s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 221s from .asynchronous import AsyncKernelClient 221s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 221s from .client import AsyncKernelClient # noqa 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 221s import zmq.asyncio 221s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 221s import asyncio 221s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 221s from .base_events import * 221s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 221s import concurrent.futures 221s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 221s from concurrent.futures._base import (FIRST_COMPLETED, 221s ...<9 lines>... 221s as_completed) 221s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 221s import logging 221s File "/usr/lib/python3.13/logging/__init__.py", line 26, in 221s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 221s File "/usr/lib/python3.13/traceback.py", line 7, in 221s import textwrap 221s File "/usr/lib/python3.13/textwrap.py", line 17, in 221s class TextWrapper: 221s ...<350 lines>... 221s return "\n".join(self.wrap(text)) 221s File "/usr/lib/python3.13/textwrap.py", line 78, in TextWrapper 221s wordsep_re = re.compile(r''' 221s ( # any whitespace 221s ...<14 lines>... 221s 'ws': whitespace, 'nws': nowhitespace}, 221s re.VERBOSE) 221s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 221s return _compile(pattern, flags) 221s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 221s p = _compiler.compile(pattern, flags) 221s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 221s code = _code(p, flags) 221s File "/usr/lib/python3.13/re/_compiler.py", line 576, in _code 221s def _code(p, flags): 221s 221s KeyboardInterrupt 221s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-cb21bf21-d2dc-4b83-9820-0d9c6621245d.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56469 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55255 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: cb21bf21-d2dc-4b83-9820-0d9c6621245d, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.260000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.730000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85e5852f-62fc-4c2c-8d60-33134db476cc 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85e5852f-62fc-4c2c-8d60-33134db476cc 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549 (::1) 0.820000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 7.100000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 221s from typing import TYPE_CHECKING, Any 221s File "/usr/lib/python3.13/typing.py", line 1634, in 221s class _SpecialGenericAlias(_NotIterable, _BaseGenericAlias, _root=True): 221s ...<56 lines>... 221s return Union[left, self] 221s File "/usr/lib/python3.13/typing.py", line 1634, in _SpecialGenericAlias 221s class _SpecialGenericAlias(_NotIterable, _BaseGenericAlias, _root=True): 221s 221s KeyboardInterrupt 221s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-b6b85d40-9a3b-4146-981e-a49c457c99c0.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48721 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59563 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: b6b85d40-9a3b-4146-981e-a49c457c99c0, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.860000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.840000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70 (::1) 0.770000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6b85d40-9a3b-4146-981e-a49c457c99c0 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6b85d40-9a3b-4146-981e-a49c457c99c0 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 221s import json 221s File "/usr/lib/python3.13/json/__init__.py", line 107, in 221s from .encoder import JSONEncoder 221s File "/usr/lib/python3.13/json/encoder.py", line 19, in 221s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 221s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 221s return _compile(pattern, flags) 221s File "/usr/lib/python3.13/re/__init__.py", line 351, in _compile 221s if flags & DEBUG: 221s ~~~~~~^~~~~~~ 221s File "/usr/lib/python3.13/enum.py", line 1613, in __and__ 221s if self._get_value(flag) is None: 221s ~~~~~~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.13/enum.py", line 1589, in _get_value 221s def _get_value(self, flag): 221s 221s KeyboardInterrupt 221s =================================== FAILURES =================================== 221s ______________________ KernelAPITest.test_default_kernel _______________________ 221s 221s self = 221s 221s def tearDown(self): 221s for k in self.kern_api.list().json(): 221s > self.kern_api.shutdown(k['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8be6ac71-78ec-4e29-9529-9de4966ba928 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log setup ------------------------------ 221s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0adbys71/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0adbys71/etc/jupyter'] for config files 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0adbys71/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0adbys71/config 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0adbys71/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0adbys71/config 221s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0adbys71/notebooks 221s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 221s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 221s WARNING NotebookApp:handlers.py:612 Forbidden 221s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.680000ms referer=None 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 221s from ._local import * 221s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 221s class PureWindowsPath(PurePath): 221s ...<7 lines>... 221s __slots__ = () 221s KeyboardInterrupt 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-8be6ac71-78ec-4e29-9529-9de4966ba928.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38707 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50741 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8be6ac71-78ec-4e29-9529-9de4966ba928, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 56.320000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.670000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8be6ac71-78ec-4e29-9529-9de4966ba928 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8be6ac71-78ec-4e29-9529-9de4966ba928 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8be6ac71-78ec-4e29-9529-9de4966ba928 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8be6ac71-78ec-4e29-9529-9de4966ba928', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 221s yielded = ctx_run(next, result) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8be6ac71-78ec-4e29-9529-9de4966ba928 (::1) 8.350000ms referer=None 221s ______________________ KernelAPITest.test_kernel_handler _______________________ 221s 221s self = 221s 221s def test_kernel_handler(self): 221s # GET kernel with given id 221s kid = self.kern_api.start().json()['id'] 221s r = self.kern_api.get(kid) 221s kern1 = r.json() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(kern1, dict) 221s self.assertIn('id', kern1) 221s self.assertEqual(kern1['id'], kid) 221s 221s # Request a bad kernel id and check that a JSON 221s # message is returned! 221s bad_id = '111-111-111-111-111' 221s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 221s self.kern_api.get(bad_id) 221s 221s # DELETE kernel with id 221s > r = self.kern_api.shutdown(kid) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0c74b368-f97b-4ae5-9cfe-2406bbd38068 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 221s from subprocess import PIPE, Popen 221s File "/usr/lib/python3.13/subprocess.py", line 49, in 221s import signal 221s File "/usr/lib/python3.13/signal.py", line 14, in 221s _IntEnum._convert_( 221s ~~~~~~~~~~~~~~~~~~^ 221s 'Handlers', __name__, 221s ^^^^^^^^^^^^^^^^^^^^^ 221s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3.13/enum.py", line 898, in _convert_ 221s def _convert_(cls, name, module, filter, source=None, *, boundary=None, as_global=False): 221s 221s KeyboardInterrupt 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-0c74b368-f97b-4ae5-9cfe-2406bbd38068.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43763 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50245 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c74b368-f97b-4ae5-9cfe-2406bbd38068, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.200000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0c74b368-f97b-4ae5-9cfe-2406bbd38068 (::1) 1.670000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s 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 221s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 221s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.590000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c74b368-f97b-4ae5-9cfe-2406bbd38068 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c74b368-f97b-4ae5-9cfe-2406bbd38068 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0c74b368-f97b-4ae5-9cfe-2406bbd38068 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0c74b368-f97b-4ae5-9cfe-2406bbd38068', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 221s yielded = ctx_run(next, result) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0c74b368-f97b-4ae5-9cfe-2406bbd38068 (::1) 11.190000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8be6ac71-78ec-4e29-9529-9de4966ba928 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8be6ac71-78ec-4e29-9529-9de4966ba928 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8be6ac71-78ec-4e29-9529-9de4966ba928 (::1) 0.790000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c74b368-f97b-4ae5-9cfe-2406bbd38068 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c74b368-f97b-4ae5-9cfe-2406bbd38068 221s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 221s 221s self = 221s 221s def test_main_kernel_handler(self): 221s # POST request 221s r = self.kern_api.start() 221s kern1 = r.json() 221s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 221s self.assertEqual(r.status_code, 201) 221s self.assertIsInstance(kern1, dict) 221s 221s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 221s expected_csp = '; '.join([ 221s "frame-ancestors 'self'", 221s 'report-uri ' + report_uri, 221s "default-src 'none'" 221s ]) 221s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 221s 221s # GET request 221s r = self.kern_api.list() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(r.json(), list) 221s self.assertEqual(r.json()[0]['id'], kern1['id']) 221s self.assertEqual(r.json()[0]['name'], kern1['name']) 221s 221s # create another kernel and check that they both are added to the 221s # list of kernels from a GET request 221s kern2 = self.kern_api.start().json() 221s assert isinstance(kern2, dict) 221s r = self.kern_api.list() 221s kernels = r.json() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(kernels, list) 221s self.assertEqual(len(kernels), 2) 221s 221s # Interrupt a kernel 221s r = self.kern_api.interrupt(kern2['id']) 221s self.assertEqual(r.status_code, 204) 221s 221s # Restart a kernel 221s > r = self.kern_api.restart(kern2['id']) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 221s return self._req('POST', url_path_join(id, 'restart')) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462/restart 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 236, in 221s magic_check = re.compile('([*?[])') 221s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 221s return _compile(pattern, flags) 221s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 221s p = _compiler.compile(pattern, flags) 221s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 221s p = _parser.parse(p, flags) 221s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 221s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 221s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 221s itemsappend(_parse(source, state, verbose, nested + 1, 221s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 221s p = _parse_sub(source, state, sub_verbose, nested + 1) 221s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 221s itemsappend(_parse(source, state, verbose, nested + 1, 221s File "/usr/lib/python3.13/re/_parser.py", line 886, in _parse 221s op, av = subpattern[i] 221s File "/usr/lib/python3.13/re/_parser.py", line 167, in __getitem__ 221s def __getitem__(self, index): 221s KeyboardInterrupt 221s Exception ignored in: .KeyedRef.remove at 0x61431db70b80> 221s Traceback (most recent call last): 221s File "", line 91, in remove 221s KeyboardInterrupt: 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-6e343a84-1d94-44c2-a6b8-0ad5a2751342.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44655 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56961 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e343a84-1d94-44c2-a6b8-0ad5a2751342, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0adbys71/runtime/kernel-97e19618-043b-47b5-bfee-c47930e8f462.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55535 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45191 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97e19618-043b-47b5-bfee-c47930e8f462, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 97e19618-043b-47b5-bfee-c47930e8f462 221s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462/interrupt (::1) 2.010000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 221s yield maybe_future(km.restart_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 221s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 221s await ensure_async(kernel.restart_kernel(now=now)) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 221s await self._async_shutdown_kernel(now=now, restart=True) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462/restart (::1) 8.430000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 221s yielded = ctx_run(next, result) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 (::1) 6.990000ms referer=None 221s ________________________ KernelAPITest.test_no_kernels _________________________ 221s 221s self = 221s 221s def test_no_kernels(self): 221s """Make sure there are no kernels running at the start""" 221s kernels = self.kern_api.list().json() 221s > self.assertEqual(kernels, []) 221s E AssertionError: Lists differ: [{'id': '6e343a84-1d94-44c2-a6b8-0ad5a2751[281 chars]: 0}] != [] 221s E 221s E First list contains 2 additional elements. 221s E First extra element 0: 221s E {'id': '6e343a84-1d94-44c2-a6b8-0ad5a2751342', 'name': 'python3', 'last_activity': '2026-01-24T03:32:50.667683Z', 'execution_state': 'starting', 'connections': 0} 221s E 221s E + [] 221s E - [{'connections': 0, 221s E - 'execution_state': 'starting', 221s E - 'id': '6e343a84-1d94-44c2-a6b8-0ad5a2751342', 221s E - 'last_activity': '2026-01-24T03:32:50.667683Z', 221s E - 'name': 'python3'}, 221s E - {'connections': 0, 221s E - 'execution_state': 'starting', 221s E - 'id': '97e19618-043b-47b5-bfee-c47930e8f462', 221s E - 'last_activity': '2026-01-24T03:32:50.696223Z', 221s E - 'name': 'python3'}] 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e343a84-1d94-44c2-a6b8-0ad5a2751342 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6e343a84-1d94-44c2-a6b8-0ad5a2751342 (::1) 0.820000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97e19618-043b-47b5-bfee-c47930e8f462 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97e19618-043b-47b5-bfee-c47930e8f462 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/97e19618-043b-47b5-bfee-c47930e8f462 (::1) 0.750000ms 221s ---------------------------- Captured log teardown ----------------------------- 221s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 221s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 221s _____________________ AsyncKernelAPITest.test_connections ______________________ 221s 221s self = 221s 221s def tearDown(self): 221s for k in self.kern_api.list().json(): 221s > self.kern_api.shutdown(k['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log setup ------------------------------ 221s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmprnavi90f/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmprnavi90f/etc/jupyter'] for config files 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprnavi90f/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprnavi90f/config 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprnavi90f/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprnavi90f/config 221s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmprnavi90f/notebooks 221s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 221s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 221s WARNING NotebookApp:handlers.py:612 Forbidden 221s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.420000ms referer=None 221s ----------------------------- Captured stderr call ----------------------------- 221s /usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '/tmp/tmp0adbys71/home' is not a writable location, using a temp directory. 221s warn("IPython parent '{0}' is not a writable location," 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-da2f0777-1484-4f0a-abbf-64348cb40f92.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59521 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54867 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: da2f0777-1484-4f0a-abbf-64348cb40f92, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.370000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 0.510000ms 221s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92/channels 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 221s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58435 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (starting) 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (busy) 221s 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.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [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.13'}, {'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/'}]} 221s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel da2f0777-1484-4f0a-abbf-64348cb40f92) to 5.4 (client). 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (idle) 221s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92/channels (::1) 498.450000ms 221s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92/channels 221s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54867 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58435 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59521 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38267 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58435 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59521 221s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 221s Setting websocket_ping_timeout=30000 221s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 1.610000ms 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (busy) 221s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (idle) 221s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (busy) 221s DEBUG NotebookApp:kernelmanager.py:423 activity on da2f0777-1484-4f0a-abbf-64348cb40f92: status (idle) 221s DEBUG NotebookApp:handlers.py:579 Websocket closed da2f0777-1484-4f0a-abbf-64348cb40f92:7cb5ffa6-2566df67949bd0ba929db19e 221s INFO NotebookApp:kernelmanager.py:222 Starting buffering for da2f0777-1484-4f0a-abbf-64348cb40f92:7cb5ffa6-2566df67949bd0ba929db19e 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on da2f0777-1484-4f0a-abbf-64348cb40f92:iopub 221s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on da2f0777-1484-4f0a-abbf-64348cb40f92:iopub 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on da2f0777-1484-4f0a-abbf-64348cb40f92:iopub 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 1.910000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 0.480000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.700000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da2f0777-1484-4f0a-abbf-64348cb40f92 221s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for da2f0777-1484-4f0a-abbf-64348cb40f92:7cb5ffa6-2566df67949bd0ba929db19e 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da2f0777-1484-4f0a-abbf-64348cb40f92 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 221s 221s self = 221s 221s def tearDown(self): 221s for k in self.kern_api.list().json(): 221s > self.kern_api.shutdown(k['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ead58e43-8618-455e-bcab-1d4a7f021738 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-ead58e43-8618-455e-bcab-1d4a7f021738.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33459 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35465 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: ead58e43-8618-455e-bcab-1d4a7f021738, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da2f0777-1484-4f0a-abbf-64348cb40f92 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da2f0777-1484-4f0a-abbf-64348cb40f92 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/da2f0777-1484-4f0a-abbf-64348cb40f92 (::1) 1.760000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ead58e43-8618-455e-bcab-1d4a7f021738 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ead58e43-8618-455e-bcab-1d4a7f021738 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ead58e43-8618-455e-bcab-1d4a7f021738 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ead58e43-8618-455e-bcab-1d4a7f021738', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ead58e43-8618-455e-bcab-1d4a7f021738 (::1) 6.110000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 3, in 221s import contextlib 221s File "/usr/lib/python3.13/contextlib.py", line 89, in 221s class AsyncContextDecorator(object): 221s ...<12 lines>... 221s return inner 221s KeyboardInterrupt 221s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 221s 221s self = 221s 221s def test_kernel_handler(self): 221s # GET kernel with given id 221s kid = self.kern_api.start().json()['id'] 221s r = self.kern_api.get(kid) 221s kern1 = r.json() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(kern1, dict) 221s self.assertIn('id', kern1) 221s self.assertEqual(kern1['id'], kid) 221s 221s # Request a bad kernel id and check that a JSON 221s # message is returned! 221s bad_id = '111-111-111-111-111' 221s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 221s self.kern_api.get(bad_id) 221s 221s # DELETE kernel with id 221s > r = self.kern_api.shutdown(kid) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "", line 1360, in _find_and_load 221s File "", line 1331, in _find_and_load_unlocked 221s File "", line 911, in _load_unlocked 221s KeyboardInterrupt 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-efa95002-5e12-40fb-b744-623251a5433a.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38841 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49483 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: efa95002-5e12-40fb-b744-623251a5433a, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.130000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a (::1) 0.570000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s 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 221s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 221s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.240000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efa95002-5e12-40fb-b744-623251a5433a 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efa95002-5e12-40fb-b744-623251a5433a 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a (::1) 10.380000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ead58e43-8618-455e-bcab-1d4a7f021738 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ead58e43-8618-455e-bcab-1d4a7f021738 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ead58e43-8618-455e-bcab-1d4a7f021738 (::1) 1.880000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efa95002-5e12-40fb-b744-623251a5433a 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efa95002-5e12-40fb-b744-623251a5433a 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/efa95002-5e12-40fb-b744-623251a5433a (::1) 0.600000ms 221s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 221s 221s self = 221s 221s def test_main_kernel_handler(self): 221s # POST request 221s r = self.kern_api.start() 221s kern1 = r.json() 221s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 221s self.assertEqual(r.status_code, 201) 221s self.assertIsInstance(kern1, dict) 221s 221s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 221s expected_csp = '; '.join([ 221s "frame-ancestors 'self'", 221s 'report-uri ' + report_uri, 221s "default-src 'none'" 221s ]) 221s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 221s 221s # GET request 221s r = self.kern_api.list() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(r.json(), list) 221s self.assertEqual(r.json()[0]['id'], kern1['id']) 221s self.assertEqual(r.json()[0]['name'], kern1['name']) 221s 221s # create another kernel and check that they both are added to the 221s # list of kernels from a GET request 221s kern2 = self.kern_api.start().json() 221s assert isinstance(kern2, dict) 221s r = self.kern_api.list() 221s kernels = r.json() 221s self.assertEqual(r.status_code, 200) 221s assert isinstance(kernels, list) 221s self.assertEqual(len(kernels), 2) 221s 221s # Interrupt a kernel 221s r = self.kern_api.interrupt(kern2['id']) 221s self.assertEqual(r.status_code, 204) 221s 221s # Restart a kernel 221s > r = self.kern_api.restart(kern2['id']) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 221s return self._req('POST', url_path_join(id, 'restart')) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211/restart 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 221s from . import _parser 221s File "/usr/lib/python3.13/re/_parser.py", line 15, in 221s from ._constants import * 221s File "/usr/lib/python3.13/re/_constants.py", line 130, in 221s ATCODES = _makecodes( 221s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 221s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 221s KeyboardInterrupt 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-ad0797b6-5219-4c05-a636-7623c9ee9e3d.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38443 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46947 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: ad0797b6-5219-4c05-a636-7623c9ee9e3d, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.690000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprnavi90f/runtime/kernel-b8119042-639e-4070-8e2a-65b399b24211.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57431 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37611 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: b8119042-639e-4070-8e2a-65b399b24211, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.040000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b8119042-639e-4070-8e2a-65b399b24211 221s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211/interrupt (::1) 0.610000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 221s yield maybe_future(km.restart_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 221s result = coro.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 221s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 221s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 221s yield self # This tells Task to wait for completion. 221s ^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 221s await ensure_async(kernel.restart_kernel(now=now)) 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 221s await self._async_shutdown_kernel(now=now, restart=True) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211/restart (::1) 3.350000ms referer=None 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 221s yield maybe_future(km.shutdown_kernel(kernel_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d (::1) 10.220000ms referer=None 221s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 221s 221s self = 221s 221s def test_no_kernels(self): 221s """Make sure there are no kernels running at the start""" 221s kernels = self.kern_api.list().json() 221s > self.assertEqual(kernels, []) 221s E AssertionError: Lists differ: [{'id': 'ad0797b6-5219-4c05-a636-7623c9ee9[281 chars]: 0}] != [] 221s E 221s E First list contains 2 additional elements. 221s E First extra element 0: 221s E {'id': 'ad0797b6-5219-4c05-a636-7623c9ee9e3d', 'name': 'python3', 'last_activity': '2026-01-24T03:32:51.570896Z', 'execution_state': 'starting', 'connections': 0} 221s E 221s E + [] 221s E - [{'connections': 0, 221s E - 'execution_state': 'starting', 221s E - 'id': 'ad0797b6-5219-4c05-a636-7623c9ee9e3d', 221s E - 'last_activity': '2026-01-24T03:32:51.570896Z', 221s E - 'name': 'python3'}, 221s E - {'connections': 0, 221s E - 'execution_state': 'starting', 221s E - 'id': 'b8119042-639e-4070-8e2a-65b399b24211', 221s E - 'last_activity': '2026-01-24T03:32:51.597773Z', 221s E - 'name': 'python3'}] 221s 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.000000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ad0797b6-5219-4c05-a636-7623c9ee9e3d (::1) 0.610000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b8119042-639e-4070-8e2a-65b399b24211 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b8119042-639e-4070-8e2a-65b399b24211 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b8119042-639e-4070-8e2a-65b399b24211 (::1) 0.650000ms 221s ---------------------------- Captured log teardown ----------------------------- 221s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ead58e43-8618-455e-bcab-1d4a7f021738 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad0797b6-5219-4c05-a636-7623c9ee9e3d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efa95002-5e12-40fb-b744-623251a5433a 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da2f0777-1484-4f0a-abbf-64348cb40f92 221s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 221s __________________________ SessionAPITest.test_create __________________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log setup ------------------------------ 221s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_zmwa1h4/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_zmwa1h4/etc/jupyter'] for config files 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_zmwa1h4/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_zmwa1h4/config 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_zmwa1h4/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_zmwa1h4/config 221s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_zmwa1h4/notebooks 221s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 221s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 221s WARNING NotebookApp:handlers.py:612 Forbidden 221s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57127 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45419 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_zmwa1h4/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.680000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade (::1) 0.630000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.750000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade (::1) 7.590000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 221s import json 221s File "/usr/lib/python3.13/json/__init__.py", line 106, in 221s from .decoder import JSONDecoder, JSONDecodeError 221s File "/usr/lib/python3.13/json/decoder.py", line 5, in 221s from json import scanner 221s File "/usr/lib/python3.13/json/scanner.py", line 5, in 221s from _json import make_scanner as c_make_scanner 221s File "", line 1349, in _find_and_load 221s KeyboardInterrupt 221s __________________ SessionAPITest.test_create_console_session __________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1e1c75dc-aa92-4b50-99b8-2a8ec3e8d34f 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-1bf5f96b-3017-4d58-bb90-30cdd2217701.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48567 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40073 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1bf5f96b-3017-4d58-bb90-30cdd2217701, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_zmwa1h4/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.980000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8e4ade8-4e40-4ae4-9eb5-726f52c7ae90 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d393ad22-17e5-4360-b96b-4d6d3f3adade (::1) 0.820000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1bf5f96b-3017-4d58-bb90-30cdd2217701 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1bf5f96b-3017-4d58-bb90-30cdd2217701 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1e1c75dc-aa92-4b50-99b8-2a8ec3e8d34f (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1e1c75dc-aa92-4b50-99b8-2a8ec3e8d34f', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 221s from . import _parser 221s File "/usr/lib/python3.13/re/_parser.py", line 15, in 221s from ._constants import * 221s File "/usr/lib/python3.13/re/_constants.py", line 130, in 221s ATCODES = _makecodes( 221s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 221s ...<5 lines>... 221s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 221s ) 221s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 221s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 221s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 221s KeyboardInterrupt 221s ____________________ SessionAPITest.test_create_deprecated _____________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 221s gc.collect() 221s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 221s one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/56cf3bbd-a4ec-4bd8-b1f0-7085469e9381 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-f6c28f25-6227-4c60-a2a8-71612d85d530.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51495 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57241 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: f6c28f25-6227-4c60-a2a8-71612d85d530, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_zmwa1h4/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.500000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1bf5f96b-3017-4d58-bb90-30cdd2217701 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1bf5f96b-3017-4d58-bb90-30cdd2217701 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1e1c75dc-aa92-4b50-99b8-2a8ec3e8d34f (::1) 1.930000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6c28f25-6227-4c60-a2a8-71612d85d530 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6c28f25-6227-4c60-a2a8-71612d85d530 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/56cf3bbd-a4ec-4bd8-b1f0-7085469e9381 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/56cf3bbd-a4ec-4bd8-b1f0-7085469e9381', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 221s from ._casefix import _EXTRA_CASES 221s File "", line 1349, in _find_and_load 221s KeyboardInterrupt 221s ___________________ SessionAPITest.test_create_file_session ____________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-85e5852f-62fc-4c2c-8d60-33134db476cc.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41029 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39175 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85e5852f-62fc-4c2c-8d60-33134db476cc, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_zmwa1h4/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.940000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6c28f25-6227-4c60-a2a8-71612d85d530 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6c28f25-6227-4c60-a2a8-71612d85d530 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/56cf3bbd-a4ec-4bd8-b1f0-7085469e9381 (::1) 0.890000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85e5852f-62fc-4c2c-8d60-33134db476cc 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85e5852f-62fc-4c2c-8d60-33134db476cc 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549 (::1) 7.470000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 221s from ._local import * 221s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 221s class PureWindowsPath(PurePath): 221s ...<7 lines>... 221s __slots__ = () 221s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 221s import ntpath 221s File "/usr/lib/python3.13/ntpath.py", line 277, in 221s from nt import _getvolumepathname 221s File "", line 1360, in _find_and_load 221s File "", line 1322, in _find_and_load_unlocked 221s File "", line 1262, in _find_spec 221s File "", line 1556, in find_spec 221s File "", line 1530, in _get_spec 221s File "", line 1629, in find_spec 221s File "", line 152, in _path_stat 221s KeyboardInterrupt 221s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 221s 221s self = 221s 221s def test_create_with_kernel_id(self): 221s # create a new kernel 221s r = self.request('POST', 'api/kernels') 221s r.raise_for_status() 221s kernel = r.json() 221s 221s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 221s self.assertEqual(resp.status_code, 201) 221s newsession = resp.json() 221s self.assertIn('id', newsession) 221s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 221s self.assertEqual(newsession['kernel']['id'], kernel['id']) 221s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 221s 221s sessions = self.sess_api.list().json() 221s > self.assertEqual(sessions, [newsession]) 221s E AssertionError: Lists differ: [{'id': '63e5d58e-2f9b-46bc-bd0e-878eb55c5549', 'p[553 chars]ne}}] != [{'id': '1b0d620b-3046-4def-939f-ae74af841b6d', 'p[279 chars]ne}}] 221s E 221s E First differing element 0: 221s E {'id': '63e5d58e-2f9b-46bc-bd0e-878eb55c5549', 'p[218 chars]: 0}} 221s E {'id': '1b0d620b-3046-4def-939f-ae74af841b6d', 'p[278 chars]one}} 221s E 221s E First list contains 1 additional elements. 221s E First extra element 1: 221s E {'id': '1b0d620b-3046-4def-939f-ae74af841b6d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'cb21bf21-d2dc-4b83-9820-0d9c6621245d', 'name': 'python3', 'last_activity': '2026-01-24T03:32:52.058980Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 221s E 221s E Diff is 830 characters long. Set self.maxDiff to None to see it. 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-cb21bf21-d2dc-4b83-9820-0d9c6621245d.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56469 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55255 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: cb21bf21-d2dc-4b83-9820-0d9c6621245d, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.260000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.730000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85e5852f-62fc-4c2c-8d60-33134db476cc 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85e5852f-62fc-4c2c-8d60-33134db476cc 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63e5d58e-2f9b-46bc-bd0e-878eb55c5549 (::1) 0.820000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 7.100000ms referer=None 221s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.950000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-0e526240-637a-4ef7-8ed7-d7d07a397098.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39779 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35245 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0e526240-637a-4ef7-8ed7-d7d07a397098, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.390000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb21bf21-d2dc-4b83-9820-0d9c6621245d 221s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 1.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e526240-637a-4ef7-8ed7-d7d07a397098 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e526240-637a-4ef7-8ed7-d7d07a397098 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 7.970000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 221s from ._local import * 221s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 221s class PureWindowsPath(PurePath): 221s ...<7 lines>... 221s __slots__ = () 221s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 221s import ntpath 221s File "/usr/lib/python3.13/ntpath.py", line 277, in 221s from nt import _getvolumepathname 221s File "", line 1360, in _find_and_load 221s File "", line 1322, in _find_and_load_unlocked 221s File "", line 1262, in _find_spec 221s File "", line 1556, in find_spec 221s File "", line 1530, in _get_spec 221s File "", line 1661, in find_spec 221s KeyboardInterrupt 221s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.780000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_zmwa1h4/runtime/kernel-1f9cc3da-015e-4842-b1da-c8d99c374d09.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40307 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37409 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f9cc3da-015e-4842-b1da-c8d99c374d09, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_zmwa1h4/notebooks/foo'} 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e526240-637a-4ef7-8ed7-d7d07a397098 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e526240-637a-4ef7-8ed7-d7d07a397098 221s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 21.520000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f9cc3da-015e-4842-b1da-c8d99c374d09 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f9cc3da-015e-4842-b1da-c8d99c374d09 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 221s yielded = self.gen.send(value) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 221s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 221s stopper = ensure_async(km.shutdown_kernel(now, restart)) 221s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 221s return _runner_map[name].run(inner) 221s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 221s return fut.result(None) 221s ~~~~~~~~~~^^^^^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 221s return self.__get_result() 221s ~~~~~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 221s raise self._exception 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1b0d620b-3046-4def-939f-ae74af841b6d (::1) 7.290000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 221s from subprocess import PIPE, Popen 221s File "", line 1360, in _find_and_load 221s File "", line 1331, in _find_and_load_unlocked 221s File "", line 935, in _load_unlocked 221s File "", line 1019, in exec_module 221s File "", line 1152, in get_code 221s File "", line 781, in _compile_bytecode 221s KeyboardInterrupt 221s ---------------------------- Captured log teardown ----------------------------- 221s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f9cc3da-015e-4842-b1da-c8d99c374d09 221s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 221s _______________________ AsyncSessionAPITest.test_create ________________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log setup ------------------------------ 221s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpojewbqte/config', '/tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpojewbqte/etc/jupyter'] for config files 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpojewbqte/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpojewbqte/config 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpojewbqte/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.5VVERi/autopkgtest_tmp/home/.local/etc/jupyter 221s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpojewbqte/config 221s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpojewbqte/notebooks 221s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 221s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 221s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 221s WARNING NotebookApp:handlers.py:612 Forbidden 221s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.460000ms referer=None 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-4cea776c-dfd5-4dc0-a42f-12da9e11d858.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51453 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52071 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4cea776c-dfd5-4dc0-a42f-12da9e11d858, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpojewbqte/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.690000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5 (::1) 0.560000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4cea776c-dfd5-4dc0-a42f-12da9e11d858 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4cea776c-dfd5-4dc0-a42f-12da9e11d858 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5 (::1) 7.060000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 221s from ipykernel import kernelapp as app 221s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 221s from .connect import * # noqa: F403 221s ^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 221s from subprocess import PIPE, Popen 221s File "/usr/lib/python3.13/subprocess.py", line 46, in 221s import locale 221s File "", line 1360, in _find_and_load 221s File "", line 1331, in _find_and_load_unlocked 221s File "", line 935, in _load_unlocked 221s File "", line 1019, in exec_module 221s File "", line 1115, in get_code 221s File "", line 1214, in get_data 221s KeyboardInterrupt 221s _______________ AsyncSessionAPITest.test_create_console_session ________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1d4d28bf-38d6-477e-99dd-0a9723f53e58 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-6118a7cb-f023-4a8c-963f-58587e699a33.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47113 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40797 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6118a7cb-f023-4a8c-963f-58587e699a33, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpojewbqte/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.320000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.800000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4cea776c-dfd5-4dc0-a42f-12da9e11d858 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4cea776c-dfd5-4dc0-a42f-12da9e11d858 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/58ba4999-53b1-43a1-947b-6934a13a0ac5 (::1) 0.740000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6118a7cb-f023-4a8c-963f-58587e699a33 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6118a7cb-f023-4a8c-963f-58587e699a33 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1d4d28bf-38d6-477e-99dd-0a9723f53e58 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1d4d28bf-38d6-477e-99dd-0a9723f53e58', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 221s from ._local import * 221s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 221s import pwd 221s File "", line 1357, in _find_and_load 221s File "", line 418, in __enter__ 221s File "", line 311, in acquire 221s File "", line 170, in __enter__ 221s File "", line 132, in setdefault 221s File "", line 74, in __new__ 221s KeyboardInterrupt 221s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7a04288e-6828-4cdb-85b5-cd5097d45a21 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-a18b3f80-e8ac-4025-a4ea-324b3623b8cf.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34165 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55831 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: a18b3f80-e8ac-4025-a4ea-324b3623b8cf, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpojewbqte/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.960000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.800000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6118a7cb-f023-4a8c-963f-58587e699a33 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6118a7cb-f023-4a8c-963f-58587e699a33 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1d4d28bf-38d6-477e-99dd-0a9723f53e58 (::1) 1.880000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a18b3f80-e8ac-4025-a4ea-324b3623b8cf 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a18b3f80-e8ac-4025-a4ea-324b3623b8cf 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7a04288e-6828-4cdb-85b5-cd5097d45a21 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7a04288e-6828-4cdb-85b5-cd5097d45a21', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s ERROR NotebookApp:log.py:55 { 221s "Host": "localhost:12341", 221s "Accept": "*/*", 221s "User-Agent": "python-requests/2.32.5" 221s } 221s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7a04288e-6828-4cdb-85b5-cd5097d45a21 (::1) 7.330000ms referer=None 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 221s from . import _parser 221s File "/usr/lib/python3.13/re/_parser.py", line 26, in 221s WHITESPACE = frozenset(" \t\n\r\v\f") 221s KeyboardInterrupt 221s _________________ AsyncSessionAPITest.test_create_file_session _________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-58459058-bd28-4c5b-8327-ab97ed14b9e4.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45621 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37831 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58459058-bd28-4c5b-8327-ab97ed14b9e4, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpojewbqte/notebooks/foo'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.880000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a18b3f80-e8ac-4025-a4ea-324b3623b8cf 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a18b3f80-e8ac-4025-a4ea-324b3623b8cf 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7a04288e-6828-4cdb-85b5-cd5097d45a21 (::1) 0.740000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 126, in 221s from . import _compiler, _parser 221s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 221s from . import _parser 221s File "/usr/lib/python3.13/re/_parser.py", line 15, in 221s from ._constants import * 221s File "/usr/lib/python3.13/re/_constants.py", line 141, in 221s CHCODES = _makecodes( 221s 'CATEGORY_DIGIT', 'CATEGORY_NOT_DIGIT', 221s ...<9 lines>... 221s 'CATEGORY_UNI_LINEBREAK', 'CATEGORY_UNI_NOT_LINEBREAK', 221s ) 221s File "/usr/lib/python3.13/re/_constants.py", line 74, in _makecodes 221s globals().update({item.name: item for item in items}) 221s ^^^^^^^^^^^^^^^ 221s KeyboardInterrupt 221s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 221s 221s self = 221s 221s def test_create_with_kernel_id(self): 221s # create a new kernel 221s r = self.request('POST', 'api/kernels') 221s r.raise_for_status() 221s kernel = r.json() 221s 221s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 221s self.assertEqual(resp.status_code, 201) 221s newsession = resp.json() 221s self.assertIn('id', newsession) 221s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 221s self.assertEqual(newsession['kernel']['id'], kernel['id']) 221s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 221s 221s sessions = self.sess_api.list().json() 221s > self.assertEqual(sessions, [newsession]) 221s E AssertionError: Lists differ: [{'id': '7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70', 'p[553 chars]ne}}] != [{'id': '2e0d2038-0dbe-4f13-b60c-4a2986964085', 'p[279 chars]ne}}] 221s E 221s E First differing element 0: 221s E {'id': '7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70', 'p[218 chars]: 0}} 221s E {'id': '2e0d2038-0dbe-4f13-b60c-4a2986964085', 'p[278 chars]one}} 221s E 221s E First list contains 1 additional elements. 221s E First extra element 1: 221s E {'id': '2e0d2038-0dbe-4f13-b60c-4a2986964085', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'b6b85d40-9a3b-4146-981e-a49c457c99c0', 'name': 'python3', 'last_activity': '2026-01-24T03:32:52.570073Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 221s E 221s E Diff is 830 characters long. Set self.maxDiff to None to see it. 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-b6b85d40-9a3b-4146-981e-a49c457c99c0.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48721 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59563 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: b6b85d40-9a3b-4146-981e-a49c457c99c0, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.860000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.840000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7044dd77-7bd2-46f0-ab08-3ac0e2cd4e70 (::1) 0.770000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6b85d40-9a3b-4146-981e-a49c457c99c0 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6b85d40-9a3b-4146-981e-a49c457c99c0 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ----------------------------- Captured stderr call ----------------------------- 221s Traceback (most recent call last): 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.830000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-27693608-3538-4788-ad93-095aa75dee95.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53359 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36193 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27693608-3538-4788-ad93-095aa75dee95, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.860000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6b85d40-9a3b-4146-981e-a49c457c99c0 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6b85d40-9a3b-4146-981e-a49c457c99c0 221s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 1.030000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27693608-3538-4788-ad93-095aa75dee95 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27693608-3538-4788-ad93-095aa75dee95 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 221s from ._local import * 221s KeyboardInterrupt 221s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 221s 221s @self.addCleanup 221s def cleanup_sessions(): 221s for session in self.sess_api.list().json(): 221s > self.sess_api.delete(session['id']) 221s 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 221s return self._req('DELETE', id) 221s ^^^^^^^^^^^^^^^^^^^^^^^ 221s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 221s response.raise_for_status() 221s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 221s 221s self = 221s 221s def raise_for_status(self): 221s """Raises :class:`HTTPError`, if one occurred.""" 221s 221s http_error_msg = "" 221s if isinstance(self.reason, bytes): 221s # We attempt to decode utf-8 first because some servers 221s # choose to localize their reason strings. If the string 221s # isn't utf-8, we fall back to iso-8859-1 for all other 221s # encodings. (See PR #3538) 221s try: 221s reason = self.reason.decode("utf-8") 221s except UnicodeDecodeError: 221s reason = self.reason.decode("iso-8859-1") 221s else: 221s reason = self.reason 221s 221s if 400 <= self.status_code < 500: 221s http_error_msg = ( 221s f"{self.status_code} Client Error: {reason} for url: {self.url}" 221s ) 221s 221s elif 500 <= self.status_code < 600: 221s http_error_msg = ( 221s f"{self.status_code} Server Error: {reason} for url: {self.url}" 221s ) 221s 221s if http_error_msg: 221s > raise HTTPError(http_error_msg, response=self) 221s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 221s 221s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 221s ------------------------------ Captured log call ------------------------------- 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.800000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 221s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpojewbqte/runtime/kernel-e95d487a-0465-4fbb-ad08-94e2ec0eb105.json'] 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37719 221s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49897 221s INFO NotebookApp:kernelmanager.py:179 Kernel started: e95d487a-0465-4fbb-ad08-94e2ec0eb105, name: python3 221s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpojewbqte/notebooks/foo'} 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27693608-3538-4788-ad93-095aa75dee95 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27693608-3538-4788-ad93-095aa75dee95 221s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 16.060000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.750000ms 221s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 221s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e95d487a-0465-4fbb-ad08-94e2ec0eb105 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e95d487a-0465-4fbb-ad08-94e2ec0eb105 221s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085 (::1) 221s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e0d2038-0dbe-4f13-b60c-4a2986964085', version='HTTP/1.1', remote_ip='::1') 221s Traceback (most recent call last): 221s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 221s result = await result 221s ^^^^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 221s future.result() 221s ~~~~~~~~~~~~~^^ 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 221s yield maybe_future(sm.delete_session(session_id)) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 221s yielded = self.gen.throw(exc) 221s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 221s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 221s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 221s value = future.result() 221s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 221s raise self._exception.with_traceback(self._exception_tb) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 221s result = coro.send(None) 221s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 221s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 221s raise km.ready.exception() # type: ignore[misc] 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 221s await kernel_awaitable 221s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 221s result = await obj 221s ^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 221s raise e 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 221s out = await method(self, *args, **kwargs) 221s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 221s await self._async_finish_shutdown(restart=restart) 221s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 221s await asyncio.wait_for( 221s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 221s ) 221s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 221s async with timeouts.timeout(timeout): 221s ~~~~~~~~~~~~~~~~^^^^^^^^^ 221s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 221s raise RuntimeError("Timeout should be used inside a task") 221s RuntimeError: Timeout should be used inside a task 221s WARNING NotebookApp:handlers.py:612 Unhandled error 221s --------------------------- Captured stderr teardown --------------------------- 221s Traceback (most recent call last): 221s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 221s return _run_code(code, main_globals, None, 221s "__main__", mod_spec) 221s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 221s exec(code, run_globals) 221s ~~~~^^^^^^^^^^^^^^^^^^^ 221s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 221s from pathlib import Path 221s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 221s from ._abc import * 221s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 221s from glob import _Globber, _no_recurse_symlinks 221s File "/usr/lib/python3.13/glob.py", line 5, in 221s import re 221s File "/usr/lib/python3.13/re/__init__.py", line 125, in 221s import enum 221s File "/usr/lib/python3.13/enum.py", line 1943, in 221s class verify: 221s ...<83 lines>... 221s return enumeration 221s KeyboardInterrupt 221s ---------------------------- Captured log teardown ----------------------------- 221s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e95d487a-0465-4fbb-ad08-94e2ec0eb105 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4cea776c-dfd5-4dc0-a42f-12da9e11d858 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58459058-bd28-4c5b-8327-ab97ed14b9e4 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6118a7cb-f023-4a8c-963f-58587e699a33 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a18b3f80-e8ac-4025-a4ea-324b3623b8cf 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27693608-3538-4788-ad93-095aa75dee95 221s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6b85d40-9a3b-4146-981e-a49c457c99c0 221s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 221s =============================== warnings summary =============================== 221s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 221s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 221s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 221s return LooseVersion(v) >= LooseVersion(check) 221s 221s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 221s services/kernels/tests/test_kernels_api.py: 72 warnings 221s services/sessions/tests/test_sessions_api.py: 88 warnings 221s /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). 221s dt = unaware(*args, **kwargs) 221s 221s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 221s /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 221s pytestmark = pytest.mark.integration_tests 221s 221s services/kernels/tests/test_kernels_api.py: 6 warnings 221s services/sessions/tests/test_sessions_api.py: 6 warnings 221s /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 221s policy = events.get_event_loop_policy() 221s 221s services/kernels/tests/test_kernels_api.py: 24 warnings 221s services/sessions/tests/test_sessions_api.py: 19 warnings 221s /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 221s loop = events.get_event_loop_policy().get_event_loop() 221s 221s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 221s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 221s loop.make_current() 221s 221s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 221s /usr/lib/python3.14/threading.py:144: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 221s return _CRLock(*args, **kwargs) 221s Enable tracemalloc to get traceback where the object was allocated. 221s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 221s 221s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 221s =========================== short test summary info ============================ 221s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 221s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 221s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 221s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 221s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 221s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 221s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 221s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 221s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 221s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 221s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 221s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 221s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 221s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 221s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 221s ========== 23 failed, 307 deselected, 221 warnings, 4 errors in 6.39s ========== 221s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 221s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 222s autopkgtest [03:32:53]: test pytest: -----------------------] 222s pytest FAIL non-zero exit status 1 222s autopkgtest [03:32:53]: test pytest: - - - - - - - - - - results - - - - - - - - - - 222s autopkgtest [03:32:53]: @@@@@@@@@@@@@@@@@@@@ summary 222s pytest FAIL non-zero exit status 1