0s autopkgtest [03:28:24]: starting date and time: 2026-01-24 03:28:24+0000 0s autopkgtest [03:28:24]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [03:28:24]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.rk3nqapz/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-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-arm64-3.secgroup --name adt-resolute-arm64-jupyter-notebook-20260124-032824-juju-7f2275-prod-proposed-migration-environment-20-9465f414-a2b0-4d8d-b2e9-41847fd2cf78 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-arm64-jupyter-notebook-20260124-032824-juju-7f2275-prod-proposed-migration-environment-20-9465f414-a2b0-4d8d-b2e9-41847fd2cf78 from image adt/ubuntu-resolute-arm64-server-20260123.img (UUID af50d520-9a73-4a18-8f4a-1e9db3030ff5)... 68s autopkgtest [03:29:32]: testbed dpkg architecture: arm64 68s autopkgtest [03:29:32]: testbed apt version: 3.1.13 68s autopkgtest [03:29:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 69s autopkgtest [03:29:33]: testbed release detected to be: None 69s autopkgtest [03:29:33]: updating testbed package index (apt update) 70s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 70s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 70s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 70s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 70s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [94.5 kB] 70s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 70s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1031 kB] 70s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [24.3 kB] 70s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [108 kB] 70s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [3912 B] 70s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [12.3 kB] 70s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 70s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [909 kB] 70s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [22.3 kB] 70s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [11.5 kB] 70s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [556 B] 74s Fetched 2345 kB in 1s (2859 kB/s) 74s Reading package lists... 75s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 76s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 76s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 76s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 76s Reading package lists... 76s Reading package lists... 77s Building dependency tree... 77s Reading state information... 77s Calculating upgrade... 77s The following packages will be upgraded: 77s cloud-initramfs-copymods cloud-initramfs-dyn-netconf libgpg-error-l10n 77s libgpg-error0 liblzo2-2 libplymouth5 libtasn1-6 plymouth 77s plymouth-theme-ubuntu-text python3-jaraco.context 78s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 491 kB of archives. 78s After this operation, 75.8 kB disk space will be freed. 78s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libgpg-error-l10n all 1.58-1build1 [9192 B] 78s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libgpg-error0 arm64 1.58-1build1 [81.8 kB] 78s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libtasn1-6 arm64 4.21.0-2 [44.4 kB] 78s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libplymouth5 arm64 24.004.60+git20250831.4a3c171d-0ubuntu5 [141 kB] 78s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 plymouth-theme-ubuntu-text arm64 24.004.60+git20250831.4a3c171d-0ubuntu5 [9982 B] 78s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 plymouth arm64 24.004.60+git20250831.4a3c171d-0ubuntu5 [133 kB] 78s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 liblzo2-2 arm64 2.10-3build2 [51.7 kB] 78s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-jaraco.context all 6.0.1-2 [8198 B] 78s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 cloud-initramfs-copymods all 0.50 [4528 B] 78s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 cloud-initramfs-dyn-netconf all 0.50 [6514 B] 79s dpkg-preconfigure: unable to re-open stdin: No such file or directory 79s Fetched 491 kB in 1s (440 kB/s) 79s (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 ... 135220 files and directories currently installed.) 79s Preparing to unpack .../0-libgpg-error-l10n_1.58-1build1_all.deb ... 79s Unpacking libgpg-error-l10n (1.58-1build1) over (1.58-1) ... 79s Preparing to unpack .../1-libgpg-error0_1.58-1build1_arm64.deb ... 79s Unpacking libgpg-error0:arm64 (1.58-1build1) over (1.58-1) ... 79s Preparing to unpack .../2-libtasn1-6_4.21.0-2_arm64.deb ... 79s Unpacking libtasn1-6:arm64 (4.21.0-2) over (4.20.0-2ubuntu1) ... 79s Preparing to unpack .../3-libplymouth5_24.004.60+git20250831.4a3c171d-0ubuntu5_arm64.deb ... 79s Unpacking libplymouth5:arm64 (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 79s Preparing to unpack .../4-plymouth-theme-ubuntu-text_24.004.60+git20250831.4a3c171d-0ubuntu5_arm64.deb ... 79s Unpacking plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 80s Preparing to unpack .../5-plymouth_24.004.60+git20250831.4a3c171d-0ubuntu5_arm64.deb ... 80s Unpacking plymouth (24.004.60+git20250831.4a3c171d-0ubuntu5) over (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 80s Preparing to unpack .../6-liblzo2-2_2.10-3build2_arm64.deb ... 80s Unpacking liblzo2-2:arm64 (2.10-3build2) over (2.10-3build1) ... 80s Preparing to unpack .../7-python3-jaraco.context_6.0.1-2_all.deb ... 80s Unpacking python3-jaraco.context (6.0.1-2) over (6.0.1-1build1) ... 80s Preparing to unpack .../8-cloud-initramfs-copymods_0.50_all.deb ... 80s Unpacking cloud-initramfs-copymods (0.50) over (0.49build1) ... 80s Preparing to unpack .../9-cloud-initramfs-dyn-netconf_0.50_all.deb ... 80s Unpacking cloud-initramfs-dyn-netconf (0.50) over (0.49build1) ... 80s Setting up libgpg-error0:arm64 (1.58-1build1) ... 80s Setting up python3-jaraco.context (6.0.1-2) ... 80s Setting up liblzo2-2:arm64 (2.10-3build2) ... 80s Setting up cloud-initramfs-copymods (0.50) ... 80s Setting up libplymouth5:arm64 (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 80s Setting up cloud-initramfs-dyn-netconf (0.50) ... 80s Setting up libtasn1-6:arm64 (4.21.0-2) ... 81s Setting up libgpg-error-l10n (1.58-1build1) ... 81s Setting up plymouth (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 81s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 81s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 81s Processing triggers for initramfs-tools (0.150ubuntu7) ... 81s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 98s System running in EFI mode, skipping. 98s Processing triggers for libc-bin (2.42-2ubuntu4) ... 98s Processing triggers for man-db (2.13.1-1) ... 99s Setting up plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu5) ... 99s Processing triggers for initramfs-tools (0.150ubuntu7) ... 99s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 114s System running in EFI mode, skipping. 114s autopkgtest [03:30:18]: upgrading testbed (apt dist-upgrade and autopurge) 114s Reading package lists... 114s Building dependency tree... 114s Reading state information... 115s Calculating upgrade... 115s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 116s Solving dependencies... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s autopkgtest [03:30:20]: rebooting testbed after setup commands that affected boot 154s autopkgtest [03:30:58]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:41:39 UTC 2026 157s autopkgtest [03:31:01]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 160s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 160s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 160s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 161s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 161s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 161s gpgv: Can't check signature: No public key 161s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 161s autopkgtest [03:31:05]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 161s autopkgtest [03:31:05]: build not needed 162s autopkgtest [03:31:06]: test pytest: preparing testbed 162s Reading package lists... 162s Building dependency tree... 162s Reading state information... 162s Solving dependencies... 163s The following NEW packages will be installed: 163s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 163s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 163s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 163s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 163s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 163s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 163s libpython3.14-minimal libpython3.14-stdlib libsodium23 163s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 163s python-notebook-doc python-tinycss2-common python3-all python3-argon2 163s python3-argon2-cffi-bindings python3-astroid python3-asttokens 163s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 163s python3-debugpy python3-decorator python3-defusedxml python3-executing 163s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 163s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 163s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 163s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 163s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 163s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 163s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 163s python3-pytest python3-requests-unixsocket python3-send2trash 163s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 163s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 163s python3-webencodings python3-zmq python3.14 python3.14-minimal 163s sphinx-rtd-theme-common 163s 0 upgraded, 94 newly installed, 0 to remove and 0 not upgraded. 163s Need to get 39.2 MB of archives. 163s After this operation, 196 MB of additional disk space will be used. 163s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-lato all 2.015-1build1 [2779 kB] 163s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-minimal arm64 3.14.2-1 [917 kB] 163s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14-minimal arm64 3.14.2-1 [2548 kB] 163s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 163s Get:5 http://ftpmaster.internal/ubuntu resolute/universe arm64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 163s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 164s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libbabeltrace1 arm64 1.5.11-5 [157 kB] 164s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 164s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight4t64 arm64 3.1.9-4.3build2 [253 kB] 164s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 gdb arm64 17.1-1ubuntu1 [4851 kB] 164s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-platformdirs all 4.5.1-1 [17.1 kB] 164s Get:12 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 164s Get:13 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 164s Get:14 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-core all 5.9.1-1 [6938 B] 164s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libjs-underscore all 1.13.7~dfsg+~1.13.0-5 [86.6 kB] 164s Get:16 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 164s Get:17 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 164s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 164s Get:19 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 164s Get:20 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 164s Get:21 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 164s Get:22 http://ftpmaster.internal/ubuntu resolute/universe arm64 node-jed all 1.1.1-4 [15.2 kB] 164s Get:23 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jed all 1.1.1-4 [2584 B] 164s Get:24 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 164s Get:25 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 164s Get:26 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 164s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 164s Get:28 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-moment all 2.29.4+ds-1 [147 kB] 164s Get:29 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 164s Get:30 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs-text all 2.0.12-2 [9732 B] 164s Get:31 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-text-encoding all 0.7.0-5 [140 kB] 164s Get:32 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-xterm all 5.3.0-4 [475 kB] 164s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-tornado arm64 6.5.4-0.1 [306 kB] 164s Get:34 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-terminado all 0.18.1-1 [13.2 kB] 164s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libargon2-1 arm64 0~20190702+dfsg-5 [21.0 kB] 164s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-ply all 3.11-10 [45.9 kB] 164s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-pycparser all 2.23-1build1 [77.3 kB] 164s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-cffi all 2.0.0-2 [75.5 kB] 164s Get:39 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2-cffi-bindings arm64 25.1.0-2 [15.2 kB] 164s Get:40 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2 arm64 25.1.0-2 [13.8 kB] 164s Get:41 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-comm all 0.2.1-1build1 [7148 B] 164s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-stdlib arm64 3.14.2-1 [2351 kB] 164s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14 arm64 3.14.2-1 [816 kB] 164s Get:44 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-coverage arm64 7.8.2+dfsg1-1ubuntu1 [159 kB] 164s Get:45 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-debugpy arm64 1.8.19+ds-1ubuntu1 [878 kB] 164s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-decorator all 5.2.1-2 [28.1 kB] 164s Get:47 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-parso all 0.8.5-1 [68.0 kB] 164s Get:48 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 164s Get:49 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 164s Get:50 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 164s Get:51 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 164s Get:52 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 164s Get:53 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 164s Get:54 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-asttokens all 3.0.1-1 [20.7 kB] 164s Get:55 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-executing all 2.2.1-0.1 [26.2 kB] 164s Get:56 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pure-eval all 0.2.3-1 [11.4 kB] 164s Get:57 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-stack-data all 0.6.3-3 [22.2 kB] 164s Get:58 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython all 8.35.0-2 [575 kB] 164s Get:59 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-psutil arm64 7.1.0-1ubuntu1 [191 kB] 164s Get:60 http://ftpmaster.internal/ubuntu resolute/universe arm64 libnorm1t64 arm64 1.5.9+dfsg-4 [152 kB] 164s Get:61 http://ftpmaster.internal/ubuntu resolute/universe arm64 libpgm-5.3-0t64 arm64 5.3.128~dfsg-2.1build2 [161 kB] 164s Get:62 http://ftpmaster.internal/ubuntu resolute/main arm64 libsodium23 arm64 1.0.18-2 [120 kB] 164s Get:63 http://ftpmaster.internal/ubuntu resolute/universe arm64 libzmq5 arm64 4.3.5-1build3 [244 kB] 164s Get:64 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-zmq arm64 27.1.0-1 [231 kB] 164s Get:65 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 164s Get:66 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nest-asyncio all 1.6.0-1 [6686 B] 164s Get:67 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipykernel all 6.30.1-1 [82.8 kB] 165s Get:68 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 165s Get:69 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 165s Get:70 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 165s Get:71 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 165s Get:72 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-html5lib all 1.2-3 [90.6 kB] 165s Get:73 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-bleach all 6.3.0-1 [44.2 kB] 165s Get:74 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-soupsieve all 2.8.1-1 [33.7 kB] 165s Get:75 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 165s Get:76 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 165s Get:77 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 165s Get:78 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-mistune all 3.1.4-1 [35.0 kB] 165s Get:79 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 165s Get:80 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbformat all 5.10.4-1 [39.2 kB] 165s Get:81 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbclient all 0.10.4-1 [22.6 kB] 165s Get:82 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 165s Get:83 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbconvert all 7.16.6-1 [140 kB] 165s Get:84 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 165s Get:85 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-send2trash all 1.8.3-1 [14.6 kB] 165s Get:86 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 165s Get:87 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 165s Get:88 http://ftpmaster.internal/ubuntu resolute/main arm64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 165s Get:89 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 165s Get:90 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-all arm64 3.13.9-3 [890 B] 165s Get:91 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-iniconfig all 2.1.0-2 [6962 B] 165s Get:92 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pluggy all 1.6.0-2 [21.1 kB] 165s Get:93 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pytest all 9.0.2-2 [277 kB] 165s Get:94 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 166s Fetched 39.2 MB in 2s (18.9 MB/s) 166s Selecting previously unselected package fonts-lato. 166s (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 ... 135221 files and directories currently installed.) 166s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 166s Unpacking fonts-lato (2.015-1build1) ... 166s Selecting previously unselected package libpython3.14-minimal:arm64. 166s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_arm64.deb ... 166s Unpacking libpython3.14-minimal:arm64 (3.14.2-1) ... 166s Selecting previously unselected package python3.14-minimal. 166s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_arm64.deb ... 166s Unpacking python3.14-minimal (3.14.2-1) ... 166s Selecting previously unselected package fonts-font-awesome. 166s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 166s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 166s Selecting previously unselected package fonts-glyphicons-halflings. 166s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 166s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 166s Selecting previously unselected package fonts-mathjax. 166s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 166s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 166s Selecting previously unselected package libbabeltrace1:arm64. 166s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_arm64.deb ... 166s Unpacking libbabeltrace1:arm64 (1.5.11-5) ... 166s Selecting previously unselected package libsource-highlight-common. 166s Preparing to unpack .../07-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 166s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 166s Selecting previously unselected package libsource-highlight4t64:arm64. 166s Preparing to unpack .../08-libsource-highlight4t64_3.1.9-4.3build2_arm64.deb ... 166s Unpacking libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 166s Selecting previously unselected package gdb. 166s Preparing to unpack .../09-gdb_17.1-1ubuntu1_arm64.deb ... 166s Unpacking gdb (17.1-1ubuntu1) ... 167s Selecting previously unselected package python3-platformdirs. 167s Preparing to unpack .../10-python3-platformdirs_4.5.1-1_all.deb ... 167s Unpacking python3-platformdirs (4.5.1-1) ... 167s Selecting previously unselected package python3-traitlets. 167s Preparing to unpack .../11-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 167s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 167s Selecting previously unselected package python3-jupyter-core. 167s Preparing to unpack .../12-python3-jupyter-core_5.9.1-1_all.deb ... 167s Unpacking python3-jupyter-core (5.9.1-1) ... 167s Selecting previously unselected package jupyter-core. 167s Preparing to unpack .../13-jupyter-core_5.9.1-1_all.deb ... 167s Unpacking jupyter-core (5.9.1-1) ... 167s Selecting previously unselected package libjs-underscore. 167s Preparing to unpack .../14-libjs-underscore_1.13.7~dfsg+~1.13.0-5_all.deb ... 167s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-5) ... 167s Selecting previously unselected package libjs-backbone. 167s Preparing to unpack .../15-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 167s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 167s Selecting previously unselected package libjs-bootstrap. 167s Preparing to unpack .../16-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 167s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 167s Selecting previously unselected package libjs-jquery. 167s Preparing to unpack .../17-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 167s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 167s Selecting previously unselected package libjs-bootstrap-tour. 167s Preparing to unpack .../18-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 167s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 167s Selecting previously unselected package libjs-codemirror. 167s Preparing to unpack .../19-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 167s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 167s Selecting previously unselected package libjs-es6-promise. 167s Preparing to unpack .../20-libjs-es6-promise_4.2.8-12_all.deb ... 167s Unpacking libjs-es6-promise (4.2.8-12) ... 167s Selecting previously unselected package node-jed. 167s Preparing to unpack .../21-node-jed_1.1.1-4_all.deb ... 167s Unpacking node-jed (1.1.1-4) ... 167s Selecting previously unselected package libjs-jed. 167s Preparing to unpack .../22-libjs-jed_1.1.1-4_all.deb ... 167s Unpacking libjs-jed (1.1.1-4) ... 167s Selecting previously unselected package libjs-jquery-typeahead. 167s Preparing to unpack .../23-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 167s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 167s Selecting previously unselected package libjs-jquery-ui. 167s Preparing to unpack .../24-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 167s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 167s Selecting previously unselected package libjs-marked. 167s Preparing to unpack .../25-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 167s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 167s Selecting previously unselected package libjs-mathjax. 167s Preparing to unpack .../26-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 167s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 168s Selecting previously unselected package libjs-moment. 168s Preparing to unpack .../27-libjs-moment_2.29.4+ds-1_all.deb ... 168s Unpacking libjs-moment (2.29.4+ds-1) ... 168s Selecting previously unselected package libjs-requirejs. 168s Preparing to unpack .../28-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 168s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 168s Selecting previously unselected package libjs-requirejs-text. 168s Preparing to unpack .../29-libjs-requirejs-text_2.0.12-2_all.deb ... 168s Unpacking libjs-requirejs-text (2.0.12-2) ... 168s Selecting previously unselected package libjs-text-encoding. 168s Preparing to unpack .../30-libjs-text-encoding_0.7.0-5_all.deb ... 168s Unpacking libjs-text-encoding (0.7.0-5) ... 168s Selecting previously unselected package libjs-xterm. 168s Preparing to unpack .../31-libjs-xterm_5.3.0-4_all.deb ... 168s Unpacking libjs-xterm (5.3.0-4) ... 168s Selecting previously unselected package python3-tornado. 168s Preparing to unpack .../32-python3-tornado_6.5.4-0.1_arm64.deb ... 168s Unpacking python3-tornado (6.5.4-0.1) ... 168s Selecting previously unselected package python3-terminado. 168s Preparing to unpack .../33-python3-terminado_0.18.1-1_all.deb ... 168s Unpacking python3-terminado (0.18.1-1) ... 168s Selecting previously unselected package libargon2-1:arm64. 168s Preparing to unpack .../34-libargon2-1_0~20190702+dfsg-5_arm64.deb ... 168s Unpacking libargon2-1:arm64 (0~20190702+dfsg-5) ... 168s Selecting previously unselected package python3-ply. 168s Preparing to unpack .../35-python3-ply_3.11-10_all.deb ... 168s Unpacking python3-ply (3.11-10) ... 168s Selecting previously unselected package python3-pycparser. 168s Preparing to unpack .../36-python3-pycparser_2.23-1build1_all.deb ... 168s Unpacking python3-pycparser (2.23-1build1) ... 168s Selecting previously unselected package python3-cffi. 168s Preparing to unpack .../37-python3-cffi_2.0.0-2_all.deb ... 168s Unpacking python3-cffi (2.0.0-2) ... 168s Selecting previously unselected package python3-argon2-cffi-bindings. 168s Preparing to unpack .../38-python3-argon2-cffi-bindings_25.1.0-2_arm64.deb ... 168s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 168s Selecting previously unselected package python3-argon2. 168s Preparing to unpack .../39-python3-argon2_25.1.0-2_arm64.deb ... 168s Unpacking python3-argon2 (25.1.0-2) ... 168s Selecting previously unselected package python3-comm. 168s Preparing to unpack .../40-python3-comm_0.2.1-1build1_all.deb ... 168s Unpacking python3-comm (0.2.1-1build1) ... 168s Selecting previously unselected package libpython3.14-stdlib:arm64. 168s Preparing to unpack .../41-libpython3.14-stdlib_3.14.2-1_arm64.deb ... 168s Unpacking libpython3.14-stdlib:arm64 (3.14.2-1) ... 169s Selecting previously unselected package python3.14. 169s Preparing to unpack .../42-python3.14_3.14.2-1_arm64.deb ... 169s Unpacking python3.14 (3.14.2-1) ... 169s Selecting previously unselected package python3-coverage. 169s Preparing to unpack .../43-python3-coverage_7.8.2+dfsg1-1ubuntu1_arm64.deb ... 169s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 169s Selecting previously unselected package python3-debugpy. 169s Preparing to unpack .../44-python3-debugpy_1.8.19+ds-1ubuntu1_arm64.deb ... 169s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 169s Selecting previously unselected package python3-decorator. 169s Preparing to unpack .../45-python3-decorator_5.2.1-2_all.deb ... 169s Unpacking python3-decorator (5.2.1-2) ... 169s Selecting previously unselected package python3-parso. 169s Preparing to unpack .../46-python3-parso_0.8.5-1_all.deb ... 169s Unpacking python3-parso (0.8.5-1) ... 169s Selecting previously unselected package python3-typeshed. 169s Preparing to unpack .../47-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 169s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 169s Selecting previously unselected package python3-jedi. 169s Preparing to unpack .../48-python3-jedi_0.19.1+ds1-1build1_all.deb ... 169s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 169s Selecting previously unselected package python3-matplotlib-inline. 169s Preparing to unpack .../49-python3-matplotlib-inline_0.2.1-1_all.deb ... 169s Unpacking python3-matplotlib-inline (0.2.1-1) ... 169s Selecting previously unselected package python3-wcwidth. 169s Preparing to unpack .../50-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 169s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 170s Selecting previously unselected package python3-prompt-toolkit. 170s Preparing to unpack .../51-python3-prompt-toolkit_3.0.52-2_all.deb ... 170s Unpacking python3-prompt-toolkit (3.0.52-2) ... 170s Selecting previously unselected package python3-astroid. 170s Preparing to unpack .../52-python3-astroid_4.0.2-1ubuntu1_all.deb ... 170s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 170s Selecting previously unselected package python3-asttokens. 170s Preparing to unpack .../53-python3-asttokens_3.0.1-1_all.deb ... 170s Unpacking python3-asttokens (3.0.1-1) ... 170s Selecting previously unselected package python3-executing. 170s Preparing to unpack .../54-python3-executing_2.2.1-0.1_all.deb ... 170s Unpacking python3-executing (2.2.1-0.1) ... 170s Selecting previously unselected package python3-pure-eval. 170s Preparing to unpack .../55-python3-pure-eval_0.2.3-1_all.deb ... 170s Unpacking python3-pure-eval (0.2.3-1) ... 170s Selecting previously unselected package python3-stack-data. 170s Preparing to unpack .../56-python3-stack-data_0.6.3-3_all.deb ... 170s Unpacking python3-stack-data (0.6.3-3) ... 170s Selecting previously unselected package python3-ipython. 170s Preparing to unpack .../57-python3-ipython_8.35.0-2_all.deb ... 170s Unpacking python3-ipython (8.35.0-2) ... 170s Selecting previously unselected package python3-psutil. 170s Preparing to unpack .../58-python3-psutil_7.1.0-1ubuntu1_arm64.deb ... 170s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 170s Selecting previously unselected package libnorm1t64:arm64. 170s Preparing to unpack .../59-libnorm1t64_1.5.9+dfsg-4_arm64.deb ... 170s Unpacking libnorm1t64:arm64 (1.5.9+dfsg-4) ... 170s Selecting previously unselected package libpgm-5.3-0t64:arm64. 170s Preparing to unpack .../60-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_arm64.deb ... 170s Unpacking libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 170s Selecting previously unselected package libsodium23:arm64. 170s Preparing to unpack .../61-libsodium23_1.0.18-2_arm64.deb ... 170s Unpacking libsodium23:arm64 (1.0.18-2) ... 170s Selecting previously unselected package libzmq5:arm64. 170s Preparing to unpack .../62-libzmq5_4.3.5-1build3_arm64.deb ... 170s Unpacking libzmq5:arm64 (4.3.5-1build3) ... 170s Selecting previously unselected package python3-zmq. 170s Preparing to unpack .../63-python3-zmq_27.1.0-1_arm64.deb ... 170s Unpacking python3-zmq (27.1.0-1) ... 170s Selecting previously unselected package python3-jupyter-client. 170s Preparing to unpack .../64-python3-jupyter-client_8.7.0-1_all.deb ... 170s Unpacking python3-jupyter-client (8.7.0-1) ... 170s Selecting previously unselected package python3-nest-asyncio. 170s Preparing to unpack .../65-python3-nest-asyncio_1.6.0-1_all.deb ... 170s Unpacking python3-nest-asyncio (1.6.0-1) ... 170s Selecting previously unselected package python3-ipykernel. 170s Preparing to unpack .../66-python3-ipykernel_6.30.1-1_all.deb ... 170s Unpacking python3-ipykernel (6.30.1-1) ... 170s Selecting previously unselected package python3-ipython-genutils. 170s Preparing to unpack .../67-python3-ipython-genutils_0.2.0-7_all.deb ... 170s Unpacking python3-ipython-genutils (0.2.0-7) ... 170s Selecting previously unselected package python-tinycss2-common. 170s Preparing to unpack .../68-python-tinycss2-common_1.5.1-1_all.deb ... 170s Unpacking python-tinycss2-common (1.5.1-1) ... 170s Selecting previously unselected package python3-webencodings. 170s Preparing to unpack .../69-python3-webencodings_0.5.1-5build1_all.deb ... 170s Unpacking python3-webencodings (0.5.1-5build1) ... 171s Selecting previously unselected package python3-tinycss2. 171s Preparing to unpack .../70-python3-tinycss2_1.5.1-1_all.deb ... 171s Unpacking python3-tinycss2 (1.5.1-1) ... 171s Selecting previously unselected package python3-html5lib. 171s Preparing to unpack .../71-python3-html5lib_1.2-3_all.deb ... 171s Unpacking python3-html5lib (1.2-3) ... 171s Selecting previously unselected package python3-bleach. 171s Preparing to unpack .../72-python3-bleach_6.3.0-1_all.deb ... 171s Unpacking python3-bleach (6.3.0-1) ... 171s Selecting previously unselected package python3-soupsieve. 171s Preparing to unpack .../73-python3-soupsieve_2.8.1-1_all.deb ... 171s Unpacking python3-soupsieve (2.8.1-1) ... 171s Selecting previously unselected package python3-bs4. 171s Preparing to unpack .../74-python3-bs4_4.14.3-2build1_all.deb ... 171s Unpacking python3-bs4 (4.14.3-2build1) ... 171s Selecting previously unselected package python3-defusedxml. 171s Preparing to unpack .../75-python3-defusedxml_0.7.1-3build1_all.deb ... 171s Unpacking python3-defusedxml (0.7.1-3build1) ... 171s Selecting previously unselected package python3-jupyterlab-pygments. 171s Preparing to unpack .../76-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 171s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 171s Selecting previously unselected package python3-mistune. 171s Preparing to unpack .../77-python3-mistune_3.1.4-1_all.deb ... 171s Unpacking python3-mistune (3.1.4-1) ... 171s Selecting previously unselected package python3-fastjsonschema. 171s Preparing to unpack .../78-python3-fastjsonschema_2.21.1-1_all.deb ... 171s Unpacking python3-fastjsonschema (2.21.1-1) ... 171s Selecting previously unselected package python3-nbformat. 171s Preparing to unpack .../79-python3-nbformat_5.10.4-1_all.deb ... 171s Unpacking python3-nbformat (5.10.4-1) ... 171s Selecting previously unselected package python3-nbclient. 171s Preparing to unpack .../80-python3-nbclient_0.10.4-1_all.deb ... 171s Unpacking python3-nbclient (0.10.4-1) ... 171s Selecting previously unselected package python3-pandocfilters. 171s Preparing to unpack .../81-python3-pandocfilters_1.5.1-1_all.deb ... 171s Unpacking python3-pandocfilters (1.5.1-1) ... 171s Selecting previously unselected package python3-nbconvert. 171s Preparing to unpack .../82-python3-nbconvert_7.16.6-1_all.deb ... 171s Unpacking python3-nbconvert (7.16.6-1) ... 171s Selecting previously unselected package python3-prometheus-client. 171s Preparing to unpack .../83-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 171s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 171s Selecting previously unselected package python3-send2trash. 171s Preparing to unpack .../84-python3-send2trash_1.8.3-1_all.deb ... 171s Unpacking python3-send2trash (1.8.3-1) ... 171s Selecting previously unselected package python3-notebook. 171s Preparing to unpack .../85-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 171s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 171s Selecting previously unselected package jupyter-notebook. 171s Preparing to unpack .../86-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 171s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 171s Selecting previously unselected package sphinx-rtd-theme-common. 171s Preparing to unpack .../87-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 171s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 172s Selecting previously unselected package python-notebook-doc. 172s Preparing to unpack .../88-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 172s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 172s Selecting previously unselected package python3-all. 172s Preparing to unpack .../89-python3-all_3.13.9-3_arm64.deb ... 172s Unpacking python3-all (3.13.9-3) ... 172s Selecting previously unselected package python3-iniconfig. 172s Preparing to unpack .../90-python3-iniconfig_2.1.0-2_all.deb ... 172s Unpacking python3-iniconfig (2.1.0-2) ... 172s Selecting previously unselected package python3-pluggy. 172s Preparing to unpack .../91-python3-pluggy_1.6.0-2_all.deb ... 172s Unpacking python3-pluggy (1.6.0-2) ... 172s Selecting previously unselected package python3-pytest. 172s Preparing to unpack .../92-python3-pytest_9.0.2-2_all.deb ... 172s Unpacking python3-pytest (9.0.2-2) ... 172s Selecting previously unselected package python3-requests-unixsocket. 172s Preparing to unpack .../93-python3-requests-unixsocket_1.0.1-1_all.deb ... 172s Unpacking python3-requests-unixsocket (1.0.1-1) ... 172s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 172s Setting up python3-iniconfig (2.1.0-2) ... 172s Setting up python3-tornado (6.5.4-0.1) ... 173s Setting up libnorm1t64:arm64 (1.5.9+dfsg-4) ... 173s Setting up python3-pure-eval (0.2.3-1) ... 173s Setting up python3-send2trash (1.8.3-1) ... 173s Setting up fonts-lato (2.015-1build1) ... 173s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 173s Setting up libsodium23:arm64 (1.0.18-2) ... 173s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 173s Setting up libjs-requirejs-text (2.0.12-2) ... 173s Setting up python3-parso (0.8.5-1) ... 174s Setting up python3-defusedxml (0.7.1-3build1) ... 174s Setting up python3-ipython-genutils (0.2.0-7) ... 174s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 174s Setting up libargon2-1:arm64 (0~20190702+dfsg-5) ... 174s Setting up python3-ply (3.11-10) ... 174s Setting up libpython3.14-minimal:arm64 (3.14.2-1) ... 174s Setting up libjs-moment (2.29.4+ds-1) ... 174s Setting up python3-pandocfilters (1.5.1-1) ... 174s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 174s Setting up libjs-es6-promise (4.2.8-12) ... 174s Setting up libjs-text-encoding (0.7.0-5) ... 174s Setting up python3-webencodings (0.5.1-5build1) ... 175s Setting up python3-platformdirs (4.5.1-1) ... 175s Setting up python3-psutil (7.1.0-1ubuntu1) ... 175s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 175s Setting up python3-pycparser (2.23-1build1) ... 176s Setting up python3-requests-unixsocket (1.0.1-1) ... 176s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 176s Setting up libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 176s Setting up python3-decorator (5.2.1-2) ... 176s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 177s Setting up node-jed (1.1.1-4) ... 177s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 177s Setting up libjs-xterm (5.3.0-4) ... 177s Setting up python3-nest-asyncio (1.6.0-1) ... 177s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 177s Setting up libjs-jed (1.1.1-4) ... 177s Setting up python3-html5lib (1.2-3) ... 177s Setting up libbabeltrace1:arm64 (1.5.11-5) ... 177s Setting up python3-pluggy (1.6.0-2) ... 177s Setting up python3-fastjsonschema (2.21.1-1) ... 178s Setting up python3-terminado (0.18.1-1) ... 178s Setting up python3-astroid (4.0.2-1ubuntu1) ... 178s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 179s Setting up python-tinycss2-common (1.5.1-1) ... 179s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 179s Setting up python3-mistune (3.1.4-1) ... 179s Setting up python3-soupsieve (2.8.1-1) ... 179s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 179s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 179s Setting up python3.14-minimal (3.14.2-1) ... 180s Setting up python3-jupyter-core (5.9.1-1) ... 180s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 180s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-5) ... 180s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 180s Setting up python3-prompt-toolkit (3.0.52-2) ... 181s Setting up python3-tinycss2 (1.5.1-1) ... 181s Setting up libzmq5:arm64 (4.3.5-1build3) ... 181s Setting up python3-jedi (0.19.1+ds1-1build1) ... 182s Setting up libpython3.14-stdlib:arm64 (3.14.2-1) ... 182s Setting up python3-asttokens (3.0.1-1) ... 182s Setting up python3-pytest (9.0.2-2) ... 182s Setting up python3-cffi (2.0.0-2) ... 183s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 183s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 183s Setting up libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 183s Setting up python3-nbformat (5.10.4-1) ... 183s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 183s Setting up python3-bs4 (4.14.3-2build1) ... 183s Setting up python3-bleach (6.3.0-1) ... 184s Setting up python3-matplotlib-inline (0.2.1-1) ... 184s Setting up python3-comm (0.2.1-1build1) ... 184s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 184s Setting up gdb (17.1-1ubuntu1) ... 184s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 184s Setting up python3-executing (2.2.1-0.1) ... 184s Setting up python3-zmq (27.1.0-1) ... 185s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 185s Setting up python3-argon2 (25.1.0-2) ... 185s Setting up python3-jupyter-client (8.7.0-1) ... 185s Setting up jupyter-core (5.9.1-1) ... 185s Setting up python3.14 (3.14.2-1) ... 187s Setting up python3-stack-data (0.6.3-3) ... 187s Setting up python3-all (3.13.9-3) ... 187s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 187s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 188s Setting up python3-nbclient (0.10.4-1) ... 188s Setting up python3-ipython (8.35.0-2) ... 189s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 189s return result 189s Setting up python3-ipykernel (6.30.1-1) ... 190s Setting up python3-nbconvert (7.16.6-1) ... 190s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 191s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 191s Processing triggers for systemd (259-1ubuntu2) ... 191s Processing triggers for man-db (2.13.1-1) ... 191s Processing triggers for libc-bin (2.42-2ubuntu4) ... 193s autopkgtest [03:31:37]: test pytest: [----------------------- 193s Testing with python3.14 193s *** 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 196s ============================= test session starts ============================== 196s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 196s rootdir: /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp 196s plugins: typeguard-4.4.4 196s collected 330 items / 6 deselected / 324 selected 196s 197s auth/tests/test_login.py .. [ 0%] 197s auth/tests/test_security.py .... [ 1%] 197s bundler/tests/test_bundler_api.py ..... [ 3%] 197s bundler/tests/test_bundler_tools.py ............. [ 7%] 198s bundler/tests/test_bundlerextension.py ... [ 8%] 198s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 198s services/api/tests/test_api.py ... [ 11%] 198s services/config/tests/test_config_api.py ... [ 12%] 199s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 200s ................s...........ss..s......................... [ 38%] 200s services/contents/tests/test_fileio.py ... [ 39%] 200s services/contents/tests/test_largefilemanager.py . [ 39%] 200s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 201s .... [ 50%] 211s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 211s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 212s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 212s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 214s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 214s F [ 66%] 218s terminal/tests/test_terminals_api.py ........ [ 68%] 218s tests/test_config_manager.py . [ 68%] 218s tests/test_files.py ..... [ 70%] 218s tests/test_gateway.py ...... [ 72%] 218s tests/test_i18n.py . [ 72%] 218s tests/test_log.py . [ 72%] 219s tests/test_nbextensions.py ................................... [ 83%] 221s tests/test_notebookapp.py .......................... [ 91%] 221s tests/test_paths.py ... [ 92%] 221s tests/test_serialize.py .. [ 93%] 222s tests/test_serverextensions.py ..... [ 94%] 222s tests/test_traittypes.py ........... [ 98%] 223s tests/test_utils.py ....s [ 99%] 223s tree/tests/test_tree_handler.py . [100%] 223s 223s ==================================== ERRORS ==================================== 223s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 223s 223s self = 223s 223s def tearDown(self): 223s for k in self.kern_api.list().json(): 223s > self.kern_api.shutdown(k['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 18, in 223s from collections import namedtuple 223s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 223s from operator import eq as _eq 223s File "", line 1360, in _find_and_load 223s File "", line 1322, in _find_and_load_unlocked 223s File "", line 1262, in _find_spec 223s File "", line 1556, in find_spec 223s File "", line 1530, in _get_spec 223s File "", line 1662, in find_spec 223s File "", line 166, in _path_isfile 223s File "", line 158, in _path_is_mode_type 223s File "", line 152, in _path_stat 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37485 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49731 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.190000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-3be4b455-2bbf-4cd4-bad7-22945b9f595e.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33665 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40335 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3be4b455-2bbf-4cd4-bad7-22945b9f595e, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.920000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.540000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 3be4b455-2bbf-4cd4-bad7-22945b9f595e 223s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e/interrupt (::1) 1.310000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 223s yield maybe_future(km.restart_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 223s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 223s await ensure_async(kernel.restart_kernel(now=now)) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 223s await self._async_shutdown_kernel(now=now, restart=True) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e/restart (::1) 10.170000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 223s yielded = ctx_run(next, result) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 223s import asyncio 223s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 223s from .base_events import * 223s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 223s import ssl 223s File "/usr/lib/python3.13/ssl.py", line 100, in 223s import _ssl # if we can't import it, let the error propagate 223s ^^^^^^^^^^^ 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1326, in exec_module 223s File "", line 491, in _verbose_message 223s KeyboardInterrupt 223s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 223s 223s self = 223s 223s def tearDown(self): 223s for k in self.kern_api.list().json(): 223s > self.kern_api.shutdown(k['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 457, in 223s class _HashedSeq(list): 223s File "/usr/lib/python3.13/functools.py", line 457, in _HashedSeq 223s class _HashedSeq(list): 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-12392834-6e0b-44fd-8661-fead1e47ee43.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53241 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55581 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12392834-6e0b-44fd-8661-fead1e47ee43, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.910000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-5dde9837-ecb8-436a-9e63-e3acfa54a259.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54297 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53355 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5dde9837-ecb8-436a-9e63-e3acfa54a259, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.040000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.870000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5dde9837-ecb8-436a-9e63-e3acfa54a259 223s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259/interrupt (::1) 2.340000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 223s yield maybe_future(km.restart_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 223s result = coro.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 223s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 223s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 223s yield self # This tells Task to wait for completion. 223s ^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 223s await ensure_async(kernel.restart_kernel(now=now)) 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 223s await self._async_shutdown_kernel(now=now, restart=True) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259/restart (::1) 8.020000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12392834-6e0b-44fd-8661-fead1e47ee43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12392834-6e0b-44fd-8661-fead1e47ee43 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 (::1) 6.350000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 223s import asyncio 223s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 223s from .base_events import * 223s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 223s import ssl 223s File "/usr/lib/python3.13/ssl.py", line 100, in 223s import _ssl # if we can't import it, let the error propagate 223s ^^^^^^^^^^^ 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1326, in exec_module 223s File "", line 491, in _verbose_message 223s KeyboardInterrupt 223s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9f92e171-6d15-4faf-9b59-428468558a49 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-79d4210d-4cb5-40d0-bc67-44ab0da62081.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58361 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39985 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d4210d-4cb5-40d0-bc67-44ab0da62081, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.910000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.090000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.580000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70213f11-6330-41ae-8e38-24ed065805de 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70213f11-6330-41ae-8e38-24ed065805de 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/59b46853-8060-443a-923f-5ffc1acfab94 (::1) 1.190000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d4210d-4cb5-40d0-bc67-44ab0da62081 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d4210d-4cb5-40d0-bc67-44ab0da62081 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9f92e171-6d15-4faf-9b59-428468558a49 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9f92e171-6d15-4faf-9b59-428468558a49', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 223s from typing import TYPE_CHECKING, Any 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1019, in exec_module 223s File "", line 1152, in get_code 223s File "", line 781, in _compile_bytecode 223s KeyboardInterrupt 223s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 223s from zmq import backend 223s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 223s _ns = select_backend(first) 223s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 223s mod = import_module(name) 223s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 223s return _bootstrap._gcd_import(name[level:], package, level) 223s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 223s from . import _zmq 223s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 223s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 223s class SocketOption(IntEnum): 223s ...<138 lines>... 223s NORM_PUSH = 124 223s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 223s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 223s File "/usr/lib/python3.13/enum.py", line 269, in __set_name__ 223s if not hasattr(enum_member, '_value_'): 223s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 223s KeyboardInterrupt 223s Error calling __set_name__ on '_proto_member' instance 'RECONNECT_IVL' in 'SocketOption' 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-63a1c511-64cf-40aa-9331-84fc5a19d6f0.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53431 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46455 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 63a1c511-64cf-40aa-9331-84fc5a19d6f0, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.130000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-a1074e00-d13e-4f64-aeb8-a0c2fcc18a43.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39203 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53005 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.200000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 63a1c511-64cf-40aa-9331-84fc5a19d6f0 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 63a1c511-64cf-40aa-9331-84fc5a19d6f0 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 223s km.shutdown_kernel(before['kernel']['id']) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 13.720000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.760000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 10.710000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 223s from . import _parser 223s File "/usr/lib/python3.13/re/_parser.py", line 15, in 223s from ._constants import * 223s File "/usr/lib/python3.13/re/_constants.py", line 130, in 223s ATCODES = _makecodes( 223s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 223s ...<5 lines>... 223s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 223s ) 223s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 223s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 223s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 223s KeyboardInterrupt 223s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-9681b2a3-cea1-4897-bd78-4f8d0bb3e02a.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35917 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55803 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 18.560000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.950000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 7.060000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 125, in 223s import enum 223s File "/usr/lib/python3.13/enum.py", line 1343, in 223s class ReprEnum(Enum): 223s ...<2 lines>... 223s """ 223s File "/usr/lib/python3.13/enum.py", line 524, in __new__ 223s _order_ = classdict.pop('_order_', None) 223s KeyboardInterrupt 223s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f529f1d1-45ab-4e6f-9004-acb8621b5fc0 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-f61f5cb5-272a-4549-906d-41f7d5c21c53.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35621 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47443 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: f61f5cb5-272a-4549-906d-41f7d5c21c53, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.130000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.900000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.960000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7 (::1) 1.950000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f61f5cb5-272a-4549-906d-41f7d5c21c53 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f61f5cb5-272a-4549-906d-41f7d5c21c53 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f529f1d1-45ab-4e6f-9004-acb8621b5fc0 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f529f1d1-45ab-4e6f-9004-acb8621b5fc0', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 223s from __future__ import annotations 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1019, in exec_module 223s File "", line 1152, in get_code 223s File "", line 781, in _compile_bytecode 223s KeyboardInterrupt 223s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 223s from zmq import backend 223s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 11, in 223s if 'PYZMQ_BACKEND' in os.environ: 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3.13/_collections_abc.py", line 815, in __contains__ 223s def __contains__(self, key): 223s 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-f4e26547-ac9c-4dd8-9c20-e40452d261b4.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40105 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55765 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4e26547-ac9c-4dd8-9c20-e40452d261b4, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.800000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-5a8ca45d-7396-4c8c-bd38-1d6787947b66.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49407 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56155 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a8ca45d-7396-4c8c-bd38-1d6787947b66, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.110000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4e26547-ac9c-4dd8-9c20-e40452d261b4 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4e26547-ac9c-4dd8-9c20-e40452d261b4 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 223s yield maybe_future( 223s km.shutdown_kernel(before['kernel']['id']) 223s ) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 13.630000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.010000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a8ca45d-7396-4c8c-bd38-1d6787947b66 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a8ca45d-7396-4c8c-bd38-1d6787947b66 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 223s import json 223s File "/usr/lib/python3.13/json/__init__.py", line 106, in 223s from .decoder import JSONDecoder, JSONDecodeError 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1019, in exec_module 223s File "", line 1152, in get_code 223s File "", line 781, in _compile_bytecode 223s KeyboardInterrupt 223s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.120000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-fbba1d01-5d0c-4715-9c24-1c53cc8f3a78.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44079 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40123 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: fbba1d01-5d0c-4715-9c24-1c53cc8f3a78, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a8ca45d-7396-4c8c-bd38-1d6787947b66 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a8ca45d-7396-4c8c-bd38-1d6787947b66 223s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 15.980000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.520000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fbba1d01-5d0c-4715-9c24-1c53cc8f3a78 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fbba1d01-5d0c-4715-9c24-1c53cc8f3a78 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 223s from ._casefix import _EXTRA_CASES 223s File "", line 1357, in _find_and_load 223s File "", line 417, in __enter__ 223s File "", line 443, in _get_module_lock 223s File "", line 253, in __init__ 223s KeyboardInterrupt 223s =================================== FAILURES =================================== 223s ______________________ KernelAPITest.test_default_kernel _______________________ 223s 223s self = 223s 223s def tearDown(self): 223s for k in self.kern_api.list().json(): 223s > self.kern_api.shutdown(k['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log setup ------------------------------ 223s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpp1ejmh2e/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpp1ejmh2e/etc/jupyter'] for config files 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpp1ejmh2e/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpp1ejmh2e/config 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpp1ejmh2e/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpp1ejmh2e/config 223s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpp1ejmh2e/notebooks 223s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 223s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 223s WARNING NotebookApp:handlers.py:612 Forbidden 223s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.620000ms referer=None 223s ----------------------------- Captured stderr call ----------------------------- 223s Could not import runpy module 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45303 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34681 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 52.800000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.480000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 223s yielded = ctx_run(next, result) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 14, in 223s import importlib.machinery # importlib first so we can test #15386 via -m 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "", line 1360, in _find_and_load 223s File "", line 1334, in _find_and_load_unlocked 223s KeyboardInterrupt 223s ______________________ KernelAPITest.test_kernel_handler _______________________ 223s 223s self = 223s 223s def test_kernel_handler(self): 223s # GET kernel with given id 223s kid = self.kern_api.start().json()['id'] 223s r = self.kern_api.get(kid) 223s kern1 = r.json() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(kern1, dict) 223s self.assertIn('id', kern1) 223s self.assertEqual(kern1['id'], kid) 223s 223s # Request a bad kernel id and check that a JSON 223s # message is returned! 223s bad_id = '111-111-111-111-111' 223s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 223s self.kern_api.get(bad_id) 223s 223s # DELETE kernel with id 223s > r = self.kern_api.shutdown(kid) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a7b570c1-2e07-4f95-ae18-bd9bbb065726 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 179, in 223s class _ZeroSentinel(int): 223s pass 223s File "/usr/lib/python3.13/re/__init__.py", line 179, in _ZeroSentinel 223s class _ZeroSentinel(int): 223s 223s KeyboardInterrupt 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-a7b570c1-2e07-4f95-ae18-bd9bbb065726.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45673 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50027 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: a7b570c1-2e07-4f95-ae18-bd9bbb065726, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a7b570c1-2e07-4f95-ae18-bd9bbb065726 (::1) 2.430000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s 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 223s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 223s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.470000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7b570c1-2e07-4f95-ae18-bd9bbb065726 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7b570c1-2e07-4f95-ae18-bd9bbb065726 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a7b570c1-2e07-4f95-ae18-bd9bbb065726 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a7b570c1-2e07-4f95-ae18-bd9bbb065726', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 223s yielded = ctx_run(next, result) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a7b570c1-2e07-4f95-ae18-bd9bbb065726 (::1) 7.080000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e9fdd1c7-d8ae-4453-8f64-ffabbc2e5c6a (::1) 1.210000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7b570c1-2e07-4f95-ae18-bd9bbb065726 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7b570c1-2e07-4f95-ae18-bd9bbb065726 223s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 223s 223s self = 223s 223s def test_main_kernel_handler(self): 223s # POST request 223s r = self.kern_api.start() 223s kern1 = r.json() 223s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 223s self.assertEqual(r.status_code, 201) 223s self.assertIsInstance(kern1, dict) 223s 223s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 223s expected_csp = '; '.join([ 223s "frame-ancestors 'self'", 223s 'report-uri ' + report_uri, 223s "default-src 'none'" 223s ]) 223s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 223s 223s # GET request 223s r = self.kern_api.list() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(r.json(), list) 223s self.assertEqual(r.json()[0]['id'], kern1['id']) 223s self.assertEqual(r.json()[0]['name'], kern1['name']) 223s 223s # create another kernel and check that they both are added to the 223s # list of kernels from a GET request 223s kern2 = self.kern_api.start().json() 223s assert isinstance(kern2, dict) 223s r = self.kern_api.list() 223s kernels = r.json() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(kernels, list) 223s self.assertEqual(len(kernels), 2) 223s 223s # Interrupt a kernel 223s r = self.kern_api.interrupt(kern2['id']) 223s self.assertEqual(r.status_code, 204) 223s 223s # Restart a kernel 223s > r = self.kern_api.restart(kern2['id']) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 223s return self._req('POST', url_path_join(id, 'restart')) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e/restart 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 18, in 223s from collections import namedtuple 223s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 223s from operator import eq as _eq 223s File "", line 1360, in _find_and_load 223s File "", line 1322, in _find_and_load_unlocked 223s File "", line 1262, in _find_spec 223s File "", line 1556, in find_spec 223s File "", line 1530, in _get_spec 223s File "", line 1662, in find_spec 223s File "", line 166, in _path_isfile 223s File "", line 158, in _path_is_mode_type 223s File "", line 152, in _path_stat 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37485 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49731 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.190000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpp1ejmh2e/runtime/kernel-3be4b455-2bbf-4cd4-bad7-22945b9f595e.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33665 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40335 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3be4b455-2bbf-4cd4-bad7-22945b9f595e, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.920000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.540000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 3be4b455-2bbf-4cd4-bad7-22945b9f595e 223s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e/interrupt (::1) 1.310000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 223s yield maybe_future(km.restart_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 223s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 223s await ensure_async(kernel.restart_kernel(now=now)) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 223s await self._async_shutdown_kernel(now=now, restart=True) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e/restart (::1) 10.170000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 223s yielded = ctx_run(next, result) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ________________________ KernelAPITest.test_no_kernels _________________________ 223s 223s self = 223s 223s def test_no_kernels(self): 223s """Make sure there are no kernels running at the start""" 223s kernels = self.kern_api.list().json() 223s > self.assertEqual(kernels, []) 223s E AssertionError: Lists differ: [{'id': '2551ab7e-ca3f-47cc-b27c-a26d2cfd4[281 chars]: 0}] != [] 223s E 223s E First list contains 2 additional elements. 223s E First extra element 0: 223s E {'id': '2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff', 'name': 'python3', 'last_activity': '2026-01-24T03:31:45.390152Z', 'execution_state': 'starting', 'connections': 0} 223s E 223s E + [] 223s E - [{'connections': 0, 223s E - 'execution_state': 'starting', 223s E - 'id': '2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff', 223s E - 'last_activity': '2026-01-24T03:31:45.390152Z', 223s E - 'name': 'python3'}, 223s E - {'connections': 0, 223s E - 'execution_state': 'starting', 223s E - 'id': '3be4b455-2bbf-4cd4-bad7-22945b9f595e', 223s E - 'last_activity': '2026-01-24T03:31:45.414971Z', 223s E - 'name': 'python3'}] 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.240000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2551ab7e-ca3f-47cc-b27c-a26d2cfd48ff (::1) 0.980000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3be4b455-2bbf-4cd4-bad7-22945b9f595e 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3be4b455-2bbf-4cd4-bad7-22945b9f595e 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3be4b455-2bbf-4cd4-bad7-22945b9f595e (::1) 1.130000ms 223s ---------------------------- Captured log teardown ----------------------------- 223s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 223s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 223s _____________________ AsyncKernelAPITest.test_connections ______________________ 223s 223s self = 223s 223s def tearDown(self): 223s for k in self.kern_api.list().json(): 223s > self.kern_api.shutdown(k['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log setup ------------------------------ 223s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpuc3k744z/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpuc3k744z/etc/jupyter'] for config files 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpuc3k744z/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpuc3k744z/config 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpuc3k744z/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpuc3k744z/config 223s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpuc3k744z/notebooks 223s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 223s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 223s WARNING NotebookApp:handlers.py:612 Forbidden 223s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.610000ms referer=None 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-9f35a3c2-2a10-462b-9c99-c672622a1354.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49385 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49569 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f35a3c2-2a10-462b-9c99-c672622a1354, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.800000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 2.500000ms 223s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354/channels 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 223s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 223s 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/'}]} 223s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 9f35a3c2-2a10-462b-9c99-c672622a1354) to 5.4 (client). 223s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354/channels (::1) 586.230000ms 223s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354/channels 223s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49569 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49385 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42631 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49385 223s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 223s Setting websocket_ping_timeout=30000 223s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 1.770000ms 223s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:handlers.py:579 Websocket closed 9f35a3c2-2a10-462b-9c99-c672622a1354:239a4316-309de05136af07c9a0f42fdc 223s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 9f35a3c2-2a10-462b-9c99-c672622a1354:239a4316-309de05136af07c9a0f42fdc 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9f35a3c2-2a10-462b-9c99-c672622a1354:iopub 223s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9f35a3c2-2a10-462b-9c99-c672622a1354:iopub 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9f35a3c2-2a10-462b-9c99-c672622a1354:iopub 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 1.400000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 0.740000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f35a3c2-2a10-462b-9c99-c672622a1354 223s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 9f35a3c2-2a10-462b-9c99-c672622a1354:239a4316-309de05136af07c9a0f42fdc 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 8.850000ms referer=None 223s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 223s 223s self = 223s 223s def tearDown(self): 223s for k in self.kern_api.list().json(): 223s > self.kern_api.shutdown(k['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/775e45f2-bae4-4990-b121-f57c4f2a24ad 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-775e45f2-bae4-4990-b121-f57c4f2a24ad.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41007 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46559 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 775e45f2-bae4-4990-b121-f57c4f2a24ad, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.700000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.900000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f35a3c2-2a10-462b-9c99-c672622a1354 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9f35a3c2-2a10-462b-9c99-c672622a1354 (::1) 4.680000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 775e45f2-bae4-4990-b121-f57c4f2a24ad 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 775e45f2-bae4-4990-b121-f57c4f2a24ad 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/775e45f2-bae4-4990-b121-f57c4f2a24ad (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/775e45f2-bae4-4990-b121-f57c4f2a24ad', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 18, in 223s from collections import namedtuple 223s File "/usr/lib/python3.13/collections/__init__.py", line 989, in 223s class ChainMap(_collections_abc.MutableMapping): 223s ...<124 lines>... 223s return self.__class__(m) 223s File "/usr/lib/python3.13/collections/__init__.py", line 1039, in ChainMap 223s @_recursive_repr() 223s ~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.13/reprlib.py", line 27, in decorating_function 223s wrapper.__module__ = getattr(user_function, '__module__') 223s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s KeyboardInterrupt 223s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 223s 223s self = 223s 223s def test_kernel_handler(self): 223s # GET kernel with given id 223s kid = self.kern_api.start().json()['id'] 223s r = self.kern_api.get(kid) 223s kern1 = r.json() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(kern1, dict) 223s self.assertIn('id', kern1) 223s self.assertEqual(kern1['id'], kid) 223s 223s # Request a bad kernel id and check that a JSON 223s # message is returned! 223s bad_id = '111-111-111-111-111' 223s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 223s self.kern_api.get(bad_id) 223s 223s # DELETE kernel with id 223s > r = self.kern_api.shutdown(kid) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-200b1246-ba6b-4a72-aae5-ad555eb66091.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33009 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35439 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 200b1246-ba6b-4a72-aae5-ad555eb66091, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.280000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091 (::1) 4.440000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s 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 223s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 223s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.850000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 200b1246-ba6b-4a72-aae5-ad555eb66091 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 200b1246-ba6b-4a72-aae5-ad555eb66091 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091 (::1) 12.730000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 775e45f2-bae4-4990-b121-f57c4f2a24ad 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 775e45f2-bae4-4990-b121-f57c4f2a24ad 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/775e45f2-bae4-4990-b121-f57c4f2a24ad (::1) 0.840000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 200b1246-ba6b-4a72-aae5-ad555eb66091 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 200b1246-ba6b-4a72-aae5-ad555eb66091 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/200b1246-ba6b-4a72-aae5-ad555eb66091 (::1) 0.850000ms 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 18, in 223s from collections import namedtuple 223s File "/usr/lib/python3.13/collections/__init__.py", line 71, in 223s class _OrderedDictItemsView(_collections_abc.ItemsView): 223s ...<3 lines>... 223s yield (key, self._mapping[key]) 223s File "/usr/lib/python3.13/collections/__init__.py", line 71, in _OrderedDictItemsView 223s class _OrderedDictItemsView(_collections_abc.ItemsView): 223s 223s KeyboardInterrupt 223s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 223s 223s self = 223s 223s def test_main_kernel_handler(self): 223s # POST request 223s r = self.kern_api.start() 223s kern1 = r.json() 223s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 223s self.assertEqual(r.status_code, 201) 223s self.assertIsInstance(kern1, dict) 223s 223s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 223s expected_csp = '; '.join([ 223s "frame-ancestors 'self'", 223s 'report-uri ' + report_uri, 223s "default-src 'none'" 223s ]) 223s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 223s 223s # GET request 223s r = self.kern_api.list() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(r.json(), list) 223s self.assertEqual(r.json()[0]['id'], kern1['id']) 223s self.assertEqual(r.json()[0]['name'], kern1['name']) 223s 223s # create another kernel and check that they both are added to the 223s # list of kernels from a GET request 223s kern2 = self.kern_api.start().json() 223s assert isinstance(kern2, dict) 223s r = self.kern_api.list() 223s kernels = r.json() 223s self.assertEqual(r.status_code, 200) 223s assert isinstance(kernels, list) 223s self.assertEqual(len(kernels), 2) 223s 223s # Interrupt a kernel 223s r = self.kern_api.interrupt(kern2['id']) 223s self.assertEqual(r.status_code, 204) 223s 223s # Restart a kernel 223s > r = self.kern_api.restart(kern2['id']) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 223s return self._req('POST', url_path_join(id, 'restart')) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259/restart 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 223s import functools 223s File "/usr/lib/python3.13/functools.py", line 457, in 223s class _HashedSeq(list): 223s File "/usr/lib/python3.13/functools.py", line 457, in _HashedSeq 223s class _HashedSeq(list): 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-12392834-6e0b-44fd-8661-fead1e47ee43.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53241 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55581 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12392834-6e0b-44fd-8661-fead1e47ee43, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.910000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuc3k744z/runtime/kernel-5dde9837-ecb8-436a-9e63-e3acfa54a259.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54297 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53355 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5dde9837-ecb8-436a-9e63-e3acfa54a259, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.040000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.870000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5dde9837-ecb8-436a-9e63-e3acfa54a259 223s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259/interrupt (::1) 2.340000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 223s yield maybe_future(km.restart_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 223s result = coro.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 223s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 223s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 223s yield self # This tells Task to wait for completion. 223s ^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 223s await ensure_async(kernel.restart_kernel(now=now)) 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 223s await self._async_shutdown_kernel(now=now, restart=True) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259/restart (::1) 8.020000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12392834-6e0b-44fd-8661-fead1e47ee43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12392834-6e0b-44fd-8661-fead1e47ee43 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 223s yield maybe_future(km.shutdown_kernel(kernel_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 (::1) 6.350000ms referer=None 223s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 223s 223s self = 223s 223s def test_no_kernels(self): 223s """Make sure there are no kernels running at the start""" 223s kernels = self.kern_api.list().json() 223s > self.assertEqual(kernels, []) 223s E AssertionError: Lists differ: [{'id': '12392834-6e0b-44fd-8661-fead1e47e[281 chars]: 0}] != [] 223s E 223s E First list contains 2 additional elements. 223s E First extra element 0: 223s E {'id': '12392834-6e0b-44fd-8661-fead1e47ee43', 'name': 'python3', 'last_activity': '2026-01-24T03:31:46.467954Z', 'execution_state': 'starting', 'connections': 0} 223s E 223s E + [] 223s E - [{'connections': 0, 223s E - 'execution_state': 'starting', 223s E - 'id': '12392834-6e0b-44fd-8661-fead1e47ee43', 223s E - 'last_activity': '2026-01-24T03:31:46.467954Z', 223s E - 'name': 'python3'}, 223s E - {'connections': 0, 223s E - 'execution_state': 'starting', 223s E - 'id': '5dde9837-ecb8-436a-9e63-e3acfa54a259', 223s E - 'last_activity': '2026-01-24T03:31:46.491023Z', 223s E - 'name': 'python3'}] 223s 223s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.650000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12392834-6e0b-44fd-8661-fead1e47ee43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12392834-6e0b-44fd-8661-fead1e47ee43 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/12392834-6e0b-44fd-8661-fead1e47ee43 (::1) 0.810000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5dde9837-ecb8-436a-9e63-e3acfa54a259 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dde9837-ecb8-436a-9e63-e3acfa54a259 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5dde9837-ecb8-436a-9e63-e3acfa54a259 (::1) 0.900000ms 223s ---------------------------- Captured log teardown ----------------------------- 223s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 775e45f2-bae4-4990-b121-f57c4f2a24ad 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f35a3c2-2a10-462b-9c99-c672622a1354 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 200b1246-ba6b-4a72-aae5-ad555eb66091 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12392834-6e0b-44fd-8661-fead1e47ee43 223s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 223s __________________________ SessionAPITest.test_create __________________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log setup ------------------------------ 223s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmprzs69kd6/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmprzs69kd6/etc/jupyter'] for config files 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprzs69kd6/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprzs69kd6/config 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprzs69kd6/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprzs69kd6/config 223s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmprzs69kd6/notebooks 223s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 223s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 223s WARNING NotebookApp:handlers.py:612 Forbidden 223s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.600000ms referer=None 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-2a412b34-555a-4c1a-b846-c9c4127ab182.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38109 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39911 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a412b34-555a-4c1a-b846-c9c4127ab182, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.240000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0 (::1) 0.890000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a412b34-555a-4c1a-b846-c9c4127ab182 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a412b34-555a-4c1a-b846-c9c4127ab182 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0 (::1) 7.700000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 223s from . import _parser 223s File "/usr/lib/python3.13/re/_parser.py", line 15, in 223s from ._constants import * 223s File "/usr/lib/python3.13/re/_constants.py", line 130, in 223s ATCODES = _makecodes( 223s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 223s ...<5 lines>... 223s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 223s ) 223s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 223s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 223s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 223s KeyboardInterrupt 223s __________________ SessionAPITest.test_create_console_session __________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f2e8b748-5101-48c6-b1ff-56ae240c92c1 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-658dda7d-dbf9-49ed-99ab-72701bb5a83b.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53011 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54063 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 658dda7d-dbf9-49ed-99ab-72701bb5a83b, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.510000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a412b34-555a-4c1a-b846-c9c4127ab182 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a412b34-555a-4c1a-b846-c9c4127ab182 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f07ff3f4-d623-43ff-9dfe-8cda006f55a0 (::1) 2.350000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 658dda7d-dbf9-49ed-99ab-72701bb5a83b 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 658dda7d-dbf9-49ed-99ab-72701bb5a83b 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f2e8b748-5101-48c6-b1ff-56ae240c92c1 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f2e8b748-5101-48c6-b1ff-56ae240c92c1', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 223s from ._local import * 223s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 223s import pwd 223s KeyboardInterrupt 223s ____________________ SessionAPITest.test_create_deprecated _____________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/90e24ab6-a9ac-43c9-80a7-20ce656c158c 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-676f40e5-1687-48f0-8123-36192a746a89.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43353 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41615 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 676f40e5-1687-48f0-8123-36192a746a89, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.090000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.260000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 658dda7d-dbf9-49ed-99ab-72701bb5a83b 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 658dda7d-dbf9-49ed-99ab-72701bb5a83b 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f2e8b748-5101-48c6-b1ff-56ae240c92c1 (::1) 1.130000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 676f40e5-1687-48f0-8123-36192a746a89 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 676f40e5-1687-48f0-8123-36192a746a89 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/90e24ab6-a9ac-43c9-80a7-20ce656c158c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/90e24ab6-a9ac-43c9-80a7-20ce656c158c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 223s from ._local import * 223s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 223s import warnings 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1019, in exec_module 223s File "", line 1152, in get_code 223s File "", line 781, in _compile_bytecode 223s KeyboardInterrupt 223s ___________________ SessionAPITest.test_create_file_session ____________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/59b46853-8060-443a-923f-5ffc1acfab94 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-70213f11-6330-41ae-8e38-24ed065805de.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35737 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33663 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 70213f11-6330-41ae-8e38-24ed065805de, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.690000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 676f40e5-1687-48f0-8123-36192a746a89 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 676f40e5-1687-48f0-8123-36192a746a89 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/90e24ab6-a9ac-43c9-80a7-20ce656c158c (::1) 1.160000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70213f11-6330-41ae-8e38-24ed065805de 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70213f11-6330-41ae-8e38-24ed065805de 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/59b46853-8060-443a-923f-5ffc1acfab94 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/59b46853-8060-443a-923f-5ffc1acfab94', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 223s from ._local import * 223s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 223s import warnings 223s File "", line 1357, in _find_and_load 223s File "", line 417, in __enter__ 223s File "", line 443, in _get_module_lock 223s File "", line 254, in __init__ 223s KeyboardInterrupt 223s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 223s 223s self = 223s 223s def test_create_with_kernel_id(self): 223s # create a new kernel 223s r = self.request('POST', 'api/kernels') 223s r.raise_for_status() 223s kernel = r.json() 223s 223s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 223s self.assertEqual(resp.status_code, 201) 223s newsession = resp.json() 223s self.assertIn('id', newsession) 223s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 223s self.assertEqual(newsession['kernel']['id'], kernel['id']) 223s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 223s 223s sessions = self.sess_api.list().json() 223s > self.assertEqual(sessions, [newsession]) 223s E AssertionError: Lists differ: [{'id': '59b46853-8060-443a-923f-5ffc1acfab94', 'p[553 chars]ne}}] != [{'id': '9f92e171-6d15-4faf-9b59-428468558a49', 'p[279 chars]ne}}] 223s E 223s E First differing element 0: 223s E {'id': '59b46853-8060-443a-923f-5ffc1acfab94', 'p[218 chars]: 0}} 223s E {'id': '9f92e171-6d15-4faf-9b59-428468558a49', 'p[278 chars]one}} 223s E 223s E First list contains 1 additional elements. 223s E First extra element 1: 223s E {'id': '9f92e171-6d15-4faf-9b59-428468558a49', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '79d4210d-4cb5-40d0-bc67-44ab0da62081', 'name': 'python3', 'last_activity': '2026-01-24T03:31:56.835286Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 223s E 223s E Diff is 830 characters long. Set self.maxDiff to None to see it. 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-79d4210d-4cb5-40d0-bc67-44ab0da62081.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58361 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39985 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d4210d-4cb5-40d0-bc67-44ab0da62081, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.910000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.090000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.580000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70213f11-6330-41ae-8e38-24ed065805de 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70213f11-6330-41ae-8e38-24ed065805de 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/59b46853-8060-443a-923f-5ffc1acfab94 (::1) 1.190000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d4210d-4cb5-40d0-bc67-44ab0da62081 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d4210d-4cb5-40d0-bc67-44ab0da62081 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9f92e171-6d15-4faf-9b59-428468558a49 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9f92e171-6d15-4faf-9b59-428468558a49', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 223s 223s self = 223s 223s def test_modify_kernel_id(self): 223s before = self.sess_api.create('foo/nb1.ipynb').json() 223s sid = before['id'] 223s 223s # create a new kernel 223s r = self.request('POST', 'api/kernels') 223s r.raise_for_status() 223s kernel = r.json() 223s 223s # Attach our session to the existing kernel 223s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 223s return self._req('PATCH', id, body) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 223s from zmq import backend 223s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 223s _ns = select_backend(first) 223s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 223s mod = import_module(name) 223s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 223s return _bootstrap._gcd_import(name[level:], package, level) 223s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 223s from . import _zmq 223s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 223s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 223s class SocketOption(IntEnum): 223s ...<138 lines>... 223s NORM_PUSH = 124 223s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 223s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 223s File "/usr/lib/python3.13/enum.py", line 269, in __set_name__ 223s if not hasattr(enum_member, '_value_'): 223s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 223s KeyboardInterrupt 223s Error calling __set_name__ on '_proto_member' instance 'RECONNECT_IVL' in 'SocketOption' 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-63a1c511-64cf-40aa-9331-84fc5a19d6f0.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53431 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46455 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 63a1c511-64cf-40aa-9331-84fc5a19d6f0, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.130000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-a1074e00-d13e-4f64-aeb8-a0c2fcc18a43.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39203 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53005 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.200000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 63a1c511-64cf-40aa-9331-84fc5a19d6f0 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 63a1c511-64cf-40aa-9331-84fc5a19d6f0 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 223s km.shutdown_kernel(before['kernel']['id']) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 13.720000ms referer=None 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.760000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 10.710000ms referer=None 223s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 223s 223s self = 223s 223s def test_modify_kernel_name(self): 223s before = self.sess_api.create('foo/nb1.ipynb').json() 223s sid = before['id'] 223s 223s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 223s self.assertEqual(after['id'], sid) 223s self.assertEqual(after['path'], before['path']) 223s self.assertEqual(after['type'], before['type']) 223s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 223s 223s # check kernel list, to be sure previous kernel was cleaned up 223s r = self.request('GET', 'api/kernels') 223s r.raise_for_status() 223s kernel_list = r.json() 223s after['kernel'].pop('last_activity') 223s [ k.pop('last_activity') for k in kernel_list ] 223s > self.assertEqual(kernel_list, [after['kernel']]) 223s E AssertionError: Lists differ: [{'id': '63a1c511-64cf-40aa-9331-84fc5a19d6f0', 'n[177 chars]: 0}] != [{'id': '9681b2a3-cea1-4897-bd78-4f8d0bb3e02a', 'n[61 chars]: 0}] 223s E 223s E First differing element 0: 223s E {'id': '63a1c511-64cf-40aa-9331-84fc5a19d6f0', 'n[60 chars]': 0} 223s E {'id': '9681b2a3-cea1-4897-bd78-4f8d0bb3e02a', 'n[60 chars]': 0} 223s E 223s E First list contains 1 additional elements. 223s E First extra element 1: 223s E {'id': '9681b2a3-cea1-4897-bd78-4f8d0bb3e02a', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 223s E 223s E [{'connections': 0, 223s E - 'execution_state': 'starting', 223s E - 'id': '63a1c511-64cf-40aa-9331-84fc5a19d6f0', 223s E - 'name': 'python3'}, 223s E - {'connections': 0, 223s E 'execution_state': 'starting', 223s E 'id': '9681b2a3-cea1-4897-bd78-4f8d0bb3e02a', 223s E 'name': 'python3'}] 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-9681b2a3-cea1-4897-bd78-4f8d0bb3e02a.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35917 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55803 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1074e00-d13e-4f64-aeb8-a0c2fcc18a43 223s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 18.560000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.950000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9681b2a3-cea1-4897-bd78-4f8d0bb3e02a 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bddb3f98-87ca-48fa-a5b9-8bc9bd10231c (::1) 7.060000ms referer=None 223s __________________ SessionAPITest.test_modify_path_deprecated __________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-e88e59f8-5107-4bdb-a490-7d04bf0f2a24.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40537 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60943 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: e88e59f8-5107-4bdb-a490-7d04bf0f2a24, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.940000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 223s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc (::1) 1.170000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e88e59f8-5107-4bdb-a490-7d04bf0f2a24 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e88e59f8-5107-4bdb-a490-7d04bf0f2a24 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc (::1) 6.950000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 223s from . import _parser 223s File "", line 1360, in _find_and_load 223s File "", line 1331, in _find_and_load_unlocked 223s File "", line 935, in _load_unlocked 223s File "", line 1019, in exec_module 223s File "", line 1152, in get_code 223s File "", line 781, in _compile_bytecode 223s KeyboardInterrupt 223s _______________________ SessionAPITest.test_modify_type ________________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/781e5220-1353-4eb0-8eb6-fa6621d37fc9 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprzs69kd6/runtime/kernel-72e03335-36b5-45c9-8796-59cf1739cc09.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47105 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60577 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 72e03335-36b5-45c9-8796-59cf1739cc09, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprzs69kd6/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.540000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/781e5220-1353-4eb0-8eb6-fa6621d37fc9 (::1) 1.170000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.320000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e88e59f8-5107-4bdb-a490-7d04bf0f2a24 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e88e59f8-5107-4bdb-a490-7d04bf0f2a24 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e5e0fdb2-0442-4c5c-9651-f9f6f7b046bc (::1) 1.230000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 72e03335-36b5-45c9-8796-59cf1739cc09 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72e03335-36b5-45c9-8796-59cf1739cc09 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/781e5220-1353-4eb0-8eb6-fa6621d37fc9 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/781e5220-1353-4eb0-8eb6-fa6621d37fc9', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 223s yielded = self.gen.send(value) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 223s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 223s stopper = ensure_async(km.shutdown_kernel(now, restart)) 223s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 223s return _runner_map[name].run(inner) 223s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 223s return fut.result(None) 223s ~~~~~~~~~~^^^^^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 223s return self.__get_result() 223s ~~~~~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 223s raise self._exception 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 223s from ._local import * 223s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 223s class PureWindowsPath(PurePath): 223s ...<7 lines>... 223s __slots__ = () 223s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 223s import ntpath 223s File "/usr/lib/python3.13/ntpath.py", line 45, in 223s from _winapi import ( 223s ...<2 lines>... 223s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 223s File "", line 1360, in _find_and_load 223s File "", line 1322, in _find_and_load_unlocked 223s File "", line 1262, in _find_spec 223s File "", line 1556, in find_spec 223s File "", line 1530, in _get_spec 223s File "", line 1621, in find_spec 223s KeyboardInterrupt 223s ---------------------------- Captured log teardown ----------------------------- 223s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 63a1c511-64cf-40aa-9331-84fc5a19d6f0 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72e03335-36b5-45c9-8796-59cf1739cc09 223s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 223s _______________________ AsyncSessionAPITest.test_create ________________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/734348f2-14bd-4895-a557-72192b5f14d3 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log setup ------------------------------ 223s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1kwx9vj1/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1kwx9vj1/etc/jupyter'] for config files 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1kwx9vj1/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1kwx9vj1/config 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1kwx9vj1/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 223s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1kwx9vj1/config 223s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1kwx9vj1/notebooks 223s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 223s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 223s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 223s WARNING NotebookApp:handlers.py:612 Forbidden 223s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.730000ms referer=None 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-3af55494-442c-4680-b6dc-459fa28d1358.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35861 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40281 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3af55494-442c-4680-b6dc-459fa28d1358, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.540000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/734348f2-14bd-4895-a557-72192b5f14d3 (::1) 2.520000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.420000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3af55494-442c-4680-b6dc-459fa28d1358 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3af55494-442c-4680-b6dc-459fa28d1358 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/734348f2-14bd-4895-a557-72192b5f14d3 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/734348f2-14bd-4895-a557-72192b5f14d3', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s --------------------------- Captured stderr teardown --------------------------- 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 223s import json 223s File "/usr/lib/python3.13/json/__init__.py", line 106, in 223s from .decoder import JSONDecoder, JSONDecodeError 223s File "/usr/lib/python3.13/json/decoder.py", line 5, in 223s from json import scanner 223s File "/usr/lib/python3.13/json/scanner.py", line 13, in 223s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 223s ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 223s File "/usr/lib/python3.13/enum.py", line 1596, in __or__ 223s def __or__(self, other): 223s 223s KeyboardInterrupt 223s _______________ AsyncSessionAPITest.test_create_console_session ________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/250e82ef-571a-4cf3-89f0-6a24afb12c48 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-2e835bf4-234d-42fb-8783-8c3686c9fd93.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59225 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32855 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2e835bf4-234d-42fb-8783-8c3686c9fd93, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.080000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.300000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3af55494-442c-4680-b6dc-459fa28d1358 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3af55494-442c-4680-b6dc-459fa28d1358 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/734348f2-14bd-4895-a557-72192b5f14d3 (::1) 2.240000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2e835bf4-234d-42fb-8783-8c3686c9fd93 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2e835bf4-234d-42fb-8783-8c3686c9fd93 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/250e82ef-571a-4cf3-89f0-6a24afb12c48 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/250e82ef-571a-4cf3-89f0-6a24afb12c48', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/250e82ef-571a-4cf3-89f0-6a24afb12c48 (::1) 7.260000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "", line 1349, in _find_and_load 223s KeyboardInterrupt 223s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f816a17e-d040-4af7-843c-6513c25e27c9 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-dccd5dc7-b089-4dc0-95da-fdcc86795e86.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51827 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54569 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: dccd5dc7-b089-4dc0-95da-fdcc86795e86, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.930000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2e835bf4-234d-42fb-8783-8c3686c9fd93 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2e835bf4-234d-42fb-8783-8c3686c9fd93 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/250e82ef-571a-4cf3-89f0-6a24afb12c48 (::1) 2.450000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dccd5dc7-b089-4dc0-95da-fdcc86795e86 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dccd5dc7-b089-4dc0-95da-fdcc86795e86 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f816a17e-d040-4af7-843c-6513c25e27c9 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f816a17e-d040-4af7-843c-6513c25e27c9', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 223s gc.collect() 223s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f816a17e-d040-4af7-843c-6513c25e27c9 (::1) 7.130000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "", line 1360, in _find_and_load 223s File "", line 1322, in _find_and_load_unlocked 223s File "", line 1262, in _find_spec 223s File "", line 1556, in find_spec 223s File "", line 1530, in _get_spec 223s File "", line 1662, in find_spec 223s File "", line 166, in _path_isfile 223s File "", line 158, in _path_is_mode_type 223s File "", line 152, in _path_stat 223s KeyboardInterrupt 223s _________________ AsyncSessionAPITest.test_create_file_session _________________ 223s 223s @self.addCleanup 223s def cleanup_sessions(): 223s for session in self.sess_api.list().json(): 223s > self.sess_api.delete(session['id']) 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 223s return self._req('DELETE', id) 223s ^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-9397c5ca-df14-4358-ae58-b8b5b3e93ee3.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49753 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50679 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9397c5ca-df14-4358-ae58-b8b5b3e93ee3, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.840000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dccd5dc7-b089-4dc0-95da-fdcc86795e86 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dccd5dc7-b089-4dc0-95da-fdcc86795e86 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f816a17e-d040-4af7-843c-6513c25e27c9 (::1) 2.190000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s ERROR NotebookApp:log.py:55 { 223s "Host": "localhost:12341", 223s "Accept": "*/*", 223s "User-Agent": "python-requests/2.32.5" 223s } 223s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7 (::1) 6.500000ms referer=None 223s --------------------------- Captured stderr teardown --------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 223s from pathlib import Path 223s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 223s from ._abc import * 223s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 223s from glob import _Globber, _no_recurse_symlinks 223s File "/usr/lib/python3.13/glob.py", line 5, in 223s import re 223s File "/usr/lib/python3.13/re/__init__.py", line 126, in 223s from . import _compiler, _parser 223s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 223s import _sre 223s KeyboardInterrupt 223s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 223s 223s self = 223s 223s def test_create_with_kernel_id(self): 223s # create a new kernel 223s r = self.request('POST', 'api/kernels') 223s r.raise_for_status() 223s kernel = r.json() 223s 223s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 223s self.assertEqual(resp.status_code, 201) 223s newsession = resp.json() 223s self.assertIn('id', newsession) 223s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 223s self.assertEqual(newsession['kernel']['id'], kernel['id']) 223s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 223s 223s sessions = self.sess_api.list().json() 223s > self.assertEqual(sessions, [newsession]) 223s E AssertionError: Lists differ: [{'id': 'ff3359ca-dd21-4192-bbd6-6667405f33e7', 'pa[552 chars]ne}}] != [{'id': 'f529f1d1-45ab-4e6f-9004-acb8621b5fc0', 'pa[278 chars]ne}}] 223s E 223s E First differing element 0: 223s E {'id': 'ff3359ca-dd21-4192-bbd6-6667405f33e7', 'pa[217 chars]: 0}} 223s E {'id': 'f529f1d1-45ab-4e6f-9004-acb8621b5fc0', 'pa[277 chars]one}} 223s E 223s E First list contains 1 additional elements. 223s E First extra element 1: 223s E {'id': 'f529f1d1-45ab-4e6f-9004-acb8621b5fc0', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f61f5cb5-272a-4549-906d-41f7d5c21c53', 'name': 'python3', 'last_activity': '2026-01-24T03:31:57.780817Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 223s E 223s E Diff is 830 characters long. Set self.maxDiff to None to see it. 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 223s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-f61f5cb5-272a-4549-906d-41f7d5c21c53.json'] 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35621 223s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47443 223s INFO NotebookApp:kernelmanager.py:179 Kernel started: f61f5cb5-272a-4549-906d-41f7d5c21c53, name: python3 223s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.130000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.900000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.960000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 223s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ff3359ca-dd21-4192-bbd6-6667405f33e7 (::1) 1.950000ms 223s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 223s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f61f5cb5-272a-4549-906d-41f7d5c21c53 223s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f61f5cb5-272a-4549-906d-41f7d5c21c53 223s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f529f1d1-45ab-4e6f-9004-acb8621b5fc0 (::1) 223s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f529f1d1-45ab-4e6f-9004-acb8621b5fc0', version='HTTP/1.1', remote_ip='::1') 223s Traceback (most recent call last): 223s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 223s result = await result 223s ^^^^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 223s future.result() 223s ~~~~~~~~~~~~~^^ 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 223s yield maybe_future(sm.delete_session(session_id)) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 223s yielded = self.gen.throw(exc) 223s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 223s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 223s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 223s value = future.result() 223s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 223s raise self._exception.with_traceback(self._exception_tb) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 223s result = coro.send(None) 223s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 223s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 223s raise km.ready.exception() # type: ignore[misc] 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 223s await kernel_awaitable 223s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 223s result = await obj 223s ^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 223s raise e 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 223s out = await method(self, *args, **kwargs) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 223s await self._async_finish_shutdown(restart=restart) 223s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 223s await asyncio.wait_for( 223s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 223s ) 223s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 223s async with timeouts.timeout(timeout): 223s ~~~~~~~~~~~~~~~~^^^^^^^^^ 223s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 223s raise RuntimeError("Timeout should be used inside a task") 223s RuntimeError: Timeout should be used inside a task 223s WARNING NotebookApp:handlers.py:612 Unhandled error 223s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 223s 223s self = 223s 223s def test_modify_kernel_id(self): 223s before = self.sess_api.create('foo/nb1.ipynb').json() 223s sid = before['id'] 223s 223s # create a new kernel 223s r = self.request('POST', 'api/kernels') 223s r.raise_for_status() 223s kernel = r.json() 223s 223s # Attach our session to the existing kernel 223s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 223s return self._req('PATCH', id, body) 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 223s response.raise_for_status() 223s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 223s 223s self = 223s 223s def raise_for_status(self): 223s """Raises :class:`HTTPError`, if one occurred.""" 223s 223s http_error_msg = "" 223s if isinstance(self.reason, bytes): 223s # We attempt to decode utf-8 first because some servers 223s # choose to localize their reason strings. If the string 223s # isn't utf-8, we fall back to iso-8859-1 for all other 223s # encodings. (See PR #3538) 223s try: 223s reason = self.reason.decode("utf-8") 223s except UnicodeDecodeError: 223s reason = self.reason.decode("iso-8859-1") 223s else: 223s reason = self.reason 223s 223s if 400 <= self.status_code < 500: 223s http_error_msg = ( 223s f"{self.status_code} Client Error: {reason} for url: {self.url}" 223s ) 223s 223s elif 500 <= self.status_code < 600: 223s http_error_msg = ( 223s f"{self.status_code} Server Error: {reason} for url: {self.url}" 223s ) 223s 223s if http_error_msg: 223s > raise HTTPError(http_error_msg, response=self) 223s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 223s 223s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 223s ----------------------------- Captured stderr call ----------------------------- 223s Traceback (most recent call last): 223s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 223s return _run_code(code, main_globals, None, 223s "__main__", mod_spec) 223s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 223s exec(code, run_globals) 223s ~~~~^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 223s from ipykernel import kernelapp as app 223s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 223s from .connect import * # noqa: F403 223s ^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 223s import jupyter_client 223s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 223s from .asynchronous import AsyncKernelClient 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 223s from .client import AsyncKernelClient # noqa 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 223s import zmq.asyncio 223s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 223s from zmq import backend 223s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 11, in 223s if 'PYZMQ_BACKEND' in os.environ: 223s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 223s File "/usr/lib/python3.13/_collections_abc.py", line 815, in __contains__ 223s def __contains__(self, key): 223s 223s KeyboardInterrupt 223s Traceback (most recent call last): 223s ------------------------------ Captured log call ------------------------------- 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 224s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-f4e26547-ac9c-4dd8-9c20-e40452d261b4.json'] 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40105 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55765 224s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4e26547-ac9c-4dd8-9c20-e40452d261b4, name: python3 224s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 224s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.800000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 224s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-5a8ca45d-7396-4c8c-bd38-1d6787947b66.json'] 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49407 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56155 224s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a8ca45d-7396-4c8c-bd38-1d6787947b66, name: python3 224s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 224s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.110000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4e26547-ac9c-4dd8-9c20-e40452d261b4 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4e26547-ac9c-4dd8-9c20-e40452d261b4 224s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 224s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 224s result = await result 224s ^^^^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 224s future.result() 224s ~~~~~~~~~~~~~^^ 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 224s yield maybe_future( 224s km.shutdown_kernel(before['kernel']['id']) 224s ) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 224s raise self._exception.with_traceback(self._exception_tb) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 224s result = coro.send(None) 224s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 224s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 224s raise km.ready.exception() # type: ignore[misc] 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s WARNING NotebookApp:handlers.py:612 Unhandled error 224s ERROR NotebookApp:log.py:55 { 224s "Host": "localhost:12341", 224s "Accept": "*/*", 224s "User-Agent": "python-requests/2.32.5" 224s } 224s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 13.630000ms referer=None 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.010000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a8ca45d-7396-4c8c-bd38-1d6787947b66 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a8ca45d-7396-4c8c-bd38-1d6787947b66 224s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 224s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 224s result = await result 224s ^^^^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 224s future.result() 224s ~~~~~~~~~~~~~^^ 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 224s yield maybe_future(sm.delete_session(session_id)) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 224s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 224s raise self._exception.with_traceback(self._exception_tb) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 224s result = coro.send(None) 224s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 224s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 224s raise km.ready.exception() # type: ignore[misc] 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s WARNING NotebookApp:handlers.py:612 Unhandled error 224s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 224s 224s self = 224s 224s def test_modify_kernel_name(self): 224s before = self.sess_api.create('foo/nb1.ipynb').json() 224s sid = before['id'] 224s 224s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 224s self.assertEqual(after['id'], sid) 224s self.assertEqual(after['path'], before['path']) 224s self.assertEqual(after['type'], before['type']) 224s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 224s 224s # check kernel list, to be sure previous kernel was cleaned up 224s r = self.request('GET', 'api/kernels') 224s r.raise_for_status() 224s kernel_list = r.json() 224s after['kernel'].pop('last_activity') 224s [ k.pop('last_activity') for k in kernel_list ] 224s > self.assertEqual(kernel_list, [after['kernel']]) 224s E AssertionError: Lists differ: [{'id': 'f4e26547-ac9c-4dd8-9c20-e40452d261b4', 'na[176 chars]: 0}] != [{'id': 'fbba1d01-5d0c-4715-9c24-1c53cc8f3a78', 'na[60 chars]: 0}] 224s E 224s E First differing element 0: 224s E {'id': 'f4e26547-ac9c-4dd8-9c20-e40452d261b4', 'na[59 chars]': 0} 224s E {'id': 'fbba1d01-5d0c-4715-9c24-1c53cc8f3a78', 'na[59 chars]': 0} 224s E 224s E First list contains 1 additional elements. 224s E First extra element 1: 224s E {'id': 'fbba1d01-5d0c-4715-9c24-1c53cc8f3a78', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 224s E 224s E [{'connections': 0, 224s E - 'execution_state': 'starting', 224s E - 'id': 'f4e26547-ac9c-4dd8-9c20-e40452d261b4', 224s E - 'name': 'python3'}, 224s E - {'connections': 0, 224s E 'execution_state': 'starting', 224s E 'id': 'fbba1d01-5d0c-4715-9c24-1c53cc8f3a78', 224s E 'name': 'python3'}] 224s 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 224s ----------------------------- Captured stderr call ----------------------------- 224s Traceback (most recent call last): 224s ------------------------------ Captured log call ------------------------------- 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.120000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 224s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-fbba1d01-5d0c-4715-9c24-1c53cc8f3a78.json'] 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44079 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40123 224s INFO NotebookApp:kernelmanager.py:179 Kernel started: fbba1d01-5d0c-4715-9c24-1c53cc8f3a78, name: python3 224s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a8ca45d-7396-4c8c-bd38-1d6787947b66 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a8ca45d-7396-4c8c-bd38-1d6787947b66 224s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 15.980000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.520000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fbba1d01-5d0c-4715-9c24-1c53cc8f3a78 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fbba1d01-5d0c-4715-9c24-1c53cc8f3a78 224s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4 (::1) 224s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ccf21628-5e5f-4824-80e2-2fb6683e15b4', version='HTTP/1.1', remote_ip='::1') 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 224s result = await result 224s ^^^^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 224s future.result() 224s ~~~~~~~~~~~~~^^ 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 224s yield maybe_future(sm.delete_session(session_id)) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 224s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 224s raise self._exception.with_traceback(self._exception_tb) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 224s result = coro.send(None) 224s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 224s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 224s raise km.ready.exception() # type: ignore[misc] 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s WARNING NotebookApp:handlers.py:612 Unhandled error 224s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 224s 224s @self.addCleanup 224s def cleanup_sessions(): 224s for session in self.sess_api.list().json(): 224s > self.sess_api.delete(session['id']) 224s 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 224s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 224s return self._req('DELETE', id) 224s ^^^^^^^^^^^^^^^^^^^^^^^ 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 224s response.raise_for_status() 224s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 224s 224s self = 224s 224s def raise_for_status(self): 224s """Raises :class:`HTTPError`, if one occurred.""" 224s 224s http_error_msg = "" 224s if isinstance(self.reason, bytes): 224s # We attempt to decode utf-8 first because some servers 224s # choose to localize their reason strings. If the string 224s # isn't utf-8, we fall back to iso-8859-1 for all other 224s # encodings. (See PR #3538) 224s try: 224s reason = self.reason.decode("utf-8") 224s except UnicodeDecodeError: 224s reason = self.reason.decode("iso-8859-1") 224s else: 224s reason = self.reason 224s 224s if 400 <= self.status_code < 500: 224s http_error_msg = ( 224s f"{self.status_code} Client Error: {reason} for url: {self.url}" 224s ) 224s 224s elif 500 <= self.status_code < 600: 224s http_error_msg = ( 224s f"{self.status_code} Server Error: {reason} for url: {self.url}" 224s ) 224s 224s if http_error_msg: 224s > raise HTTPError(http_error_msg, response=self) 224s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/29e1beda-831d-4115-a037-54125ec1ca65 224s 224s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 224s ------------------------------ Captured log call ------------------------------- 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 224s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-d3b37f9a-9cca-4ba5-b447-0df06c3a710c.json'] 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48829 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45447 224s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3b37f9a-9cca-4ba5-b447-0df06c3a710c, name: python3 224s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 224s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.240000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 224s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/29e1beda-831d-4115-a037-54125ec1ca65 (::1) 2.720000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3b37f9a-9cca-4ba5-b447-0df06c3a710c 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3b37f9a-9cca-4ba5-b447-0df06c3a710c 224s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/29e1beda-831d-4115-a037-54125ec1ca65 (::1) 224s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/29e1beda-831d-4115-a037-54125ec1ca65', version='HTTP/1.1', remote_ip='::1') 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 224s result = await result 224s ^^^^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 224s future.result() 224s ~~~~~~~~~~~~~^^ 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 224s yield maybe_future(sm.delete_session(session_id)) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 224s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 224s raise self._exception.with_traceback(self._exception_tb) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 224s result = coro.send(None) 224s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 224s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 224s raise km.ready.exception() # type: ignore[misc] 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s WARNING NotebookApp:handlers.py:612 Unhandled error 224s --------------------------- Captured stderr teardown --------------------------- 224s Traceback (most recent call last): 224s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 224s return _run_code(code, main_globals, None, 224s "__main__", mod_spec) 224s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 224s exec(code, run_globals) 224s ~~~~^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 224s from pathlib import Path 224s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 224s from ._abc import * 224s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 224s from glob import _Globber, _no_recurse_symlinks 224s File "/usr/lib/python3.13/glob.py", line 5, in 224s import re 224s File "/usr/lib/python3.13/re/__init__.py", line 126, in 224s from . import _compiler, _parser 224s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 224s from . import _parser 224s File "/usr/lib/python3.13/re/_parser.py", line 15, in 224s from ._constants import * 224s File "/usr/lib/python3.13/re/_constants.py", line 130, in 224s ATCODES = _makecodes( 224s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 224s ...<5 lines>... 224s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 224s ) 224s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 224s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 224s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 224s KeyboardInterrupt 224s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 224s 224s @self.addCleanup 224s def cleanup_sessions(): 224s for session in self.sess_api.list().json(): 224s > self.sess_api.delete(session['id']) 224s 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 224s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 224s return self._req('DELETE', id) 224s ^^^^^^^^^^^^^^^^^^^^^^^ 224s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 224s response.raise_for_status() 224s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 224s 224s self = 224s 224s def raise_for_status(self): 224s """Raises :class:`HTTPError`, if one occurred.""" 224s 224s http_error_msg = "" 224s if isinstance(self.reason, bytes): 224s # We attempt to decode utf-8 first because some servers 224s # choose to localize their reason strings. If the string 224s # isn't utf-8, we fall back to iso-8859-1 for all other 224s # encodings. (See PR #3538) 224s try: 224s reason = self.reason.decode("utf-8") 224s except UnicodeDecodeError: 224s reason = self.reason.decode("iso-8859-1") 224s else: 224s reason = self.reason 224s 224s if 400 <= self.status_code < 500: 224s http_error_msg = ( 224s f"{self.status_code} Client Error: {reason} for url: {self.url}" 224s ) 224s 224s elif 500 <= self.status_code < 600: 224s http_error_msg = ( 224s f"{self.status_code} Server Error: {reason} for url: {self.url}" 224s ) 224s 224s if http_error_msg: 224s > raise HTTPError(http_error_msg, response=self) 224s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0791ac10-404b-4c57-bfc4-2143c6fa5f45 224s 224s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 224s ----------------------------- Captured stderr call ----------------------------- 224s Traceback (most recent call last): 224s ------------------------------ Captured log call ------------------------------- 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 224s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1kwx9vj1/runtime/kernel-5c872cb2-b4fe-4891-8d90-76252cc8c69a.json'] 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50381 224s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42817 224s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c872cb2-b4fe-4891-8d90-76252cc8c69a, name: python3 224s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1kwx9vj1/notebooks/foo'} 224s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.700000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/0791ac10-404b-4c57-bfc4-2143c6fa5f45 (::1) 2.570000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3b37f9a-9cca-4ba5-b447-0df06c3a710c 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3b37f9a-9cca-4ba5-b447-0df06c3a710c 224s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/29e1beda-831d-4115-a037-54125ec1ca65 (::1) 2.490000ms 224s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 224s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c872cb2-b4fe-4891-8d90-76252cc8c69a 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c872cb2-b4fe-4891-8d90-76252cc8c69a 224s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0791ac10-404b-4c57-bfc4-2143c6fa5f45 (::1) 224s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0791ac10-404b-4c57-bfc4-2143c6fa5f45', version='HTTP/1.1', remote_ip='::1') 224s Traceback (most recent call last): 224s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 224s result = await result 224s ^^^^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 224s future.result() 224s ~~~~~~~~~~~~~^^ 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 224s yield maybe_future(sm.delete_session(session_id)) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 224s yielded = self.gen.throw(exc) 224s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 224s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 224s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 224s value = future.result() 224s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 224s raise self._exception.with_traceback(self._exception_tb) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 224s result = coro.send(None) 224s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 224s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 224s raise km.ready.exception() # type: ignore[misc] 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 224s await kernel_awaitable 224s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 224s result = await obj 224s ^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 224s raise e 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 224s out = await method(self, *args, **kwargs) 224s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 224s await self._async_finish_shutdown(restart=restart) 224s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 224s await asyncio.wait_for( 224s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 224s ) 224s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 224s async with timeouts.timeout(timeout): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^ 224s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 224s raise RuntimeError("Timeout should be used inside a task") 224s RuntimeError: Timeout should be used inside a task 224s WARNING NotebookApp:handlers.py:612 Unhandled error 224s ERROR NotebookApp:log.py:55 { 224s "Host": "localhost:12341", 224s "Accept": "*/*", 224s "User-Agent": "python-requests/2.32.5" 224s } 224s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0791ac10-404b-4c57-bfc4-2143c6fa5f45 (::1) 6.850000ms referer=None 224s --------------------------- Captured stderr teardown --------------------------- 224s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 224s return _run_code(code, main_globals, None, 224s "__main__", mod_spec) 224s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 224s exec(code, run_globals) 224s ~~~~^^^^^^^^^^^^^^^^^^^ 224s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 224s from pathlib import Path 224s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 224s from ._local import * 224s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 224s import grp 224s KeyboardInterrupt 224s ---------------------------- Captured log teardown ----------------------------- 224s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3b37f9a-9cca-4ba5-b447-0df06c3a710c 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9397c5ca-df14-4358-ae58-b8b5b3e93ee3 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fbba1d01-5d0c-4715-9c24-1c53cc8f3a78 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3af55494-442c-4680-b6dc-459fa28d1358 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dccd5dc7-b089-4dc0-95da-fdcc86795e86 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2e835bf4-234d-42fb-8783-8c3686c9fd93 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a8ca45d-7396-4c8c-bd38-1d6787947b66 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c872cb2-b4fe-4891-8d90-76252cc8c69a 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4e26547-ac9c-4dd8-9c20-e40452d261b4 224s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f61f5cb5-272a-4549-906d-41f7d5c21c53 224s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 224s =============================== warnings summary =============================== 224s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 224s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 224s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 224s return LooseVersion(v) >= LooseVersion(check) 224s 224s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 224s auth/tests/test_login.py: 2 warnings 224s bundler/tests/test_bundler_api.py: 2 warnings 224s services/api/tests/test_api.py: 4 warnings 224s services/config/tests/test_config_api.py: 7 warnings 224s services/contents/tests/test_contents_api.py: 318 warnings 224s services/kernels/tests/test_kernels_api.py: 103 warnings 224s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 224s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 224s services/sessions/tests/test_sessionmanager.py: 9 warnings 224s services/sessions/tests/test_sessions_api.py: 128 warnings 224s terminal/tests/test_terminals_api.py: 50 warnings 224s tests/test_files.py: 2 warnings 224s tests/test_gateway.py: 21 warnings 224s tests/test_notebookapp.py: 8 warnings 224s tests/test_paths.py: 2 warnings 224s tree/tests/test_tree_handler.py: 2 warnings 224s /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). 224s dt = unaware(*args, **kwargs) 224s 224s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 224s /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 224s pytestmark = pytest.mark.integration_tests 224s 224s auth/tests/test_login.py: 3 warnings 224s bundler/tests/test_bundler_api.py: 3 warnings 224s services/api/tests/test_api.py: 3 warnings 224s services/config/tests/test_config_api.py: 3 warnings 224s services/contents/tests/test_contents_api.py: 6 warnings 224s services/kernels/tests/test_kernels_api.py: 12 warnings 224s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 224s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 224s services/sessions/tests/test_sessions_api.py: 6 warnings 224s terminal/tests/test_terminals_api.py: 6 warnings 224s tests/test_files.py: 3 warnings 224s tests/test_gateway.py: 3 warnings 224s tests/test_notebookapp.py: 11 warnings 224s tests/test_paths.py: 3 warnings 224s tree/tests/test_tree_handler.py: 3 warnings 224s /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 224s policy = events.get_event_loop_policy() 224s 224s auth/tests/test_login.py: 9 warnings 224s bundler/tests/test_bundler_api.py: 9 warnings 224s services/api/tests/test_api.py: 9 warnings 224s services/config/tests/test_config_api.py: 9 warnings 224s services/contents/tests/test_contents_api.py: 18 warnings 224s services/kernels/tests/test_kernels_api.py: 47 warnings 224s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 224s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 224s services/sessions/tests/test_sessionmanager.py: 18 warnings 224s services/sessions/tests/test_sessions_api.py: 19 warnings 224s terminal/tests/test_terminals_api.py: 18 warnings 224s tests/test_files.py: 9 warnings 224s tests/test_gateway.py: 9 warnings 224s tests/test_notebookapp.py: 28 warnings 224s tests/test_paths.py: 9 warnings 224s tree/tests/test_tree_handler.py: 9 warnings 224s /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 224s loop = events.get_event_loop_policy().get_event_loop() 224s 224s bundler/tests/test_bundler_api.py: 6 warnings 224s services/api/tests/test_api.py: 6 warnings 224s services/contents/tests/test_contents_api.py: 806 warnings 224s services/contents/tests/test_largefilemanager.py: 42 warnings 224s services/contents/tests/test_manager.py: 526 warnings 224s tests/test_files.py: 8 warnings 224s tree/tests/test_tree_handler.py: 6 warnings 224s /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). 224s dt = unaware(*args, **kwargs) 224s 224s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 224s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 224s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 224s loop.make_current() 224s 224s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 224s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 224s /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/tmprzewd39n/data/kernels/sample 2 224s d = self.find_kernel_specs() 224s 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 224s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 224s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3001) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 224s pid, fd = os.forkpty() 224s 224s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 224s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 224s for name, arg in zip(self.fields, fields): 224s Enable tracemalloc to get traceback where the object was allocated. 224s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 224s 224s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 224s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 224s /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). 224s dt = datetime.utcnow().isoformat() + 'Z' 224s 224s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 224s =========================== short test summary info ============================ 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 224s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 224s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 224s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 224s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 224s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 224s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 224s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 224s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 224s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 224s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 224s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 224s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 224s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 224s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 224s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 224s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 224s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 224s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 224s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 224s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 224s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 224s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2396 warnings, 8 errors in 29.84s = 224s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 224s *** 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 228s ============================= test session starts ============================== 228s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 228s rootdir: /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp 228s plugins: typeguard-4.4.4 228s collected 330 items / 303 deselected / 27 selected 228s run-last-failure: rerun previous 27 failures 228s 229s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 231s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 231s 231s ==================================== ERRORS ==================================== 231s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 231s 231s self = 231s 231s def tearDown(self): 231s for k in self.kern_api.list().json(): 231s > self.kern_api.shutdown(k['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 231s import functools 231s File "/usr/lib/python3.13/functools.py", line 18, in 231s from collections import namedtuple 231s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 231s from keyword import iskeyword as _iskeyword 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1124, in get_code 231s File "", line 719, in _classify_pyc 231s File "", line 89, in _unpack_uint32 231s KeyboardInterrupt 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-a738402c-7fa6-47e5-b1ed-3afb4dfecd4d.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46459 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38739 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: a738402c-7fa6-47e5-b1ed-3afb4dfecd4d, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.790000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56039 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52509 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.450000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f 231s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f/interrupt (::1) 2.540000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 231s yield maybe_future(km.restart_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 231s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 231s await ensure_async(kernel.restart_kernel(now=now)) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 231s await self._async_shutdown_kernel(now=now, restart=True) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f/restart (::1) 10.830000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 231s yielded = ctx_run(next, result) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d (::1) 6.300000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 231s import jupyter_client 231s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 231s from .asynchronous import AsyncKernelClient 231s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 231s from .client import AsyncKernelClient # noqa 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 231s import zmq.asyncio 231s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 231s import asyncio 231s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 231s from .base_events import * 231s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 231s import ssl 231s File "/usr/lib/python3.13/ssl.py", line 100, in 231s import _ssl # if we can't import it, let the error propagate 231s ^^^^^^^^^^^ 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1326, in exec_module 231s File "", line 491, in _verbose_message 231s KeyboardInterrupt 231s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 231s 231s self = 231s 231s def tearDown(self): 231s for k in self.kern_api.list().json(): 231s > self.kern_api.shutdown(k['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 231s import functools 231s File "/usr/lib/python3.13/functools.py", line 18, in 231s from collections import namedtuple 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1104, in get_code 231s File "", line 546, in cache_from_source 231s KeyboardInterrupt 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-8ae90a22-e1c8-4a5e-986b-004dd5f5af67.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60507 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37023 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.430000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-100fa9b6-4132-4487-b852-328f337a26cb.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38945 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47733 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 100fa9b6-4132-4487-b852-328f337a26cb, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.840000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 100fa9b6-4132-4487-b852-328f337a26cb 231s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/100fa9b6-4132-4487-b852-328f337a26cb/interrupt (::1) 2.160000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 231s yield maybe_future(km.restart_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 231s result = coro.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 231s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 231s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 231s yield self # This tells Task to wait for completion. 231s ^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 231s await ensure_async(kernel.restart_kernel(now=now)) 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 231s await self._async_shutdown_kernel(now=now, restart=True) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/100fa9b6-4132-4487-b852-328f337a26cb/restart (::1) 5.120000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.300000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 (::1) 5.980000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 231s import jupyter_client 231s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 231s from .asynchronous import AsyncKernelClient 231s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 231s from .client import AsyncKernelClient # noqa 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 231s import zmq.asyncio 231s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 231s from zmq import backend 231s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 231s _ns = select_backend(first) 231s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 231s mod = import_module(name) 231s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 231s return _bootstrap._gcd_import(name[level:], package, level) 231s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 231s from . import _zmq 231s File "_zmq.py", line 39, in init zmq.backend.cython._zmq 231s File "/usr/lib/python3.13/weakref.py", line 38, in 231s class WeakMethod(ref): 231s ...<50 lines>... 231s __hash__ = ref.__hash__ 231s File "/usr/lib/python3.13/weakref.py", line 38, in WeakMethod 231s class WeakMethod(ref): 231s 231s KeyboardInterrupt 231s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-bba334c9-7436-44fc-9840-89e2da789263.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38917 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59961 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: bba334c9-7436-44fc-9840-89e2da789263, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.370000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.130000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/110c13da-197d-4164-9d83-286cecd85549 (::1) 2.490000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba334c9-7436-44fc-9840-89e2da789263 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba334c9-7436-44fc-9840-89e2da789263 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 7.120000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 231s from subprocess import PIPE, Popen 231s File "/usr/lib/python3.13/subprocess.py", line 51, in 231s import threading 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1115, in get_code 231s File "", line 1215, in get_data 231s KeyboardInterrupt 231s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-82ea9bb6-7209-4136-a486-e87bea62e6fa.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44591 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36125 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82ea9bb6-7209-4136-a486-e87bea62e6fa, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.210000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.700000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.430000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e79c4b6-c687-466a-a596-15718634e682 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e79c4b6-c687-466a-a596-15718634e682 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/99e1c7f3-d5fc-45d0-b08e-a35f6d30322b (::1) 0.980000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 231s from subprocess import PIPE, Popen 231s File "/usr/lib/python3.13/subprocess.py", line 46, in 231s import locale 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s =================================== FAILURES =================================== 231s ______________________ KernelAPITest.test_default_kernel _______________________ 231s 231s self = 231s 231s def tearDown(self): 231s for k in self.kern_api.list().json(): 231s > self.kern_api.shutdown(k['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d6d5cdcc-6a88-415c-b1b7-4628e975eb34 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log setup ------------------------------ 231s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpvyy7xtod/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpvyy7xtod/etc/jupyter'] for config files 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvyy7xtod/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvyy7xtod/config 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvyy7xtod/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvyy7xtod/config 231s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpvyy7xtod/notebooks 231s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 231s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 231s WARNING NotebookApp:handlers.py:612 Forbidden 231s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.540000ms referer=None 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-d6d5cdcc-6a88-415c-b1b7-4628e975eb34.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43765 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53079 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: d6d5cdcc-6a88-415c-b1b7-4628e975eb34, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.770000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.090000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6d5cdcc-6a88-415c-b1b7-4628e975eb34 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6d5cdcc-6a88-415c-b1b7-4628e975eb34 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d6d5cdcc-6a88-415c-b1b7-4628e975eb34 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d6d5cdcc-6a88-415c-b1b7-4628e975eb34', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 231s yielded = ctx_run(next, result) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d6d5cdcc-6a88-415c-b1b7-4628e975eb34 (::1) 8.680000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s ______________________ KernelAPITest.test_kernel_handler _______________________ 231s 231s self = 231s 231s def test_kernel_handler(self): 231s # GET kernel with given id 231s kid = self.kern_api.start().json()['id'] 231s r = self.kern_api.get(kid) 231s kern1 = r.json() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(kern1, dict) 231s self.assertIn('id', kern1) 231s self.assertEqual(kern1['id'], kid) 231s 231s # Request a bad kernel id and check that a JSON 231s # message is returned! 231s bad_id = '111-111-111-111-111' 231s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 231s self.kern_api.get(bad_id) 231s 231s # DELETE kernel with id 231s > r = self.kern_api.shutdown(kid) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 231s from ._local import * 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-d7892230-61d8-4a62-8a0d-65ea2b8e630b.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41433 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53877 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7892230-61d8-4a62-8a0d-65ea2b8e630b, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.680000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b (::1) 0.720000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s 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 231s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 231s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.100000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7892230-61d8-4a62-8a0d-65ea2b8e630b 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7892230-61d8-4a62-8a0d-65ea2b8e630b 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 231s yielded = ctx_run(next, result) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b (::1) 8.570000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6d5cdcc-6a88-415c-b1b7-4628e975eb34 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6d5cdcc-6a88-415c-b1b7-4628e975eb34 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d6d5cdcc-6a88-415c-b1b7-4628e975eb34 (::1) 2.820000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7892230-61d8-4a62-8a0d-65ea2b8e630b 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7892230-61d8-4a62-8a0d-65ea2b8e630b 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d7892230-61d8-4a62-8a0d-65ea2b8e630b (::1) 1.850000ms 231s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 231s 231s self = 231s 231s def test_main_kernel_handler(self): 231s # POST request 231s r = self.kern_api.start() 231s kern1 = r.json() 231s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 231s self.assertEqual(r.status_code, 201) 231s self.assertIsInstance(kern1, dict) 231s 231s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 231s expected_csp = '; '.join([ 231s "frame-ancestors 'self'", 231s 'report-uri ' + report_uri, 231s "default-src 'none'" 231s ]) 231s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 231s 231s # GET request 231s r = self.kern_api.list() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(r.json(), list) 231s self.assertEqual(r.json()[0]['id'], kern1['id']) 231s self.assertEqual(r.json()[0]['name'], kern1['name']) 231s 231s # create another kernel and check that they both are added to the 231s # list of kernels from a GET request 231s kern2 = self.kern_api.start().json() 231s assert isinstance(kern2, dict) 231s r = self.kern_api.list() 231s kernels = r.json() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(kernels, list) 231s self.assertEqual(len(kernels), 2) 231s 231s # Interrupt a kernel 231s r = self.kern_api.interrupt(kern2['id']) 231s self.assertEqual(r.status_code, 204) 231s 231s # Restart a kernel 231s > r = self.kern_api.restart(kern2['id']) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 231s return self._req('POST', url_path_join(id, 'restart')) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f/restart 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 231s import functools 231s File "/usr/lib/python3.13/functools.py", line 18, in 231s from collections import namedtuple 231s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 231s from keyword import iskeyword as _iskeyword 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1124, in get_code 231s File "", line 719, in _classify_pyc 231s File "", line 89, in _unpack_uint32 231s KeyboardInterrupt 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-a738402c-7fa6-47e5-b1ed-3afb4dfecd4d.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46459 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38739 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: a738402c-7fa6-47e5-b1ed-3afb4dfecd4d, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.790000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyy7xtod/runtime/kernel-148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56039 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52509 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.450000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f 231s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f/interrupt (::1) 2.540000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 231s yield maybe_future(km.restart_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 231s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 231s await ensure_async(kernel.restart_kernel(now=now)) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 231s await self._async_shutdown_kernel(now=now, restart=True) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f/restart (::1) 10.830000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 231s yielded = ctx_run(next, result) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d (::1) 6.300000ms referer=None 231s ________________________ KernelAPITest.test_no_kernels _________________________ 231s 231s self = 231s 231s def test_no_kernels(self): 231s """Make sure there are no kernels running at the start""" 231s kernels = self.kern_api.list().json() 231s > self.assertEqual(kernels, []) 231s E AssertionError: Lists differ: [{'id': 'a738402c-7fa6-47e5-b1ed-3afb4dfec[281 chars]: 0}] != [] 231s E 231s E First list contains 2 additional elements. 231s E First extra element 0: 231s E {'id': 'a738402c-7fa6-47e5-b1ed-3afb4dfecd4d', 'name': 'python3', 'last_activity': '2026-01-24T03:32:12.623159Z', 'execution_state': 'starting', 'connections': 0} 231s E 231s E + [] 231s E - [{'connections': 0, 231s E - 'execution_state': 'starting', 231s E - 'id': 'a738402c-7fa6-47e5-b1ed-3afb4dfecd4d', 231s E - 'last_activity': '2026-01-24T03:32:12.623159Z', 231s E - 'name': 'python3'}, 231s E - {'connections': 0, 231s E - 'execution_state': 'starting', 231s E - 'id': '148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f', 231s E - 'last_activity': '2026-01-24T03:32:12.649088Z', 231s E - 'name': 'python3'}] 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.680000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a738402c-7fa6-47e5-b1ed-3afb4dfecd4d 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a738402c-7fa6-47e5-b1ed-3afb4dfecd4d (::1) 1.060000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/148a5a9a-1f71-4cd1-8d4e-de66e8d9a99f (::1) 1.160000ms 231s ---------------------------- Captured log teardown ----------------------------- 231s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 231s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 231s _____________________ AsyncKernelAPITest.test_connections ______________________ 231s 231s self = 231s 231s def tearDown(self): 231s for k in self.kern_api.list().json(): 231s > self.kern_api.shutdown(k['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log setup ------------------------------ 231s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpd2fbd7vd/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpd2fbd7vd/etc/jupyter'] for config files 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpd2fbd7vd/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpd2fbd7vd/config 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpd2fbd7vd/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpd2fbd7vd/config 231s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpd2fbd7vd/notebooks 231s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 231s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 231s WARNING NotebookApp:handlers.py:612 Forbidden 231s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.590000ms referer=None 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-54727b78-d263-46fb-9df4-01b83109bca0.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56839 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58197 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54727b78-d263-46fb-9df4-01b83109bca0, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.970000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 0.850000ms 231s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0/channels 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 231s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52879 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (starting) 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (busy) 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (idle) 231s 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/'}]} 231s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 54727b78-d263-46fb-9df4-01b83109bca0) to 5.4 (client). 231s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0/channels (::1) 528.510000ms 231s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0/channels 231s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58197 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52879 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56839 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55763 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52879 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56839 231s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 231s Setting websocket_ping_timeout=30000 231s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 2.870000ms 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (busy) 231s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (busy) 231s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (idle) 231s DEBUG NotebookApp:kernelmanager.py:423 activity on 54727b78-d263-46fb-9df4-01b83109bca0: status (idle) 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:handlers.py:579 Websocket closed 54727b78-d263-46fb-9df4-01b83109bca0:92feedeb-891b8cd16c8d5f6538c8d0cf 231s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 54727b78-d263-46fb-9df4-01b83109bca0:92feedeb-891b8cd16c8d5f6538c8d0cf 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 1.210000ms 231s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 54727b78-d263-46fb-9df4-01b83109bca0:iopub 231s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 54727b78-d263-46fb-9df4-01b83109bca0:iopub 231s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 54727b78-d263-46fb-9df4-01b83109bca0:iopub 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 0.810000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54727b78-d263-46fb-9df4-01b83109bca0 231s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 54727b78-d263-46fb-9df4-01b83109bca0:92feedeb-891b8cd16c8d5f6538c8d0cf 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54727b78-d263-46fb-9df4-01b83109bca0 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 6.230000ms referer=None 231s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 231s 231s self = 231s 231s def tearDown(self): 231s for k in self.kern_api.list().json(): 231s > self.kern_api.shutdown(k['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c8c93508-3000-4fd3-afae-e1156ae324d9 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-c8c93508-3000-4fd3-afae-e1156ae324d9.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49991 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46807 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: c8c93508-3000-4fd3-afae-e1156ae324d9, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.620000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54727b78-d263-46fb-9df4-01b83109bca0 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54727b78-d263-46fb-9df4-01b83109bca0 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/54727b78-d263-46fb-9df4-01b83109bca0 (::1) 0.940000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8c93508-3000-4fd3-afae-e1156ae324d9 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8c93508-3000-4fd3-afae-e1156ae324d9 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c8c93508-3000-4fd3-afae-e1156ae324d9 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c8c93508-3000-4fd3-afae-e1156ae324d9', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c8c93508-3000-4fd3-afae-e1156ae324d9 (::1) 12.590000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 231s import functools 231s File "/usr/lib/python3.13/functools.py", line 18, in 231s from collections import namedtuple 231s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 231s from _collections import deque 231s File "", line 1357, in _find_and_load 231s File "", line 420, in __exit__ 231s KeyboardInterrupt 231s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 231s 231s self = 231s 231s def test_kernel_handler(self): 231s # GET kernel with given id 231s kid = self.kern_api.start().json()['id'] 231s r = self.kern_api.get(kid) 231s kern1 = r.json() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(kern1, dict) 231s self.assertIn('id', kern1) 231s self.assertEqual(kern1['id'], kid) 231s 231s # Request a bad kernel id and check that a JSON 231s # message is returned! 231s bad_id = '111-111-111-111-111' 231s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 231s self.kern_api.get(bad_id) 231s 231s # DELETE kernel with id 231s > r = self.kern_api.shutdown(kid) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-4e0ef3f7-30d2-4620-af4f-e47fe6317eb5.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54741 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40647 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.900000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 (::1) 0.870000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s 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 231s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 231s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.840000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4e0ef3f7-30d2-4620-af4f-e47fe6317eb5', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 (::1) 14.500000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.300000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8c93508-3000-4fd3-afae-e1156ae324d9 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8c93508-3000-4fd3-afae-e1156ae324d9 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c8c93508-3000-4fd3-afae-e1156ae324d9 (::1) 0.840000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s --------------------------- Captured stderr teardown --------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 3, in 231s import contextlib 231s File "/usr/lib/python3.13/contextlib.py", line 105, in 231s class _GeneratorContextManagerBase: 231s ...<20 lines>... 231s return self.__class__(self.func, self.args, self.kwds) 231s KeyboardInterrupt 231s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 231s 231s self = 231s 231s def test_main_kernel_handler(self): 231s # POST request 231s r = self.kern_api.start() 231s kern1 = r.json() 231s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 231s self.assertEqual(r.status_code, 201) 231s self.assertIsInstance(kern1, dict) 231s 231s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 231s expected_csp = '; '.join([ 231s "frame-ancestors 'self'", 231s 'report-uri ' + report_uri, 231s "default-src 'none'" 231s ]) 231s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 231s 231s # GET request 231s r = self.kern_api.list() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(r.json(), list) 231s self.assertEqual(r.json()[0]['id'], kern1['id']) 231s self.assertEqual(r.json()[0]['name'], kern1['name']) 231s 231s # create another kernel and check that they both are added to the 231s # list of kernels from a GET request 231s kern2 = self.kern_api.start().json() 231s assert isinstance(kern2, dict) 231s r = self.kern_api.list() 231s kernels = r.json() 231s self.assertEqual(r.status_code, 200) 231s assert isinstance(kernels, list) 231s self.assertEqual(len(kernels), 2) 231s 231s # Interrupt a kernel 231s r = self.kern_api.interrupt(kern2['id']) 231s self.assertEqual(r.status_code, 204) 231s 231s # Restart a kernel 231s > r = self.kern_api.restart(kern2['id']) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 231s return self._req('POST', url_path_join(id, 'restart')) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/100fa9b6-4132-4487-b852-328f337a26cb/restart 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 231s import functools 231s File "/usr/lib/python3.13/functools.py", line 18, in 231s from collections import namedtuple 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1104, in get_code 231s File "", line 546, in cache_from_source 231s KeyboardInterrupt 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-8ae90a22-e1c8-4a5e-986b-004dd5f5af67.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60507 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37023 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.430000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpd2fbd7vd/runtime/kernel-100fa9b6-4132-4487-b852-328f337a26cb.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38945 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47733 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 100fa9b6-4132-4487-b852-328f337a26cb, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.840000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 100fa9b6-4132-4487-b852-328f337a26cb 231s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/100fa9b6-4132-4487-b852-328f337a26cb/interrupt (::1) 2.160000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 231s yield maybe_future(km.restart_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 231s result = coro.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 231s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 231s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 231s yield self # This tells Task to wait for completion. 231s ^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 231s await ensure_async(kernel.restart_kernel(now=now)) 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 231s await self._async_shutdown_kernel(now=now, restart=True) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/100fa9b6-4132-4487-b852-328f337a26cb/restart (::1) 5.120000ms referer=None 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.300000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 231s yield maybe_future(km.shutdown_kernel(kernel_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 (::1) 5.980000ms referer=None 231s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 231s 231s self = 231s 231s def test_no_kernels(self): 231s """Make sure there are no kernels running at the start""" 231s kernels = self.kern_api.list().json() 231s > self.assertEqual(kernels, []) 231s E AssertionError: Lists differ: [{'id': '8ae90a22-e1c8-4a5e-986b-004dd5f5a[281 chars]: 0}] != [] 231s E 231s E First list contains 2 additional elements. 231s E First extra element 0: 231s E {'id': '8ae90a22-e1c8-4a5e-986b-004dd5f5af67', 'name': 'python3', 'last_activity': '2026-01-24T03:32:13.613064Z', 'execution_state': 'starting', 'connections': 0} 231s E 231s E + [] 231s E - [{'connections': 0, 231s E - 'execution_state': 'starting', 231s E - 'id': '8ae90a22-e1c8-4a5e-986b-004dd5f5af67', 231s E - 'last_activity': '2026-01-24T03:32:13.613064Z', 231s E - 'name': 'python3'}, 231s E - {'connections': 0, 231s E - 'execution_state': 'starting', 231s E - 'id': '100fa9b6-4132-4487-b852-328f337a26cb', 231s E - 'last_activity': '2026-01-24T03:32:13.635943Z', 231s E - 'name': 'python3'}] 231s 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8ae90a22-e1c8-4a5e-986b-004dd5f5af67 (::1) 2.310000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 100fa9b6-4132-4487-b852-328f337a26cb 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 100fa9b6-4132-4487-b852-328f337a26cb 231s ---------------------------- Captured log teardown ----------------------------- 231s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ae90a22-e1c8-4a5e-986b-004dd5f5af67 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54727b78-d263-46fb-9df4-01b83109bca0 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e0ef3f7-30d2-4620-af4f-e47fe6317eb5 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8c93508-3000-4fd3-afae-e1156ae324d9 231s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 231s __________________________ SessionAPITest.test_create __________________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log setup ------------------------------ 231s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpbekfyx4t/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpbekfyx4t/etc/jupyter'] for config files 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbekfyx4t/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbekfyx4t/config 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbekfyx4t/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbekfyx4t/config 231s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpbekfyx4t/notebooks 231s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 231s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 231s WARNING NotebookApp:handlers.py:612 Forbidden 231s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.680000ms referer=None 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-ea0e8bc3-0588-475e-a70a-b8d336f58d6f.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57109 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52689 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: ea0e8bc3-0588-475e-a70a-b8d336f58d6f, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.100000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.010000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60 (::1) 0.940000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.990000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ea0e8bc3-0588-475e-a70a-b8d336f58d6f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ea0e8bc3-0588-475e-a70a-b8d336f58d6f 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60 (::1) 8.940000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s __________________ SessionAPITest.test_create_console_session __________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/050dd0cf-0d75-403f-ba28-f9595286a458 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-2147696e-dbd9-4009-a174-32af43ac226c.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53239 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58365 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2147696e-dbd9-4009-a174-32af43ac226c, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.130000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.030000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ea0e8bc3-0588-475e-a70a-b8d336f58d6f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ea0e8bc3-0588-475e-a70a-b8d336f58d6f 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4fb6d9d1-62d8-4367-8f54-cfe146624d60 (::1) 3.940000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2147696e-dbd9-4009-a174-32af43ac226c 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2147696e-dbd9-4009-a174-32af43ac226c 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/050dd0cf-0d75-403f-ba28-f9595286a458 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/050dd0cf-0d75-403f-ba28-f9595286a458', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 231s from ._local import * 231s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 231s import pwd 231s File "", line 1357, in _find_and_load 231s File "", line 418, in __enter__ 231s File "", line 311, in acquire 231s File "", line 170, in __enter__ 231s File "", line 132, in setdefault 231s File "", line 74, in __new__ 231s KeyboardInterrupt 231s ____________________ SessionAPITest.test_create_deprecated _____________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aaf23b17-c312-4ab9-a368-09da7e1165ae 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-b30377f5-f988-43cd-aa57-970ebaa3137e.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45487 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60793 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: b30377f5-f988-43cd-aa57-970ebaa3137e, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.770000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2147696e-dbd9-4009-a174-32af43ac226c 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2147696e-dbd9-4009-a174-32af43ac226c 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/050dd0cf-0d75-403f-ba28-f9595286a458 (::1) 1.180000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b30377f5-f988-43cd-aa57-970ebaa3137e 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b30377f5-f988-43cd-aa57-970ebaa3137e 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaf23b17-c312-4ab9-a368-09da7e1165ae (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaf23b17-c312-4ab9-a368-09da7e1165ae', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaf23b17-c312-4ab9-a368-09da7e1165ae (::1) 7.880000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 231s from ._local import * 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s ___________________ SessionAPITest.test_create_file_session ____________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/110c13da-197d-4164-9d83-286cecd85549 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-690edd1b-4f9d-4a97-abda-7bbcb50b5628.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60211 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55699 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 690edd1b-4f9d-4a97-abda-7bbcb50b5628, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.220000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b30377f5-f988-43cd-aa57-970ebaa3137e 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b30377f5-f988-43cd-aa57-970ebaa3137e 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/aaf23b17-c312-4ab9-a368-09da7e1165ae (::1) 1.270000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/110c13da-197d-4164-9d83-286cecd85549 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/110c13da-197d-4164-9d83-286cecd85549', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 231s from ._local import * 231s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 231s import warnings 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1152, in get_code 231s File "", line 781, in _compile_bytecode 231s KeyboardInterrupt 231s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 231s 231s self = 231s 231s def test_create_with_kernel_id(self): 231s # create a new kernel 231s r = self.request('POST', 'api/kernels') 231s r.raise_for_status() 231s kernel = r.json() 231s 231s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 231s self.assertEqual(resp.status_code, 201) 231s newsession = resp.json() 231s self.assertIn('id', newsession) 231s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 231s self.assertEqual(newsession['kernel']['id'], kernel['id']) 231s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 231s 231s sessions = self.sess_api.list().json() 231s > self.assertEqual(sessions, [newsession]) 231s E AssertionError: Lists differ: [{'id': '110c13da-197d-4164-9d83-286cecd85549', 'p[553 chars]ne}}] != [{'id': 'fa4be7b6-9338-4238-9ff0-881dbf7bff60', 'p[279 chars]ne}}] 231s E 231s E First differing element 0: 231s E {'id': '110c13da-197d-4164-9d83-286cecd85549', 'p[218 chars]: 0}} 231s E {'id': 'fa4be7b6-9338-4238-9ff0-881dbf7bff60', 'p[278 chars]one}} 231s E 231s E First list contains 1 additional elements. 231s E First extra element 1: 231s E {'id': 'fa4be7b6-9338-4238-9ff0-881dbf7bff60', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'bba334c9-7436-44fc-9840-89e2da789263', 'name': 'python3', 'last_activity': '2026-01-24T03:32:14.117124Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 231s E 231s E Diff is 830 characters long. Set self.maxDiff to None to see it. 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-bba334c9-7436-44fc-9840-89e2da789263.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38917 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59961 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: bba334c9-7436-44fc-9840-89e2da789263, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.370000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.130000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 690edd1b-4f9d-4a97-abda-7bbcb50b5628 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/110c13da-197d-4164-9d83-286cecd85549 (::1) 2.490000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba334c9-7436-44fc-9840-89e2da789263 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba334c9-7436-44fc-9840-89e2da789263 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 7.120000ms referer=None 231s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.530000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47293 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39595 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.540000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba334c9-7436-44fc-9840-89e2da789263 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba334c9-7436-44fc-9840-89e2da789263 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 2.240000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.280000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.060000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 8.690000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 231s import json 231s File "/usr/lib/python3.13/json/__init__.py", line 106, in 231s from .decoder import JSONDecoder, JSONDecodeError 231s File "", line 1349, in _find_and_load 231s KeyboardInterrupt 231s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.750000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-840b7e6f-16d7-4b1d-8137-86eb8d865ebd.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58337 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49183 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 840b7e6f-16d7-4b1d-8137-86eb8d865ebd, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b0eb408-72db-4a3a-bd6e-a9ed9358f7c9 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 17.110000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.780000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 840b7e6f-16d7-4b1d-8137-86eb8d865ebd 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 840b7e6f-16d7-4b1d-8137-86eb8d865ebd 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fa4be7b6-9338-4238-9ff0-881dbf7bff60 (::1) 9.530000ms referer=None 231s ------/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 231s gc.collect() 231s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 231s --------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 5, in 231s import re 231s File "/usr/lib/python3.13/re/__init__.py", line 126, in 231s from . import _compiler, _parser 231s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 231s from . import _parser 231s File "", line 471, in _lock_unlock_module 231s File "", line 311, in acquire 231s File "", line 170, in __enter__ 231s File "", line 132, in setdefault 231s File "", line 80, in __init__ 231s KeyboardInterrupt 231s _______________________ SessionAPITest.test_modify_type ________________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bbc41f92-93ce-480f-8ffd-6690ea165d5b 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbekfyx4t/runtime/kernel-62e3de7c-ce02-4509-a09c-231d861e725c.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50405 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60247 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62e3de7c-ce02-4509-a09c-231d861e725c, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbekfyx4t/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.180000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bbc41f92-93ce-480f-8ffd-6690ea165d5b (::1) 1.190000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.590000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62e3de7c-ce02-4509-a09c-231d861e725c 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62e3de7c-ce02-4509-a09c-231d861e725c 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bbc41f92-93ce-480f-8ffd-6690ea165d5b (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bbc41f92-93ce-480f-8ffd-6690ea165d5b', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 231s yielded = self.gen.send(value) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 231s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 231s stopper = ensure_async(km.shutdown_kernel(now, restart)) 231s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 231s return _runner_map[name].run(inner) 231s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 231s return fut.result(None) 231s ~~~~~~~~~~^^^^^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 231s return self.__get_result() 231s ~~~~~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 231s raise self._exception 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bbc41f92-93ce-480f-8ffd-6690ea165d5b (::1) 7.800000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 5, in 231s import re 231s File "/usr/lib/python3.13/re/__init__.py", line 126, in 231s from . import _compiler, _parser 231s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 231s from . import _parser 231s File "/usr/lib/python3.13/re/_parser.py", line 20, in 231s DIGITS = frozenset("0123456789") 231s KeyboardInterrupt 231s ---------------------------- Captured log teardown ----------------------------- 231s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62e3de7c-ce02-4509-a09c-231d861e725c 231s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 231s _______________________ AsyncSessionAPITest.test_create ________________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ------------------------------ Captured log setup ------------------------------ 231s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7soabx_j/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7soabx_j/etc/jupyter'] for config files 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7soabx_j/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7soabx_j/config 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7soabx_j/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 231s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7soabx_j/config 231s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7soabx_j/notebooks 231s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 231s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 231s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 231s WARNING NotebookApp:handlers.py:612 Forbidden 231s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 921, in _load_unlocked 231s File "", line 819, in module_from_spec 231s File "", line 798, in _init_module_attrs 231s File "", line 638, in cached 231s File "", line 640, in _get_cached 231s KeyboardInterrupt 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-5a055601-23d2-49fd-bba6-124bf4277568.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43531 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52033 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a055601-23d2-49fd-bba6-124bf4277568, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.320000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a (::1) 2.460000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a055601-23d2-49fd-bba6-124bf4277568 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a055601-23d2-49fd-bba6-124bf4277568 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a (::1) 8.000000ms referer=None 231s _______________ AsyncSessionAPITest.test_create_console_session ________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ca982c90-6753-43b4-ad5c-faca2fdeea14 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-4c9b8929-140a-44ae-a59a-b46b040f9234.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53225 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37809 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c9b8929-140a-44ae-a59a-b46b040f9234, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.470000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a055601-23d2-49fd-bba6-124bf4277568 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a055601-23d2-49fd-bba6-124bf4277568 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/147aebcd-cb16-49c6-a7e5-86588ca0cf7a (::1) 2.640000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c9b8929-140a-44ae-a59a-b46b040f9234 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c9b8929-140a-44ae-a59a-b46b040f9234 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ca982c90-6753-43b4-ad5c-faca2fdeea14 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ca982c90-6753-43b4-ad5c-faca2fdeea14', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ca982c90-6753-43b4-ad5c-faca2fdeea14 (::1) 7.610000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 236, in 231s magic_check = re.compile('([*?[])') 231s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 231s return _compile(pattern, flags) 231s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 231s p = _compiler.compile(pattern, flags) 231s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 231s p = _parser.parse(p, flags) 231s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 231s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 231s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 231s itemsappend(_parse(source, state, verbose, nested + 1, 231s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s not nested and not items)) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 231s p = _parse_sub(source, state, sub_verbose, nested + 1) 231s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 231s itemsappend(_parse(source, state, verbose, nested + 1, 231s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s not nested and not items)) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3.13/re/_parser.py", line 886, in _parse 231s op, av = subpattern[i] 231s ~~~~~~~~~~^^^ 231s File "/usr/lib/python3.13/re/_parser.py", line 167, in __getitem__ 231s def __getitem__(self, index): 231s 231s KeyboardInterrupt 231s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8125cb7f-cebe-454d-b346-baa6554df5de 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60839 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46489 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.810000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c9b8929-140a-44ae-a59a-b46b040f9234 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c9b8929-140a-44ae-a59a-b46b040f9234 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ca982c90-6753-43b4-ad5c-faca2fdeea14 (::1) 1.050000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8125cb7f-cebe-454d-b346-baa6554df5de (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8125cb7f-cebe-454d-b346-baa6554df5de', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8125cb7f-cebe-454d-b346-baa6554df5de (::1) 6.750000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 5, in 231s import re 231s File "/usr/lib/python3.13/re/__init__.py", line 381, in 231s import copyreg 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1115, in get_code 231s File "", line 1214, in get_data 231s KeyboardInterrupt 231s _________________ AsyncSessionAPITest.test_create_file_session _________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/99e1c7f3-d5fc-45d0-b08e-a35f6d30322b 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-4e79c4b6-c687-466a-a596-15718634e682.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58665 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33213 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e79c4b6-c687-466a-a596-15718634e682, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.900000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8125cb7f-cebe-454d-b346-baa6554df5de (::1) 2.440000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e79c4b6-c687-466a-a596-15718634e682 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e79c4b6-c687-466a-a596-15718634e682 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/99e1c7f3-d5fc-45d0-b08e-a35f6d30322b (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/99e1c7f3-d5fc-45d0-b08e-a35f6d30322b', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 5, in 231s import re 231s File "/usr/lib/python3.13/re/__init__.py", line 126, in 231s from . import _compiler, _parser 231s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 231s from ._casefix import _EXTRA_CASES 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1115, in get_code 231s File "", line 1214, in get_data 231s KeyboardInterrupt 231s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 231s 231s self = 231s 231s def test_create_with_kernel_id(self): 231s # create a new kernel 231s r = self.request('POST', 'api/kernels') 231s r.raise_for_status() 231s kernel = r.json() 231s 231s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 231s self.assertEqual(resp.status_code, 201) 231s newsession = resp.json() 231s self.assertIn('id', newsession) 231s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 231s self.assertEqual(newsession['kernel']['id'], kernel['id']) 231s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 231s 231s sessions = self.sess_api.list().json() 231s > self.assertEqual(sessions, [newsession]) 231s E AssertionError: Lists differ: [{'id': '99e1c7f3-d5fc-45d0-b08e-a35f6d30322b', 'pa[552 chars]ne}}] != [{'id': '9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', 'pa[278 chars]ne}}] 231s E 231s E First differing element 0: 231s E {'id': '99e1c7f3-d5fc-45d0-b08e-a35f6d30322b', 'pa[217 chars]: 0}} 231s E {'id': '9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', 'pa[277 chars]one}} 231s E 231s E First list contains 1 additional elements. 231s E First extra element 1: 231s E {'id': '9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '82ea9bb6-7209-4136-a486-e87bea62e6fa', 'name': 'python3', 'last_activity': '2026-01-24T03:32:14.774805Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 231s E 231s E Diff is 830 characters long. Set self.maxDiff to None to see it. 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-82ea9bb6-7209-4136-a486-e87bea62e6fa.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44591 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36125 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82ea9bb6-7209-4136-a486-e87bea62e6fa, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.210000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.700000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.430000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e79c4b6-c687-466a-a596-15718634e682 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e79c4b6-c687-466a-a596-15718634e682 231s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/99e1c7f3-d5fc-45d0-b08e-a35f6d30322b (::1) 0.980000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.030000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-16162a27-be2b-41a9-bcfc-a1a0181ca72f.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42519 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37115 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: 16162a27-be2b-41a9-bcfc-a1a0181ca72f, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.680000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 5.010000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.310000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.550000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16162a27-be2b-41a9-bcfc-a1a0181ca72f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16162a27-be2b-41a9-bcfc-a1a0181ca72f 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 7.110000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 231s from ipykernel import kernelapp as app 231s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 231s from .connect import * # noqa: F403 231s ^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 231s import json 231s File "/usr/lib/python3.13/json/__init__.py", line 106, in 231s from .decoder import JSONDecoder, JSONDecodeError 231s File "/usr/lib/python3.13/json/decoder.py", line 5, in 231s from json import scanner 231s File "", line 1360, in _find_and_load 231s File "", line 1331, in _find_and_load_unlocked 231s File "", line 935, in _load_unlocked 231s File "", line 1019, in exec_module 231s File "", line 1115, in get_code 231s File "", line 1215, in get_data 231s KeyboardInterrupt 231s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.670000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-ae30072c-3b53-4ead-aa10-3b445ba97b6a.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35051 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45415 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae30072c-3b53-4ead-aa10-3b445ba97b6a, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16162a27-be2b-41a9-bcfc-a1a0181ca72f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16162a27-be2b-41a9-bcfc-a1a0181ca72f 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 16.630000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.430000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae30072c-3b53-4ead-aa10-3b445ba97b6a 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae30072c-3b53-4ead-aa10-3b445ba97b6a 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5 (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9b5dee1a-ce89-420a-8b3f-bf8dc6505dd5', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 236, in 231s magic_check = re.compile('([*?[])') 231s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 231s return _compile(pattern, flags) 231s File "/usr/lib/python3.13/re/__init__.py", line 351, in _compile 231s if flags & DEBUG: 231s ~~~~~~^~~~~~~ 231s File "/usr/lib/python3.13/enum.py", line 1616, in __and__ 231s return self.__class__(value & other_value) 231s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3.13/enum.py", line 695, in __call__ 231s def __call__(cls, value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None): 231s 231s KeyboardInterrupt 231s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 231s 231s @self.addCleanup 231s def cleanup_sessions(): 231s for session in self.sess_api.list().json(): 231s > self.sess_api.delete(session['id']) 231s 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 231s return self._req('DELETE', id) 231s ^^^^^^^^^^^^^^^^^^^^^^^ 231s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 231s response.raise_for_status() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def raise_for_status(self): 231s """Raises :class:`HTTPError`, if one occurred.""" 231s 231s http_error_msg = "" 231s if isinstance(self.reason, bytes): 231s # We attempt to decode utf-8 first because some servers 231s # choose to localize their reason strings. If the string 231s # isn't utf-8, we fall back to iso-8859-1 for all other 231s # encodings. (See PR #3538) 231s try: 231s reason = self.reason.decode("utf-8") 231s except UnicodeDecodeError: 231s reason = self.reason.decode("iso-8859-1") 231s else: 231s reason = self.reason 231s 231s if 400 <= self.status_code < 500: 231s http_error_msg = ( 231s f"{self.status_code} Client Error: {reason} for url: {self.url}" 231s ) 231s 231s elif 500 <= self.status_code < 600: 231s http_error_msg = ( 231s f"{self.status_code} Server Error: {reason} for url: {self.url}" 231s ) 231s 231s if http_error_msg: 231s > raise HTTPError(http_error_msg, response=self) 231s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d9f9c846-a89c-45f9-949f-02c5b4fda32d 231s 231s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 231s ----------------------------- Captured stderr call ----------------------------- 231s Traceback (most recent call last): 231s ------------------------------ Captured log call ------------------------------- 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 231s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7soabx_j/runtime/kernel-c0cb0a52-eefa-4cac-834a-a1775df578f7.json'] 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59029 231s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38043 231s INFO NotebookApp:kernelmanager.py:179 Kernel started: c0cb0a52-eefa-4cac-834a-a1775df578f7, name: python3 231s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7soabx_j/notebooks/foo'} 231s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.870000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d9f9c846-a89c-45f9-949f-02c5b4fda32d (::1) 2.580000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 231s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 231s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c0cb0a52-eefa-4cac-834a-a1775df578f7 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0cb0a52-eefa-4cac-834a-a1775df578f7 231s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d9f9c846-a89c-45f9-949f-02c5b4fda32d (::1) 231s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d9f9c846-a89c-45f9-949f-02c5b4fda32d', version='HTTP/1.1', remote_ip='::1') 231s Traceback (most recent call last): 231s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 231s result = await result 231s ^^^^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 231s future.result() 231s ~~~~~~~~~~~~~^^ 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 231s yield maybe_future(sm.delete_session(session_id)) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 231s yielded = self.gen.throw(exc) 231s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 231s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 231s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 231s value = future.result() 231s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 231s raise self._exception.with_traceback(self._exception_tb) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 231s result = coro.send(None) 231s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 231s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 231s raise km.ready.exception() # type: ignore[misc] 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 231s await kernel_awaitable 231s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 231s result = await obj 231s ^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 231s raise e 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 231s out = await method(self, *args, **kwargs) 231s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 231s await self._async_finish_shutdown(restart=restart) 231s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 231s await asyncio.wait_for( 231s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 231s ) 231s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 231s async with timeouts.timeout(timeout): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^ 231s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 231s raise RuntimeError("Timeout should be used inside a task") 231s RuntimeError: Timeout should be used inside a task 231s WARNING NotebookApp:handlers.py:612 Unhandled error 231s ERROR NotebookApp:log.py:55 { 231s "Host": "localhost:12341", 231s "Accept": "*/*", 231s "User-Agent": "python-requests/2.32.5" 231s } 231s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d9f9c846-a89c-45f9-949f-02c5b4fda32d (::1) 7.010000ms referer=None 231s --------------------------- Captured stderr teardown --------------------------- 231s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 231s return _run_code(code, main_globals, None, 231s "__main__", mod_spec) 231s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 231s exec(code, run_globals) 231s ~~~~^^^^^^^^^^^^^^^^^^^ 231s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 231s from pathlib import Path 231s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 231s from ._abc import * 231s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 231s from glob import _Globber, _no_recurse_symlinks 231s File "/usr/lib/python3.13/glob.py", line 5, in 231s import re 231s File "/usr/lib/python3.13/re/__init__.py", line 381, in 231s import copyreg 231s File "", line 1360, in _find_and_load 231s File "", line 1322, in _find_and_load_unlocked 231s File "", line 1262, in _find_spec 231s File "", line 1556, in find_spec 231s File "", line 1530, in _get_spec 231s File "", line 1629, in find_spec 231s File "", line 152, in _path_stat 231s KeyboardInterrupt 231s ---------------------------- Captured log teardown ----------------------------- 231s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c9b8929-140a-44ae-a59a-b46b040f9234 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b0aa6408-2d46-4cbe-a8da-8e75b4fc34b6 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82ea9bb6-7209-4136-a486-e87bea62e6fa 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16162a27-be2b-41a9-bcfc-a1a0181ca72f 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a055601-23d2-49fd-bba6-124bf4277568 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae30072c-3b53-4ead-aa10-3b445ba97b6a 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c0cb0a52-eefa-4cac-834a-a1775df578f7 231s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e79c4b6-c687-466a-a596-15718634e682 231s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 231s =============================== warnings summary =============================== 231s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 231s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 231s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 231s return LooseVersion(v) >= LooseVersion(check) 231s 231s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 231s services/kernels/tests/test_kernels_api.py: 72 warnings 231s services/sessions/tests/test_sessions_api.py: 106 warnings 231s /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). 231s dt = unaware(*args, **kwargs) 231s 231s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 231s /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 231s pytestmark = pytest.mark.integration_tests 231s 231s services/kernels/tests/test_kernels_api.py: 6 warnings 231s services/sessions/tests/test_sessions_api.py: 6 warnings 231s /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 231s policy = events.get_event_loop_policy() 231s 231s services/kernels/tests/test_kernels_api.py: 24 warnings 231s services/sessions/tests/test_sessions_api.py: 19 warnings 231s /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 231s loop = events.get_event_loop_policy().get_event_loop() 231s 231s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 231s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 231s loop.make_current() 231s 231s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 231s =========================== short test summary info ============================ 231s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 231s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 231s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 231s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 231s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 231s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 231s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 231s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 231s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 231s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 231s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 231s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 231s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 231s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 231s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 231s ===== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 5.80s ===== 232s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 232s *** 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 235s ============================= test session starts ============================== 235s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 235s rootdir: /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp 235s plugins: typeguard-4.4.4 235s collected 330 items / 305 deselected / 25 selected 235s run-last-failure: rerun previous 25 failures 235s 236s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 238s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 238s 238s ==================================== ERRORS ==================================== 238s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 238s 238s self = 238s 238s def tearDown(self): 238s for k in self.kern_api.list().json(): 238s > self.kern_api.shutdown(k['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 18, in 238s from collections import namedtuple 238s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 238s from reprlib import recursive_repr as _recursive_repr 238s File "", line 1360, in _find_and_load 238s File "", line 1322, in _find_and_load_unlocked 238s File "", line 1262, in _find_spec 238s File "", line 1556, in find_spec 238s File "", line 1530, in _get_spec 238s File "", line 1662, in find_spec 238s File "", line 166, in _path_isfile 238s File "", line 158, in _path_is_mode_type 238s File "", line 152, in _path_stat 238s KeyboardInterrupt 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 238s import jupyter_client 238s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 238s from .asynchronous import AsyncKernelClient 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 238s from .client import AsyncKernelClient # noqa 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 238s import zmq.asyncio 238s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 238s import asyncio 238s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 238s from .base_events import * 238s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 238s import ssl 238s File "/usr/lib/python3.13/ssl.py", line 123, in 238s _IntEnum._convert_( 238s ~~~~~~~~~~~~~~~~~~^ 238s '_SSLMethod', __name__, 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s lambda name: name.startswith('PROTOCOL_') and name != 'PROTOCOL_SSLv23', 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s source=_ssl) 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.13/enum.py", line 898, in _convert_ 238s def _convert_(cls, name, module, filter, source=None, *, boundary=None, as_global=False): 238s 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-4adceb33-8ac6-49e5-be2e-b07093c09ca7.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33765 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58607 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4adceb33-8ac6-49e5-be2e-b07093c09ca7, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-2bf3287c-cfa1-4051-bfb0-5e13a102ac1f.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44505 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51529 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.130000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f 238s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f/interrupt (::1) 1.010000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 238s yield maybe_future(km.restart_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 238s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 238s await ensure_async(kernel.restart_kernel(now=now)) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 238s await self._async_shutdown_kernel(now=now, restart=True) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f/restart (::1) 8.480000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 238s yielded = ctx_run(next, result) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 (::1) 6.220000ms referer=None 238s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 238s 238s self = 238s 238s def tearDown(self): 238s for k in self.kern_api.list().json(): 238s > self.kern_api.shutdown(k['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 18, in 238s from collections import namedtuple 238s File "/usr/lib/python3.13/collections/__init__.py", line 989, in 238s class ChainMap(_collections_abc.MutableMapping): 238s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 238s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 238s KeyboardInterrupt 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 238s import jupyter_client 238s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 238s from .asynchronous import AsyncKernelClient 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 238s from .client import AsyncKernelClient # noqa 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 238s import zmq.asyncio 238s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 238s import asyncio 238s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 238s from .base_events import * 238s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 238s import ssl 238s File "/usr/lib/python3.13/ssl.py", line 100, in 238s import _ssl # if we can't import it, let the error propagate 238s ^^^^^^^^^^^ 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-ab75f9fb-9cac-4a17-919e-395eb4deaf23.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45603 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40359 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: ab75f9fb-9cac-4a17-919e-395eb4deaf23, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.620000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-35e15e2b-97a1-46af-8697-c8a23b26df90.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59553 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59711 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35e15e2b-97a1-46af-8697-c8a23b26df90, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.140000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.830000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 35e15e2b-97a1-46af-8697-c8a23b26df90 238s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90/interrupt (::1) 2.850000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 238s yield maybe_future(km.restart_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 238s result = coro.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 238s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 238s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 238s yield self # This tells Task to wait for completion. 238s ^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 238s await ensure_async(kernel.restart_kernel(now=now)) 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 238s await self._async_shutdown_kernel(now=now, restart=True) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90/restart (::1) 6.500000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.430000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33487 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51741 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.210000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.930000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722 (::1) 3.690000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 238s from subprocess import PIPE, Popen 238s File "/usr/lib/python3.13/subprocess.py", line 125, in 238s import selectors 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 921, in _load_unlocked 238s File "", line 819, in module_from_spec 238s File "", line 798, in _init_module_attrs 238s File "", line 638, in cached 238s File "", line 642, in _get_cached 238s File "", line 540, in cache_from_source 238s KeyboardInterrupt 238s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-081d1749-3b71-4992-8028-0de612e4cbc5.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36707 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33609 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 081d1749-3b71-4992-8028-0de612e4cbc5, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.810000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.140000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.030000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.400000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c2952cb-f573-4445-b102-89b546d9fe22 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c2952cb-f573-4445-b102-89b546d9fe22 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c (::1) 1.010000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 081d1749-3b71-4992-8028-0de612e4cbc5 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 081d1749-3b71-4992-8028-0de612e4cbc5 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 6.520000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 238s from subprocess import PIPE, Popen 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1152, in get_code 238s File "", line 781, in _compile_bytecode 238s KeyboardInterrupt 238s =================================== FAILURES =================================== 238s ______________________ KernelAPITest.test_default_kernel _______________________ 238s 238s self = 238s 238s def tearDown(self): 238s for k in self.kern_api.list().json(): 238s > self.kern_api.shutdown(k['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fc89f195-894f-4e95-83a4-9d54e7bd6fc7 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log setup ------------------------------ 238s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpx9_o78i3/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpx9_o78i3/etc/jupyter'] for config files 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx9_o78i3/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx9_o78i3/config 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx9_o78i3/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx9_o78i3/config 238s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpx9_o78i3/notebooks 238s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 238s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 238s WARNING NotebookApp:handlers.py:612 Forbidden 238s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.950000ms referer=None 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-fc89f195-894f-4e95-83a4-9d54e7bd6fc7.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49787 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44061 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc89f195-894f-4e95-83a4-9d54e7bd6fc7, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.090000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.540000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc89f195-894f-4e95-83a4-9d54e7bd6fc7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc89f195-894f-4e95-83a4-9d54e7bd6fc7 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fc89f195-894f-4e95-83a4-9d54e7bd6fc7 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fc89f195-894f-4e95-83a4-9d54e7bd6fc7', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 238s yielded = ctx_run(next, result) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 126, in 238s from . import _compiler, _parser 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1152, in get_code 238s File "", line 781, in _compile_bytecode 238s KeyboardInterrupt 238s ______________________ KernelAPITest.test_kernel_handler _______________________ 238s 238s self = 238s 238s def test_kernel_handler(self): 238s # GET kernel with given id 238s kid = self.kern_api.start().json()['id'] 238s r = self.kern_api.get(kid) 238s kern1 = r.json() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(kern1, dict) 238s self.assertIn('id', kern1) 238s self.assertEqual(kern1['id'], kid) 238s 238s # Request a bad kernel id and check that a JSON 238s # message is returned! 238s bad_id = '111-111-111-111-111' 238s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 238s self.kern_api.get(bad_id) 238s 238s # DELETE kernel with id 238s > r = self.kern_api.shutdown(kid) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ce66df42-342a-4433-b956-37b95c988206 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 374, in 238s @functools.lru_cache(_MAXCACHE) 238s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 238s File "/usr/lib/python3.13/functools.py", line 547, in decorating_function 238s return update_wrapper(wrapper, user_function) 238s File "/usr/lib/python3.13/functools.py", line 53, in update_wrapper 238s value = getattr(wrapped, attr) 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-ce66df42-342a-4433-b956-37b95c988206.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37095 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39899 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: ce66df42-342a-4433-b956-37b95c988206, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.100000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ce66df42-342a-4433-b956-37b95c988206 (::1) 2.390000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s 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 238s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 238s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.400000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce66df42-342a-4433-b956-37b95c988206 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce66df42-342a-4433-b956-37b95c988206 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ce66df42-342a-4433-b956-37b95c988206 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ce66df42-342a-4433-b956-37b95c988206', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 238s yielded = ctx_run(next, result) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ce66df42-342a-4433-b956-37b95c988206 (::1) 7.030000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.310000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc89f195-894f-4e95-83a4-9d54e7bd6fc7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc89f195-894f-4e95-83a4-9d54e7bd6fc7 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fc89f195-894f-4e95-83a4-9d54e7bd6fc7 (::1) 0.990000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce66df42-342a-4433-b956-37b95c988206 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce66df42-342a-4433-b956-37b95c988206 238s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 238s 238s self = 238s 238s def test_main_kernel_handler(self): 238s # POST request 238s r = self.kern_api.start() 238s kern1 = r.json() 238s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 238s self.assertEqual(r.status_code, 201) 238s self.assertIsInstance(kern1, dict) 238s 238s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 238s expected_csp = '; '.join([ 238s "frame-ancestors 'self'", 238s 'report-uri ' + report_uri, 238s "default-src 'none'" 238s ]) 238s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 238s 238s # GET request 238s r = self.kern_api.list() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(r.json(), list) 238s self.assertEqual(r.json()[0]['id'], kern1['id']) 238s self.assertEqual(r.json()[0]['name'], kern1['name']) 238s 238s # create another kernel and check that they both are added to the 238s # list of kernels from a GET request 238s kern2 = self.kern_api.start().json() 238s assert isinstance(kern2, dict) 238s r = self.kern_api.list() 238s kernels = r.json() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(kernels, list) 238s self.assertEqual(len(kernels), 2) 238s 238s # Interrupt a kernel 238s r = self.kern_api.interrupt(kern2['id']) 238s self.assertEqual(r.status_code, 204) 238s 238s # Restart a kernel 238s > r = self.kern_api.restart(kern2['id']) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 238s return self._req('POST', url_path_join(id, 'restart')) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f/restart 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 18, in 238s from collections import namedtuple 238s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 238s from reprlib import recursive_repr as _recursive_repr 238s File "", line 1360, in _find_and_load 238s File "", line 1322, in _find_and_load_unlocked 238s File "", line 1262, in _find_spec 238s File "", line 1556, in find_spec 238s File "", line 1530, in _get_spec 238s File "", line 1662, in find_spec 238s File "", line 166, in _path_isfile 238s File "", line 158, in _path_is_mode_type 238s File "", line 152, in _path_stat 238s KeyboardInterrupt 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 238s import jupyter_client 238s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 238s from .asynchronous import AsyncKernelClient 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 238s from .client import AsyncKernelClient # noqa 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 238s import zmq.asyncio 238s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 238s import asyncio 238s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 238s from .base_events import * 238s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 238s import ssl 238s File "/usr/lib/python3.13/ssl.py", line 123, in 238s _IntEnum._convert_( 238s ~~~~~~~~~~~~~~~~~~^ 238s '_SSLMethod', __name__, 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s lambda name: name.startswith('PROTOCOL_') and name != 'PROTOCOL_SSLv23', 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s source=_ssl) 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.13/enum.py", line 898, in _convert_ 238s def _convert_(cls, name, module, filter, source=None, *, boundary=None, as_global=False): 238s 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-4adceb33-8ac6-49e5-be2e-b07093c09ca7.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33765 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58607 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4adceb33-8ac6-49e5-be2e-b07093c09ca7, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx9_o78i3/runtime/kernel-2bf3287c-cfa1-4051-bfb0-5e13a102ac1f.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44505 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51529 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.130000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f 238s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f/interrupt (::1) 1.010000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 238s yield maybe_future(km.restart_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 238s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 238s await ensure_async(kernel.restart_kernel(now=now)) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 238s await self._async_shutdown_kernel(now=now, restart=True) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f/restart (::1) 8.480000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 238s yielded = ctx_run(next, result) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 (::1) 6.220000ms referer=None 238s ________________________ KernelAPITest.test_no_kernels _________________________ 238s 238s self = 238s 238s def test_no_kernels(self): 238s """Make sure there are no kernels running at the start""" 238s kernels = self.kern_api.list().json() 238s > self.assertEqual(kernels, []) 238s E AssertionError: Lists differ: [{'id': '4adceb33-8ac6-49e5-be2e-b07093c09[281 chars]: 0}] != [] 238s E 238s E First list contains 2 additional elements. 238s E First extra element 0: 238s E {'id': '4adceb33-8ac6-49e5-be2e-b07093c09ca7', 'name': 'python3', 'last_activity': '2026-01-24T03:32:19.729335Z', 'execution_state': 'starting', 'connections': 0} 238s E 238s E + [] 238s E - [{'connections': 0, 238s E - 'execution_state': 'starting', 238s E - 'id': '4adceb33-8ac6-49e5-be2e-b07093c09ca7', 238s E - 'last_activity': '2026-01-24T03:32:19.729335Z', 238s E - 'name': 'python3'}, 238s E - {'connections': 0, 238s E - 'execution_state': 'starting', 238s E - 'id': '2bf3287c-cfa1-4051-bfb0-5e13a102ac1f', 238s E - 'last_activity': '2026-01-24T03:32:19.751347Z', 238s E - 'name': 'python3'}] 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.190000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4adceb33-8ac6-49e5-be2e-b07093c09ca7 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4adceb33-8ac6-49e5-be2e-b07093c09ca7 (::1) 1.160000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2bf3287c-cfa1-4051-bfb0-5e13a102ac1f 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2bf3287c-cfa1-4051-bfb0-5e13a102ac1f (::1) 1.220000ms 238s ---------------------------- Captured log teardown ----------------------------- 238s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 238s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 238s _____________________ AsyncKernelAPITest.test_connections ______________________ 238s 238s self = 238s 238s def tearDown(self): 238s for k in self.kern_api.list().json(): 238s > self.kern_api.shutdown(k['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log setup ------------------------------ 238s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpaopyjh0_/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpaopyjh0_/etc/jupyter'] for config files 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpaopyjh0_/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpaopyjh0_/config 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpaopyjh0_/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpaopyjh0_/config 238s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpaopyjh0_/notebooks 238s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 238s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 238s WARNING NotebookApp:handlers.py:612 Forbidden 238s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.130000ms referer=None 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-9a38f992-d142-4e8b-97ac-d5fef8d0cd5a.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35137 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34729 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.600000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 2.270000ms 238s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a/channels 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 238s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55669 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (busy) 238s 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/'}]} 238s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a) to 5.4 (client). 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (idle) 238s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a/channels (::1) 517.160000ms 238s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a/channels 238s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34729 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55669 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35137 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35833 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55669 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35137 238s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 238s Setting websocket_ping_timeout=30000 238s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 1.860000ms 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (busy) 238s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (busy) 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (idle) 238s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:kernelmanager.py:423 activity on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a: status (idle) 238s DEBUG NotebookApp:handlers.py:579 Websocket closed 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:91787a98-129985fcc2cc909e4235e91c 238s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:91787a98-129985fcc2cc909e4235e91c 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:iopub 238s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:iopub 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:iopub 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 1.150000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 2.350000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a:91787a98-129985fcc2cc909e4235e91c 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 238s 238s self = 238s 238s def tearDown(self): 238s for k in self.kern_api.list().json(): 238s > self.kern_api.shutdown(k['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-4165d710-5cab-47a9-8e09-49e8ff7d3fab.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53927 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56793 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4165d710-5cab-47a9-8e09-49e8ff7d3fab, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.960000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.220000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9a38f992-d142-4e8b-97ac-d5fef8d0cd5a (::1) 0.980000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4165d710-5cab-47a9-8e09-49e8ff7d3fab (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4165d710-5cab-47a9-8e09-49e8ff7d3fab', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4165d710-5cab-47a9-8e09-49e8ff7d3fab (::1) 14.110000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1115, in get_code 238s File "", line 1214, in get_data 238s KeyboardInterrupt 238s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 238s 238s self = 238s 238s def test_kernel_handler(self): 238s # GET kernel with given id 238s kid = self.kern_api.start().json()['id'] 238s r = self.kern_api.get(kid) 238s kern1 = r.json() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(kern1, dict) 238s self.assertIn('id', kern1) 238s self.assertEqual(kern1['id'], kid) 238s 238s # Request a bad kernel id and check that a JSON 238s # message is returned! 238s bad_id = '111-111-111-111-111' 238s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 238s self.kern_api.get(bad_id) 238s 238s # DELETE kernel with id 238s > r = self.kern_api.shutdown(kid) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-0657cfe4-c484-4c5b-899c-d62b2599ee4d.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51261 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33555 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0657cfe4-c484-4c5b-899c-d62b2599ee4d, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.500000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d (::1) 5.260000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s 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 238s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 238s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.720000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d (::1) 12.910000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.660000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4165d710-5cab-47a9-8e09-49e8ff7d3fab (::1) 2.770000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0657cfe4-c484-4c5b-899c-d62b2599ee4d (::1) 1.060000ms 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 3, in 238s import contextlib 238s File "/usr/lib/python3.13/contextlib.py", line 342, in 238s class closing(AbstractContextManager): 238s ...<21 lines>... 238s self.thing.close() 238s File "/usr/lib/python3.13/abc.py", line 107, in __new__ 238s _abc_init(cls) 238s ~~~~~~~~~^^^^^ 238s KeyboardInterrupt 238s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 238s 238s self = 238s 238s def test_main_kernel_handler(self): 238s # POST request 238s r = self.kern_api.start() 238s kern1 = r.json() 238s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 238s self.assertEqual(r.status_code, 201) 238s self.assertIsInstance(kern1, dict) 238s 238s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 238s expected_csp = '; '.join([ 238s "frame-ancestors 'self'", 238s 'report-uri ' + report_uri, 238s "default-src 'none'" 238s ]) 238s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 238s 238s # GET request 238s r = self.kern_api.list() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(r.json(), list) 238s self.assertEqual(r.json()[0]['id'], kern1['id']) 238s self.assertEqual(r.json()[0]['name'], kern1['name']) 238s 238s # create another kernel and check that they both are added to the 238s # list of kernels from a GET request 238s kern2 = self.kern_api.start().json() 238s assert isinstance(kern2, dict) 238s r = self.kern_api.list() 238s kernels = r.json() 238s self.assertEqual(r.status_code, 200) 238s assert isinstance(kernels, list) 238s self.assertEqual(len(kernels), 2) 238s 238s # Interrupt a kernel 238s r = self.kern_api.interrupt(kern2['id']) 238s self.assertEqual(r.status_code, 204) 238s 238s # Restart a kernel 238s > r = self.kern_api.restart(kern2['id']) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 238s return self._req('POST', url_path_join(id, 'restart')) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90/restart 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 18, in 238s from collections import namedtuple 238s File "/usr/lib/python3.13/collections/__init__.py", line 989, in 238s class ChainMap(_collections_abc.MutableMapping): 238s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 238s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 238s KeyboardInterrupt 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 238s import jupyter_client 238s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 238s from .asynchronous import AsyncKernelClient 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 238s from .client import AsyncKernelClient # noqa 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 238s import zmq.asyncio 238s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 238s import asyncio 238s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 238s from .base_events import * 238s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 238s import ssl 238s File "/usr/lib/python3.13/ssl.py", line 100, in 238s import _ssl # if we can't import it, let the error propagate 238s ^^^^^^^^^^^ 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-ab75f9fb-9cac-4a17-919e-395eb4deaf23.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45603 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40359 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: ab75f9fb-9cac-4a17-919e-395eb4deaf23, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.620000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaopyjh0_/runtime/kernel-35e15e2b-97a1-46af-8697-c8a23b26df90.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59553 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59711 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35e15e2b-97a1-46af-8697-c8a23b26df90, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.140000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.830000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 35e15e2b-97a1-46af-8697-c8a23b26df90 238s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90/interrupt (::1) 2.850000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 238s yield maybe_future(km.restart_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 238s result = coro.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 238s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 238s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 238s yield self # This tells Task to wait for completion. 238s ^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 238s await ensure_async(kernel.restart_kernel(now=now)) 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 238s await self._async_shutdown_kernel(now=now, restart=True) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90/restart (::1) 6.500000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.430000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 238s yield maybe_future(km.shutdown_kernel(kernel_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 238s 238s self = 238s 238s def test_no_kernels(self): 238s """Make sure there are no kernels running at the start""" 238s kernels = self.kern_api.list().json() 238s > self.assertEqual(kernels, []) 238s E AssertionError: Lists differ: [{'id': 'ab75f9fb-9cac-4a17-919e-395eb4dea[281 chars]: 0}] != [] 238s E 238s E First list contains 2 additional elements. 238s E First extra element 0: 238s E {'id': 'ab75f9fb-9cac-4a17-919e-395eb4deaf23', 'name': 'python3', 'last_activity': '2026-01-24T03:32:20.707686Z', 'execution_state': 'starting', 'connections': 0} 238s E 238s E + [] 238s E - [{'connections': 0, 238s E - 'execution_state': 'starting', 238s E - 'id': 'ab75f9fb-9cac-4a17-919e-395eb4deaf23', 238s E - 'last_activity': '2026-01-24T03:32:20.707686Z', 238s E - 'name': 'python3'}, 238s E - {'connections': 0, 238s E - 'execution_state': 'starting', 238s E - 'id': '35e15e2b-97a1-46af-8697-c8a23b26df90', 238s E - 'last_activity': '2026-01-24T03:32:20.728691Z', 238s E - 'name': 'python3'}] 238s 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.470000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.050000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ab75f9fb-9cac-4a17-919e-395eb4deaf23 (::1) 0.800000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35e15e2b-97a1-46af-8697-c8a23b26df90 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35e15e2b-97a1-46af-8697-c8a23b26df90 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/35e15e2b-97a1-46af-8697-c8a23b26df90 (::1) 1.610000ms 238s ---------------------------- Captured log teardown ----------------------------- 238s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0657cfe4-c484-4c5b-899c-d62b2599ee4d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ab75f9fb-9cac-4a17-919e-395eb4deaf23 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a38f992-d142-4e8b-97ac-d5fef8d0cd5a 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4165d710-5cab-47a9-8e09-49e8ff7d3fab 238s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 238s __________________________ SessionAPITest.test_create __________________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log setup ------------------------------ 238s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpxdc0xp0b/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpxdc0xp0b/etc/jupyter'] for config files 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxdc0xp0b/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxdc0xp0b/config 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxdc0xp0b/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxdc0xp0b/config 238s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpxdc0xp0b/notebooks 238s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 238s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 238s WARNING NotebookApp:handlers.py:612 Forbidden 238s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.890000ms referer=None 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 238s from .connect import * # noqa: F403 238s ^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 238s import json 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1109, in get_code 238s File "", line 1232, in path_stats 238s File "", line 152, in _path_stat 238s KeyboardInterrupt 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-b4194ee1-3b38-4c92-a413-bae450e545b0.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42105 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33829 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: b4194ee1-3b38-4c92-a413-bae450e545b0, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxdc0xp0b/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.840000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc (::1) 0.890000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.240000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4194ee1-3b38-4c92-a413-bae450e545b0 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4194ee1-3b38-4c92-a413-bae450e545b0 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc (::1) 7.250000ms referer=None 238s __________________ SessionAPITest.test_create_console_session __________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8f243659-b338-48b7-bbe9-eb08626201a4 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s File "", line 1513, in _path_importer_cache 238s KeyError: '/usr/lib/python3/dist-packages/ipykernel' 238s 238s During handling of the above exception, another exception occurred: 238s 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40911 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46127 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxdc0xp0b/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.310000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b4194ee1-3b38-4c92-a413-bae450e545b0 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b4194ee1-3b38-4c92-a413-bae450e545b0 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ad768155-bd17-43a0-837c-6d1af9cfd5fc (::1) 1.190000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8f243659-b338-48b7-bbe9-eb08626201a4 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8f243659-b338-48b7-bbe9-eb08626201a4', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 238s from ipykernel import kernelapp as app 238s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 238s from ._version import ( 238s ...<4 lines>... 238s ) 238s File "", line 1360, in _find_and_load 238s File "", line 1322, in _find_and_load_unlocked 238s File "", line 1262, in _find_spec 238s File "", line 1556, in find_spec 238s File "", line 1528, in _get_spec 238s File "", line 1515, in _path_importer_cache 238s File "", line 1491, in _path_hooks 238s File "", line 79, in __init__ 238s File "", line 152, in _path_stat 238s KeyboardInterrupt 238s ____________________ SessionAPITest.test_create_deprecated _____________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3f3833db-919c-4da7-9a21-c0f12db00fa4 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-4c9bd861-3127-4d13-8e1f-3c8c6ecd6061.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59469 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42691 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c9bd861-3127-4d13-8e1f-3c8c6ecd6061, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxdc0xp0b/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.650000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.450000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f1e7823-6a8a-4fc0-8070-0f58d2cb8acf 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8f243659-b338-48b7-bbe9-eb08626201a4 (::1) 1.090000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c9bd861-3127-4d13-8e1f-3c8c6ecd6061 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c9bd861-3127-4d13-8e1f-3c8c6ecd6061 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3f3833db-919c-4da7-9a21-c0f12db00fa4 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3f3833db-919c-4da7-9a21-c0f12db00fa4', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 238s from ._local import * 238s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 238s class PureWindowsPath(PurePath): 238s ...<7 lines>... 238s __slots__ = () 238s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 238s import ntpath 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1115, in get_code 238s File "", line 1214, in get_data 238s KeyboardInterrupt 238s ___________________ SessionAPITest.test_create_file_session ____________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-24d16ef4-7e46-4b79-a797-57cb8f46d5d8.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38467 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52291 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24d16ef4-7e46-4b79-a797-57cb8f46d5d8, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxdc0xp0b/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.370000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c9bd861-3127-4d13-8e1f-3c8c6ecd6061 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c9bd861-3127-4d13-8e1f-3c8c6ecd6061 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3f3833db-919c-4da7-9a21-c0f12db00fa4 (::1) 1.140000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722 (::1) 7.620000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 238s from ._local import * 238s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 238s class PureWindowsPath(PurePath): 238s ...<7 lines>... 238s __slots__ = () 238s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 238s import ntpath 238s File "/usr/lib/python3.13/ntpath.py", line 514, in 238s from nt import _getfullpathname 238s File "", line 1360, in _find_and_load 238s File "", line 1322, in _find_and_load_unlocked 238s File "", line 1262, in _find_spec 238s File "", line 1556, in find_spec 238s File "", line 1530, in _get_spec 238s File "", line 1629, in find_spec 238s File "", line 152, in _path_stat 238s KeyboardInterrupt 238s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 238s 238s self = 238s 238s def test_create_with_kernel_id(self): 238s # create a new kernel 238s r = self.request('POST', 'api/kernels') 238s r.raise_for_status() 238s kernel = r.json() 238s 238s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 238s self.assertEqual(resp.status_code, 201) 238s newsession = resp.json() 238s self.assertIn('id', newsession) 238s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 238s self.assertEqual(newsession['kernel']['id'], kernel['id']) 238s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 238s 238s sessions = self.sess_api.list().json() 238s > self.assertEqual(sessions, [newsession]) 238s E AssertionError: Lists differ: [{'id': 'd617d754-797d-4aa3-bb54-e99785b1d722', 'p[553 chars]ne}}] != [{'id': 'f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', 'p[279 chars]ne}}] 238s E 238s E First differing element 0: 238s E {'id': 'd617d754-797d-4aa3-bb54-e99785b1d722', 'p[218 chars]: 0}} 238s E {'id': 'f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', 'p[278 chars]one}} 238s E 238s E First list contains 1 additional elements. 238s E First extra element 1: 238s E {'id': 'f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac', 'name': 'python3', 'last_activity': '2026-01-24T03:32:21.190181Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 238s E 238s E Diff is 830 characters long. Set self.maxDiff to None to see it. 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33487 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51741 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.210000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.930000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24d16ef4-7e46-4b79-a797-57cb8f46d5d8 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d617d754-797d-4aa3-bb54-e99785b1d722 (::1) 3.690000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Exception ignored in: .cb at 0xe53a174504a0> 238s Traceback (most recent call last): 238s File "", line 454, in cb 238s KeyboardInterrupt: 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.030000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-ff90ea8f-9572-4ca3-85ff-578817d7207d.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51267 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38163 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff90ea8f-9572-4ca3-85ff-578817d7207d, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.880000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c17d1ac-4faf-4dd9-aa39-3cefc83d41ac 238s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 1.330000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.090000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff90ea8f-9572-4ca3-85ff-578817d7207d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff90ea8f-9572-4ca3-85ff-578817d7207d 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 6.790000ms referer=None 238s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.500000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxdc0xp0b/runtime/kernel-39e95d55-f4e8-4d58-afe0-16ac59b13651.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59731 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54413 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 39e95d55-f4e8-4d58-afe0-16ac59b13651, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpxdc0xp0b/notebooks/foo'} 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff90ea8f-9572-4ca3-85ff-578817d7207d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff90ea8f-9572-4ca3-85ff-578817d7207d 238s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 20.580000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.760000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.340000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 39e95d55-f4e8-4d58-afe0-16ac59b13651 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 39e95d55-f4e8-4d58-afe0-16ac59b13651 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 238s yielded = self.gen.send(value) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 238s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 238s stopper = ensure_async(km.shutdown_kernel(now, restart)) 238s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 238s return _runner_map[name].run(inner) 238s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 238s return fut.result(None) 238s ~~~~~~~~~~^^^^^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 238s return self.__get_result() 238s ~~~~~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 238s raise self._exception 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f5d8d72f-5630-4f5b-bece-b1a8d92be7f9 (::1) 13.470000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 125, in 238s import enum 238s File "/usr/lib/python3.13/enum.py", line 23, in 238s class nonmember(object): 238s ...<4 lines>... 238s self.value = value 238s KeyboardInterrupt 238s _______________________ AsyncSessionAPITest.test_create ________________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log setup ------------------------------ 238s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpdjf5nvar/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpdjf5nvar/etc/jupyter'] for config files 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpdjf5nvar/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpdjf5nvar/config 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpdjf5nvar/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 238s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpdjf5nvar/config 238s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpdjf5nvar/notebooks 238s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 238s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 238s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 238s WARNING NotebookApp:handlers.py:612 Forbidden 238s ------------------------------ Captured log call ------------------------------- 238s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.970000ms referer=None 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38941 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57499 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpdjf5nvar/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.660000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.930000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c (::1) 0.790000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c (::1) 14.820000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 238s gc.collect() 238s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 238s 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 125, in 238s import enum 238s File "/usr/lib/python3.13/enum.py", line 1932, in 238s @_simple_enum(StrEnum) 238s ~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.13/enum.py", line 1805, in convert_class 238s enum_class = type(cls_name, (etype, ), body, boundary=boundary, _simple=True) 238s File "/usr/lib/python3.13/enum.py", line 505, in __new__ 238s return super().__new__(metacls, cls, bases, classdict, **kwds) 238s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s KeyboardInterrupt 238s _______________ AsyncSessionAPITest.test_create_console_session ________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/48e74a47-cdaf-47ed-acce-1f013e1359a2 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-7d972219-47a1-4dc5-b409-99fc63c203e7.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41863 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38313 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7d972219-47a1-4dc5-b409-99fc63c203e7, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpdjf5nvar/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.420000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.470000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d78f83d-f54a-4ad5-b3c1-ceebdb3f159d 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/098dce4e-d587-4211-b107-91b18f404b6c (::1) 5.110000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d972219-47a1-4dc5-b409-99fc63c203e7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d972219-47a1-4dc5-b409-99fc63c203e7 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/48e74a47-cdaf-47ed-acce-1f013e1359a2 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/48e74a47-cdaf-47ed-acce-1f013e1359a2', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/48e74a47-cdaf-47ed-acce-1f013e1359a2 (::1) 15.210000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 363, in 238s class partialmethod(object): 238s ...<66 lines>... 238s __class_getitem__ = classmethod(GenericAlias) 238s KeyboardInterrupt 238s /usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '/tmp/tmpxdc0xp0b/home' is not a writable location, using a temp directory. 238s warn("IPython parent '{0}' is not a writable location," 238s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/63e12672-476b-4284-98b4-62fdbca63200 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-80c1bede-3abd-4b0e-937f-927e82904503.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53415 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33183 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 80c1bede-3abd-4b0e-937f-927e82904503, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpdjf5nvar/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.010000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.510000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7d972219-47a1-4dc5-b409-99fc63c203e7 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7d972219-47a1-4dc5-b409-99fc63c203e7 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/48e74a47-cdaf-47ed-acce-1f013e1359a2 (::1) 1.110000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80c1bede-3abd-4b0e-937f-927e82904503 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80c1bede-3abd-4b0e-937f-927e82904503 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/63e12672-476b-4284-98b4-62fdbca63200 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/63e12672-476b-4284-98b4-62fdbca63200', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 238s import functools 238s File "/usr/lib/python3.13/functools.py", line 18, in 238s from collections import namedtuple 238s File "/usr/lib/python3.13/collections/__init__.py", line 35, in 238s from itertools import chain as _chain 238s KeyboardInterrupt 238s _________________ AsyncSessionAPITest.test_create_file_session _________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-9c2952cb-f573-4445-b102-89b546d9fe22.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51281 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42705 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9c2952cb-f573-4445-b102-89b546d9fe22, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpdjf5nvar/notebooks/foo'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.520000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80c1bede-3abd-4b0e-937f-927e82904503 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80c1bede-3abd-4b0e-937f-927e82904503 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63e12672-476b-4284-98b4-62fdbca63200 (::1) 2.220000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c2952cb-f573-4445-b102-89b546d9fe22 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c2952cb-f573-4445-b102-89b546d9fe22 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 125, in 238s import enum 238s File "", line 1360, in _find_and_load 238s File "", line 1331, in _find_and_load_unlocked 238s File "", line 935, in _load_unlocked 238s File "", line 1019, in exec_module 238s File "", line 1115, in get_code 238s File "", line 1215, in get_data 238s KeyboardInterrupt 238s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 238s 238s self = 238s 238s def test_create_with_kernel_id(self): 238s # create a new kernel 238s r = self.request('POST', 'api/kernels') 238s r.raise_for_status() 238s kernel = r.json() 238s 238s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 238s self.assertEqual(resp.status_code, 201) 238s newsession = resp.json() 238s self.assertIn('id', newsession) 238s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 238s self.assertEqual(newsession['kernel']['id'], kernel['id']) 238s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 238s 238s sessions = self.sess_api.list().json() 238s > self.assertEqual(sessions, [newsession]) 238s E AssertionError: Lists differ: [{'id': '14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c', 'p[553 chars]ne}}] != [{'id': '6c0ee610-ad46-4bd7-b56f-960d3d202e65', 'p[279 chars]ne}}] 238s E 238s E First differing element 0: 238s E {'id': '14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c', 'p[218 chars]: 0}} 238s E {'id': '6c0ee610-ad46-4bd7-b56f-960d3d202e65', 'p[278 chars]one}} 238s E 238s E First list contains 1 additional elements. 238s E First extra element 1: 238s E {'id': '6c0ee610-ad46-4bd7-b56f-960d3d202e65', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '081d1749-3b71-4992-8028-0de612e4cbc5', 'name': 'python3', 'last_activity': '2026-01-24T03:32:21.907865Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 238s E 238s E Diff is 830 characters long. Set self.maxDiff to None to see it. 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-081d1749-3b71-4992-8028-0de612e4cbc5.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36707 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33609 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 081d1749-3b71-4992-8028-0de612e4cbc5, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.810000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.140000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.030000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.400000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c2952cb-f573-4445-b102-89b546d9fe22 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c2952cb-f573-4445-b102-89b546d9fe22 238s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/14d5749f-fe37-4e56-9bfd-a7ad2c7d0a1c (::1) 1.010000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 081d1749-3b71-4992-8028-0de612e4cbc5 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 081d1749-3b71-4992-8028-0de612e4cbc5 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 6.520000ms referer=None 238s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ----------------------------- Captured stderr call ----------------------------- 238s Traceback (most recent call last): 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.570000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38987 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48837 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.370000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 081d1749-3b71-4992-8028-0de612e4cbc5 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 081d1749-3b71-4992-8028-0de612e4cbc5 238s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 1.300000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.050000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.310000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s ERROR NotebookApp:log.py:55 { 238s "Host": "localhost:12341", 238s "Accept": "*/*", 238s "User-Agent": "python-requests/2.32.5" 238s } 238s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 7.420000ms referer=None 238s --------------------------- Captured stderr teardown --------------------------- 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 238s from ._local import * 238s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 238s class PureWindowsPath(PurePath): 238s ...<7 lines>... 238s __slots__ = () 238s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 238s import ntpath 238s File "/usr/lib/python3.13/ntpath.py", line 45, in 238s from _winapi import ( 238s ...<2 lines>... 238s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 238s File "", line 1360, in _find_and_load 238s File "", line 1322, in _find_and_load_unlocked 238s File "", line 1262, in _find_spec 238s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 238s method_name = 'spec_for_{fullname}'.format(**locals()) 238s ~~~~~~^^ 238s KeyboardInterrupt 238s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 238s 238s @self.addCleanup 238s def cleanup_sessions(): 238s for session in self.sess_api.list().json(): 238s > self.sess_api.delete(session['id']) 238s 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 238s return self._req('DELETE', id) 238s ^^^^^^^^^^^^^^^^^^^^^^^ 238s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 238s response.raise_for_status() 238s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 238s 238s self = 238s 238s def raise_for_status(self): 238s """Raises :class:`HTTPError`, if one occurred.""" 238s 238s http_error_msg = "" 238s if isinstance(self.reason, bytes): 238s # We attempt to decode utf-8 first because some servers 238s # choose to localize their reason strings. If the string 238s # isn't utf-8, we fall back to iso-8859-1 for all other 238s # encodings. (See PR #3538) 238s try: 238s reason = self.reason.decode("utf-8") 238s except UnicodeDecodeError: 238s reason = self.reason.decode("iso-8859-1") 238s else: 238s reason = self.reason 238s 238s if 400 <= self.status_code < 500: 238s http_error_msg = ( 238s f"{self.status_code} Client Error: {reason} for url: {self.url}" 238s ) 238s 238s elif 500 <= self.status_code < 600: 238s http_error_msg = ( 238s f"{self.status_code} Server Error: {reason} for url: {self.url}" 238s ) 238s 238s if http_error_msg: 238s > raise HTTPError(http_error_msg, response=self) 238s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 238s 238s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 238s ------------------------------ Captured log call ------------------------------- 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.970000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 238s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdjf5nvar/runtime/kernel-323f632f-67dd-434d-9901-e8cef30a0435.json'] 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47951 238s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48151 238s INFO NotebookApp:kernelmanager.py:179 Kernel started: 323f632f-67dd-434d-9901-e8cef30a0435, name: python3 238s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpdjf5nvar/notebooks/foo'} 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa74d4c5-a2d5-4679-a9ca-9c3bfa825b4b 238s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 16.790000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.110000ms 238s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 238s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 323f632f-67dd-434d-9901-e8cef30a0435 238s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 323f632f-67dd-434d-9901-e8cef30a0435 238s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65 (::1) 238s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6c0ee610-ad46-4bd7-b56f-960d3d202e65', version='HTTP/1.1', remote_ip='::1') 238s Traceback (most recent call last): 238s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 238s result = await result 238s ^^^^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 238s future.result() 238s ~~~~~~~~~~~~~^^ 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 238s yield maybe_future(sm.delete_session(session_id)) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 238s yielded = self.gen.throw(exc) 238s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 238s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 238s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 238s value = future.result() 238s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 238s raise self._exception.with_traceback(self._exception_tb) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 238s result = coro.send(None) 238s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 238s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 238s raise km.ready.exception() # type: ignore[misc] 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 238s await kernel_awaitable 238s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 238s result = await obj 238s ^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 238s raise e 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 238s out = await method(self, *args, **kwargs) 238s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 238s await self._async_finish_shutdown(restart=restart) 238s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 238s await asyncio.wait_for( 238s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 238s ) 238s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 238s async with timeouts.timeout(timeout): 238s ~~~~~~~~~~~~~~~~^^^^^^^^^ 238s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 238s raise RuntimeError("Timeout should be used inside a task") 238s RuntimeError: Timeout should be used inside a task 238s WARNING NotebookApp:handlers.py:612 Unhandled error 238s --------------------------- Captured stderr teardown --------------------------- 238s Traceback (most recent call last): 238s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 238s return _run_code(code, main_globals, None, 238s "__main__", mod_spec) 238s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 238s exec(code, run_globals) 238s ~~~~^^^^^^^^^^^^^^^^^^^ 238s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 238s from pathlib import Path 238s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 238s from ._abc import * 238s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 238s from glob import _Globber, _no_recurse_symlinks 238s File "/usr/lib/python3.13/glob.py", line 5, in 238s import re 238s File "/usr/lib/python3.13/re/__init__.py", line 126, in 238s from . import _compiler, _parser 238s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 238s from . import _parser 238s File "/usr/lib/python3.13/re/_parser.py", line 15, in 238s from ._constants import * 238s File "/usr/lib/python3.13/re/_constants.py", line 130, in 238s ATCODES = _makecodes( 238s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 238s ...<5 lines>... 238s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 238s ) 238s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 238s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 238s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 238s KeyboardInterrupt 238s =============================== warnings summary =============================== 238s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 238s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 238s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 238s return LooseVersion(v) >= LooseVersion(check) 238s 238s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 238s services/kernels/tests/test_kernels_api.py: 71 warnings 238s services/sessions/tests/test_sessions_api.py: 96 warnings 238s /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). 238s dt = unaware(*args, **kwargs) 238s 238s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 238s /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 238s pytestmark = pytest.mark.integration_tests 238s 238s services/kernels/tests/test_kernels_api.py: 6 warnings 238s services/sessions/tests/test_sessions_api.py: 6 warnings 238s /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 238s policy = events.get_event_loop_policy() 238s 238s services/kernels/tests/test_kernels_api.py: 24 warnings 238s services/sessions/tests/test_sessions_api.py: 19 warnings 238s /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 238s loop = events.get_event_loop_policy().get_event_loop() 238s 238s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 238s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 238s loop.make_current() 238s 238s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 238s =========================== short test summary info ============================ 238s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 238s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 238s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 238s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 238s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 238s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 238s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 238s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 238s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 238s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 238s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 238s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 238s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 238s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 238s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 238s ===== 23 failed, 2 passed, 305 deselected, 227 warnings, 4 errors in 5.76s ===== 239s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 239s *** 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 242s ============================= test session starts ============================== 242s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 242s rootdir: /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp 242s plugins: typeguard-4.4.4 242s collected 330 items / 307 deselected / 23 selected 242s run-last-failure: rerun previous 23 failures 242s 243s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 244s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 244s 244s ==================================== ERRORS ==================================== 244s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 244s 244s self = 244s 244s def tearDown(self): 244s for k in self.kern_api.list().json(): 244s > self.kern_api.shutdown(k['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "", line 1360, in _find_and_load 244s File "", line 1331, in _find_and_load_unlocked 244s File "", line 935, in _load_unlocked 244s File "", line 1019, in exec_module 244s File "", line 1152, in get_code 244s File "", line 781, in _compile_bytecode 244s KeyboardInterrupt 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 244s import jupyter_client 244s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 244s from .asynchronous import AsyncKernelClient 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 244s from .client import AsyncKernelClient # noqa 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 244s import zmq.asyncio 244s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 244s import asyncio 244s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 244s from .base_events import * 244s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 244s import ssl 244s File "/usr/lib/python3.13/ssl.py", line 263, in 244s import base64 # for DER-to-PEM translation 244s ^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/base64.py", line 109, in 244s _urlsafe_encode_translation = bytes.maketrans(b'+/', b'-_') 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-2b958070-3e14-4e16-a820-0df5911abcfa.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52415 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53917 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b958070-3e14-4e16-a820-0df5911abcfa, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.150000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-1d62b8f4-e7ff-4750-b4c4-48370de83b6f.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36081 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52001 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d62b8f4-e7ff-4750-b4c4-48370de83b6f, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.680000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1d62b8f4-e7ff-4750-b4c4-48370de83b6f 244s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f/interrupt (::1) 2.080000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 244s yield maybe_future(km.restart_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 244s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 244s await ensure_async(kernel.restart_kernel(now=now)) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 244s await self._async_shutdown_kernel(now=now, restart=True) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f/restart (::1) 9.110000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b958070-3e14-4e16-a820-0df5911abcfa 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b958070-3e14-4e16-a820-0df5911abcfa 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 244s yielded = ctx_run(next, result) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 244s 244s self = 244s 244s def tearDown(self): 244s for k in self.kern_api.list().json(): 244s > self.kern_api.shutdown(k['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 244s import functools 244s File "/usr/lib/python3.13/functools.py", line 18, in 244s from collections import namedtuple 244s File "/usr/lib/python3.13/collections/__init__.py", line 35, in 244s from itertools import chain as _chain 244s KeyboardInterrupt 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 244s import jupyter_client 244s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 244s from .asynchronous import AsyncKernelClient 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 244s from .client import AsyncKernelClient # noqa 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 244s import zmq.asyncio 244s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 244s import asyncio 244s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 244s from .base_events import * 244s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 244s import ssl 244s File "/usr/lib/python3.13/ssl.py", line 123, in 244s _IntEnum._convert_( 244s ~~~~~~~~~~~~~~~~~~^ 244s '_SSLMethod', __name__, 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s lambda name: name.startswith('PROTOCOL_') and name != 'PROTOCOL_SSLv23', 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s source=_ssl) 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 244s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 244s File "/usr/lib/python3.13/enum.py", line 1795, in convert_class 244s body[name] = obj 244s ~~~~^^^^^^ 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-c7c9f40f-120b-420c-a1b3-f629f34767bc.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42355 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50035 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7c9f40f-120b-420c-a1b3-f629f34767bc, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.890000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-e8ef5e5e-59dc-44a7-a45d-23a44ced1062.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40471 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56999 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: e8ef5e5e-59dc-44a7-a45d-23a44ced1062, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.760000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e8ef5e5e-59dc-44a7-a45d-23a44ced1062 244s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062/interrupt (::1) 5.440000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 244s yield maybe_future(km.restart_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 244s result = coro.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 244s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 244s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 244s yield self # This tells Task to wait for completion. 244s ^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 244s await ensure_async(kernel.restart_kernel(now=now)) 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 244s await self._async_shutdown_kernel(now=now, restart=True) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062/restart (::1) 7.770000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.650000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7c9f40f-120b-420c-a1b3-f629f34767bc 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7c9f40f-120b-420c-a1b3-f629f34767bc 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-8e6b5c70-d2fa-4567-bb44-86c943a70c3b.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42561 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39341 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e6b5c70-d2fa-4567-bb44-86c943a70c3b, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.430000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.320000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 20d6572c-e072-423c-b38c-ae4f2179d285 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 20d6572c-e072-423c-b38c-ae4f2179d285 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0d52122a-32b4-4ef7-a45d-0151debabff4 (::1) 1.310000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 7.320000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 244s from subprocess import PIPE, Popen 244s File "/usr/lib/python3.13/subprocess.py", line 46, in 244s import locale 244s File "", line 1360, in _find_and_load 244s File "", line 1331, in _find_and_load_unlocked 244s File "", line 935, in _load_unlocked 244s File "", line 1019, in exec_module 244s File "", line 1152, in get_code 244s File "", line 781, in _compile_bytecode 244s KeyboardInterrupt 244s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-f0078418-4ca0-40f0-b8bd-974608142cc8.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38107 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33867 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: f0078418-4ca0-40f0-b8bd-974608142cc8, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.440000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.930000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.940000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5edb2879-d5b8-4aa4-9c0e-7f570872f107 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5edb2879-d5b8-4aa4-9c0e-7f570872f107 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170 (::1) 0.990000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f0078418-4ca0-40f0-b8bd-974608142cc8 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0078418-4ca0-40f0-b8bd-974608142cc8 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 6.690000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 244s from subprocess import PIPE, Popen 244s File "/usr/lib/python3.13/subprocess.py", line 46, in 244s import locale 244s File "/usr/lib/python3.13/locale.py", line 180, in 244s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 244s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 244s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 244s return _compile(pattern, flags) 244s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 244s p = _compiler.compile(pattern, flags) 244s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 244s code = _code(p, flags) 244s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 244s _compile(code, p.data, flags) 244s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 244s _compile(code, av[2], flags) 244s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 244s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 244s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 244s _compile(code, av[2], flags) 244s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 244s emit(ANY) 244s ~~~~^^^^^ 244s KeyboardInterrupt 244s =================================== FAILURES =================================== 244s ______________________ KernelAPITest.test_default_kernel _______________________ 244s 244s self = 244s 244s def tearDown(self): 244s for k in self.kern_api.list().json(): 244s > self.kern_api.shutdown(k['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/502c4e28-66c7-43d3-9e3d-81ae4d864e8f 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log setup ------------------------------ 244s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp2n5zocdy/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp2n5zocdy/etc/jupyter'] for config files 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2n5zocdy/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2n5zocdy/config 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2n5zocdy/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2n5zocdy/config 244s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp2n5zocdy/notebooks 244s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 244s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 244s WARNING NotebookApp:handlers.py:612 Forbidden 244s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.290000ms referer=None 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 244s from ._local import * 244s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 244s class PureWindowsPath(PurePath): 244s ...<7 lines>... 244s __slots__ = () 244s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 244s import ntpath 244s File "/usr/lib/python3.13/ntpath.py", line 308, in 244s {f'LPT{c}' for c in '123456789\xb9\xb2\xb3'} 244s ^^^^^^^^^ 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-502c4e28-66c7-43d3-9e3d-81ae4d864e8f.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43865 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 502c4e28-66c7-43d3-9e3d-81ae4d864e8f, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 66.880000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.600000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 502c4e28-66c7-43d3-9e3d-81ae4d864e8f 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 502c4e28-66c7-43d3-9e3d-81ae4d864e8f 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/502c4e28-66c7-43d3-9e3d-81ae4d864e8f (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/502c4e28-66c7-43d3-9e3d-81ae4d864e8f', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 244s yielded = ctx_run(next, result) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ______________________ KernelAPITest.test_kernel_handler _______________________ 244s 244s self = 244s 244s def test_kernel_handler(self): 244s # GET kernel with given id 244s kid = self.kern_api.start().json()['id'] 244s r = self.kern_api.get(kid) 244s kern1 = r.json() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(kern1, dict) 244s self.assertIn('id', kern1) 244s self.assertEqual(kern1['id'], kid) 244s 244s # Request a bad kernel id and check that a JSON 244s # message is returned! 244s bad_id = '111-111-111-111-111' 244s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 244s self.kern_api.get(bad_id) 244s 244s # DELETE kernel with id 244s > r = self.kern_api.shutdown(kid) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 244s from ._local import * 244s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 244s class PureWindowsPath(PurePath): 244s ...<7 lines>... 244s __slots__ = () 244s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 244s import ntpath 244s File "/usr/lib/python3.13/ntpath.py", line 557, in 244s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 244s File "", line 1360, in _find_and_load 244s File "", line 1322, in _find_and_load_unlocked 244s File "", line 1262, in _find_spec 244s File "", line 1556, in find_spec 244s File "", line 1530, in _get_spec 244s File "", line 1629, in find_spec 244s File "", line 152, in _path_stat 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42451 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35323 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.310000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 (::1) 2.280000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s 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 244s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 244s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.770000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 244s yielded = ctx_run(next, result) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 (::1) 6.860000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 502c4e28-66c7-43d3-9e3d-81ae4d864e8f 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 502c4e28-66c7-43d3-9e3d-81ae4d864e8f 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/502c4e28-66c7-43d3-9e3d-81ae4d864e8f (::1) 2.770000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6bd63097-f643-4ae2-b6b7-1f3fe70f7eb1 (::1) 1.050000ms 244s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 244s 244s self = 244s 244s def test_main_kernel_handler(self): 244s # POST request 244s r = self.kern_api.start() 244s kern1 = r.json() 244s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 244s self.assertEqual(r.status_code, 201) 244s self.assertIsInstance(kern1, dict) 244s 244s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 244s expected_csp = '; '.join([ 244s "frame-ancestors 'self'", 244s 'report-uri ' + report_uri, 244s "default-src 'none'" 244s ]) 244s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 244s 244s # GET request 244s r = self.kern_api.list() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(r.json(), list) 244s self.assertEqual(r.json()[0]['id'], kern1['id']) 244s self.assertEqual(r.json()[0]['name'], kern1['name']) 244s 244s # create another kernel and check that they both are added to the 244s # list of kernels from a GET request 244s kern2 = self.kern_api.start().json() 244s assert isinstance(kern2, dict) 244s r = self.kern_api.list() 244s kernels = r.json() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(kernels, list) 244s self.assertEqual(len(kernels), 2) 244s 244s # Interrupt a kernel 244s r = self.kern_api.interrupt(kern2['id']) 244s self.assertEqual(r.status_code, 204) 244s 244s # Restart a kernel 244s > r = self.kern_api.restart(kern2['id']) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 244s return self._req('POST', url_path_join(id, 'restart')) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f/restart 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "", line 1360, in _find_and_load 244s File "", line 1331, in _find_and_load_unlocked 244s File "", line 935, in _load_unlocked 244s File "", line 1019, in exec_module 244s File "", line 1152, in get_code 244s File "", line 781, in _compile_bytecode 244s KeyboardInterrupt 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 244s import jupyter_client 244s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 244s from .asynchronous import AsyncKernelClient 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 244s from .client import AsyncKernelClient # noqa 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 244s import zmq.asyncio 244s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 244s import asyncio 244s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 244s from .base_events import * 244s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 244s import ssl 244s File "/usr/lib/python3.13/ssl.py", line 263, in 244s import base64 # for DER-to-PEM translation 244s ^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/base64.py", line 109, in 244s _urlsafe_encode_translation = bytes.maketrans(b'+/', b'-_') 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-2b958070-3e14-4e16-a820-0df5911abcfa.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52415 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53917 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b958070-3e14-4e16-a820-0df5911abcfa, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.150000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2n5zocdy/runtime/kernel-1d62b8f4-e7ff-4750-b4c4-48370de83b6f.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36081 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52001 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d62b8f4-e7ff-4750-b4c4-48370de83b6f, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.680000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1d62b8f4-e7ff-4750-b4c4-48370de83b6f 244s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f/interrupt (::1) 2.080000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 244s yield maybe_future(km.restart_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 244s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 244s await ensure_async(kernel.restart_kernel(now=now)) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 244s await self._async_shutdown_kernel(now=now, restart=True) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f/restart (::1) 9.110000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b958070-3e14-4e16-a820-0df5911abcfa 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b958070-3e14-4e16-a820-0df5911abcfa 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 244s yielded = ctx_run(next, result) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ________________________ KernelAPITest.test_no_kernels _________________________ 244s 244s self = 244s 244s def test_no_kernels(self): 244s """Make sure there are no kernels running at the start""" 244s kernels = self.kern_api.list().json() 244s > self.assertEqual(kernels, []) 244s E AssertionError: Lists differ: [{'id': '2b958070-3e14-4e16-a820-0df5911ab[281 chars]: 0}] != [] 244s E 244s E First list contains 2 additional elements. 244s E First extra element 0: 244s E {'id': '2b958070-3e14-4e16-a820-0df5911abcfa', 'name': 'python3', 'last_activity': '2026-01-24T03:32:26.690119Z', 'execution_state': 'starting', 'connections': 0} 244s E 244s E + [] 244s E - [{'connections': 0, 244s E - 'execution_state': 'starting', 244s E - 'id': '2b958070-3e14-4e16-a820-0df5911abcfa', 244s E - 'last_activity': '2026-01-24T03:32:26.690119Z', 244s E - 'name': 'python3'}, 244s E - {'connections': 0, 244s E - 'execution_state': 'starting', 244s E - 'id': '1d62b8f4-e7ff-4750-b4c4-48370de83b6f', 244s E - 'last_activity': '2026-01-24T03:32:26.711936Z', 244s E - 'name': 'python3'}] 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.000000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b958070-3e14-4e16-a820-0df5911abcfa 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b958070-3e14-4e16-a820-0df5911abcfa 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2b958070-3e14-4e16-a820-0df5911abcfa (::1) 0.960000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d62b8f4-e7ff-4750-b4c4-48370de83b6f 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d62b8f4-e7ff-4750-b4c4-48370de83b6f 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1d62b8f4-e7ff-4750-b4c4-48370de83b6f (::1) 1.160000ms 244s ---------------------------- Captured log teardown ----------------------------- 244s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 244s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 244s _____________________ AsyncKernelAPITest.test_connections ______________________ 244s 244s self = 244s 244s def tearDown(self): 244s for k in self.kern_api.list().json(): 244s > self.kern_api.shutdown(k['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log setup ------------------------------ 244s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4l_7m2qb/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4l_7m2qb/etc/jupyter'] for config files 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4l_7m2qb/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4l_7m2qb/config 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4l_7m2qb/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4l_7m2qb/config 244s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4l_7m2qb/notebooks 244s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 244s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 244s WARNING NotebookApp:handlers.py:612 Forbidden 244s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.710000ms referer=None 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-f5e69059-5f61-47ca-b519-15667d9806cf.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32781 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55827 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: f5e69059-5f61-47ca-b519-15667d9806cf, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.670000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 0.870000ms 244s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf/channels 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 244s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52637 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (starting) 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (busy) 244s 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/'}]} 244s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel f5e69059-5f61-47ca-b519-15667d9806cf) to 5.4 (client). 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (idle) 244s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf/channels (::1) 511.400000ms 244s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf/channels 244s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55827 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52637 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32781 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36385 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52637 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32781 244s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 244s Setting websocket_ping_timeout=30000 244s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 2.430000ms 244s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (busy) 244s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (idle) 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (busy) 244s DEBUG NotebookApp:kernelmanager.py:423 activity on f5e69059-5f61-47ca-b519-15667d9806cf: status (idle) 244s DEBUG NotebookApp:handlers.py:579 Websocket closed f5e69059-5f61-47ca-b519-15667d9806cf:705a89a7-6e06672427a373cc443b480a 244s INFO NotebookApp:kernelmanager.py:222 Starting buffering for f5e69059-5f61-47ca-b519-15667d9806cf:705a89a7-6e06672427a373cc443b480a 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f5e69059-5f61-47ca-b519-15667d9806cf:iopub 244s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f5e69059-5f61-47ca-b519-15667d9806cf:iopub 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 0.960000ms 244s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f5e69059-5f61-47ca-b519-15667d9806cf:iopub 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5e69059-5f61-47ca-b519-15667d9806cf 244s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for f5e69059-5f61-47ca-b519-15667d9806cf:705a89a7-6e06672427a373cc443b480a 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5e69059-5f61-47ca-b519-15667d9806cf 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 244s 244s self = 244s 244s def tearDown(self): 244s for k in self.kern_api.list().json(): 244s > self.kern_api.shutdown(k['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-5b11cc7b-6755-4d51-bff8-1d0f51df06d1.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55123 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57141 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b11cc7b-6755-4d51-bff8-1d0f51df06d1, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.500000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.170000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5e69059-5f61-47ca-b519-15667d9806cf 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5e69059-5f61-47ca-b519-15667d9806cf 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f5e69059-5f61-47ca-b519-15667d9806cf (::1) 4.230000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5b11cc7b-6755-4d51-bff8-1d0f51df06d1 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5b11cc7b-6755-4d51-bff8-1d0f51df06d1', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5b11cc7b-6755-4d51-bff8-1d0f51df06d1 (::1) 14.460000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "", line 1357, in _find_and_load 244s File "", line 417, in __enter__ 244s File "", line 458, in _get_module_lock 244s KeyboardInterrupt 244s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 244s 244s self = 244s 244s def test_kernel_handler(self): 244s # GET kernel with given id 244s kid = self.kern_api.start().json()['id'] 244s r = self.kern_api.get(kid) 244s kern1 = r.json() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(kern1, dict) 244s self.assertIn('id', kern1) 244s self.assertEqual(kern1['id'], kid) 244s 244s # Request a bad kernel id and check that a JSON 244s # message is returned! 244s bad_id = '111-111-111-111-111' 244s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 244s self.kern_api.get(bad_id) 244s 244s # DELETE kernel with id 244s > r = self.kern_api.shutdown(kid) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/91570705-583a-4dab-89f0-6a6cc3c669f6 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-91570705-583a-4dab-89f0-6a6cc3c669f6.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46207 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44977 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91570705-583a-4dab-89f0-6a6cc3c669f6, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.500000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/91570705-583a-4dab-89f0-6a6cc3c669f6 (::1) 5.550000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s 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 244s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 244s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.390000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91570705-583a-4dab-89f0-6a6cc3c669f6 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91570705-583a-4dab-89f0-6a6cc3c669f6 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/91570705-583a-4dab-89f0-6a6cc3c669f6 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/91570705-583a-4dab-89f0-6a6cc3c669f6', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/91570705-583a-4dab-89f0-6a6cc3c669f6 (::1) 17.120000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.470000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5b11cc7b-6755-4d51-bff8-1d0f51df06d1 (::1) 4.860000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91570705-583a-4dab-89f0-6a6cc3c669f6 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91570705-583a-4dab-89f0-6a6cc3c669f6 244s --------------------------- Captured stderr teardown --------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 244s import functools 244s File "/usr/lib/python3.13/functools.py", line 18, in 244s from collections import namedtuple 244s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 244s from operator import eq as _eq 244s File "/usr/lib/python3.13/operator.py", line 414, in 244s from _operator import * 244s KeyboardInterrupt 244s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 244s 244s self = 244s 244s def test_main_kernel_handler(self): 244s # POST request 244s r = self.kern_api.start() 244s kern1 = r.json() 244s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 244s self.assertEqual(r.status_code, 201) 244s self.assertIsInstance(kern1, dict) 244s 244s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 244s expected_csp = '; '.join([ 244s "frame-ancestors 'self'", 244s 'report-uri ' + report_uri, 244s "default-src 'none'" 244s ]) 244s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 244s 244s # GET request 244s r = self.kern_api.list() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(r.json(), list) 244s self.assertEqual(r.json()[0]['id'], kern1['id']) 244s self.assertEqual(r.json()[0]['name'], kern1['name']) 244s 244s # create another kernel and check that they both are added to the 244s # list of kernels from a GET request 244s kern2 = self.kern_api.start().json() 244s assert isinstance(kern2, dict) 244s r = self.kern_api.list() 244s kernels = r.json() 244s self.assertEqual(r.status_code, 200) 244s assert isinstance(kernels, list) 244s self.assertEqual(len(kernels), 2) 244s 244s # Interrupt a kernel 244s r = self.kern_api.interrupt(kern2['id']) 244s self.assertEqual(r.status_code, 204) 244s 244s # Restart a kernel 244s > r = self.kern_api.restart(kern2['id']) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 244s return self._req('POST', url_path_join(id, 'restart')) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062/restart 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 244s import functools 244s File "/usr/lib/python3.13/functools.py", line 18, in 244s from collections import namedtuple 244s File "/usr/lib/python3.13/collections/__init__.py", line 35, in 244s from itertools import chain as _chain 244s KeyboardInterrupt 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 244s import jupyter_client 244s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 244s from .asynchronous import AsyncKernelClient 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 244s from .client import AsyncKernelClient # noqa 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 244s import zmq.asyncio 244s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 244s import asyncio 244s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 244s from .base_events import * 244s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 244s import ssl 244s File "/usr/lib/python3.13/ssl.py", line 123, in 244s _IntEnum._convert_( 244s ~~~~~~~~~~~~~~~~~~^ 244s '_SSLMethod', __name__, 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s lambda name: name.startswith('PROTOCOL_') and name != 'PROTOCOL_SSLv23', 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s source=_ssl) 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 244s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 244s File "/usr/lib/python3.13/enum.py", line 1795, in convert_class 244s body[name] = obj 244s ~~~~^^^^^^ 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-c7c9f40f-120b-420c-a1b3-f629f34767bc.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42355 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50035 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7c9f40f-120b-420c-a1b3-f629f34767bc, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.890000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4l_7m2qb/runtime/kernel-e8ef5e5e-59dc-44a7-a45d-23a44ced1062.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40471 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56999 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: e8ef5e5e-59dc-44a7-a45d-23a44ced1062, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.760000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e8ef5e5e-59dc-44a7-a45d-23a44ced1062 244s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062/interrupt (::1) 5.440000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 244s yield maybe_future(km.restart_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 244s result = coro.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 244s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 244s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 244s yield self # This tells Task to wait for completion. 244s ^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 244s await ensure_async(kernel.restart_kernel(now=now)) 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 244s await self._async_shutdown_kernel(now=now, restart=True) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062/restart (::1) 7.770000ms referer=None 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.650000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7c9f40f-120b-420c-a1b3-f629f34767bc 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7c9f40f-120b-420c-a1b3-f629f34767bc 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 244s yield maybe_future(km.shutdown_kernel(kernel_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 244s 244s self = 244s 244s def test_no_kernels(self): 244s """Make sure there are no kernels running at the start""" 244s kernels = self.kern_api.list().json() 244s > self.assertEqual(kernels, []) 244s E AssertionError: Lists differ: [{'id': 'c7c9f40f-120b-420c-a1b3-f629f3476[281 chars]: 0}] != [] 244s E 244s E First list contains 2 additional elements. 244s E First extra element 0: 244s E {'id': 'c7c9f40f-120b-420c-a1b3-f629f34767bc', 'name': 'python3', 'last_activity': '2026-01-24T03:32:27.700856Z', 'execution_state': 'starting', 'connections': 0} 244s E 244s E + [] 244s E - [{'connections': 0, 244s E - 'execution_state': 'starting', 244s E - 'id': 'c7c9f40f-120b-420c-a1b3-f629f34767bc', 244s E - 'last_activity': '2026-01-24T03:32:27.700856Z', 244s E - 'name': 'python3'}, 244s E - {'connections': 0, 244s E - 'execution_state': 'starting', 244s E - 'id': 'e8ef5e5e-59dc-44a7-a45d-23a44ced1062', 244s E - 'last_activity': '2026-01-24T03:32:27.721860Z', 244s E - 'name': 'python3'}] 244s 244s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.080000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.660000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7c9f40f-120b-420c-a1b3-f629f34767bc 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7c9f40f-120b-420c-a1b3-f629f34767bc 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c7c9f40f-120b-420c-a1b3-f629f34767bc (::1) 0.810000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e8ef5e5e-59dc-44a7-a45d-23a44ced1062 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8ef5e5e-59dc-44a7-a45d-23a44ced1062 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e8ef5e5e-59dc-44a7-a45d-23a44ced1062 (::1) 0.920000ms 244s ---------------------------- Captured log teardown ----------------------------- 244s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b11cc7b-6755-4d51-bff8-1d0f51df06d1 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7c9f40f-120b-420c-a1b3-f629f34767bc 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5e69059-5f61-47ca-b519-15667d9806cf 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91570705-583a-4dab-89f0-6a6cc3c669f6 244s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 244s __________________________ SessionAPITest.test_create __________________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5acb6043-debc-4295-94f0-490064f20e9e 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log setup ------------------------------ 244s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzptk53m9/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzptk53m9/etc/jupyter'] for config files 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzptk53m9/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzptk53m9/config 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzptk53m9/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzptk53m9/config 244s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzptk53m9/notebooks 244s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 244s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 244s WARNING NotebookApp:handlers.py:612 Forbidden 244s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.730000ms referer=None 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-300d0cff-516e-4c4f-a52b-7c80029af2f4.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37093 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58659 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 300d0cff-516e-4c4f-a52b-7c80029af2f4, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzptk53m9/notebooks/foo'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.020000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5acb6043-debc-4295-94f0-490064f20e9e (::1) 1.020000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.500000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 300d0cff-516e-4c4f-a52b-7c80029af2f4 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 300d0cff-516e-4c4f-a52b-7c80029af2f4 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5acb6043-debc-4295-94f0-490064f20e9e (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5acb6043-debc-4295-94f0-490064f20e9e', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 244s from .connect import * # noqa: F403 244s ^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 244s import json 244s File "/usr/lib/python3.13/json/__init__.py", line 106, in 244s from .decoder import JSONDecoder, JSONDecodeError 244s File "/usr/lib/python3.13/json/decoder.py", line 133, in 244s WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS) 244s File "/usr/lib/python3.13/re/__init__.py", line 287, in compile 244s def compile(pattern, flags=0): 244s 244s KeyboardInterrupt 244s __________________ SessionAPITest.test_create_console_session __________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9f8e226a-f039-44fb-81d7-df17dfcc1d0f 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 244s from ipykernel import kernelapp as app 244s File "", line 1360, in _find_and_load 244s File "", line 1331, in _find_and_load_unlocked 244s File "", line 935, in _load_unlocked 244s File "", line 1019, in exec_module 244s File "", line 1109, in get_code 244s File "", line 1232, in path_stats 244s File "", line 152, in _path_stat 244s KeyboardInterrupt 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-1bc45d53-dc0f-4112-b505-9182d6006347.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51423 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47721 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1bc45d53-dc0f-4112-b505-9182d6006347, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzptk53m9/notebooks/foo'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.650000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 300d0cff-516e-4c4f-a52b-7c80029af2f4 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 300d0cff-516e-4c4f-a52b-7c80029af2f4 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5acb6043-debc-4295-94f0-490064f20e9e (::1) 1.340000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1bc45d53-dc0f-4112-b505-9182d6006347 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1bc45d53-dc0f-4112-b505-9182d6006347 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9f8e226a-f039-44fb-81d7-df17dfcc1d0f (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9f8e226a-f039-44fb-81d7-df17dfcc1d0f', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9f8e226a-f039-44fb-81d7-df17dfcc1d0f (::1) 8.400000ms referer=None 244s ____________________ SessionAPITest.test_create_deprecated _____________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5bc04779-dada-41e2-b49b-c951d2bb081d 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-549ac09d-0657-4e21-a92a-83aa0b5a7354.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43267 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41735 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 549ac09d-0657-4e21-a92a-83aa0b5a7354, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzptk53m9/notebooks/foo'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.200000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1bc45d53-dc0f-4112-b505-9182d6006347 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1bc45d53-dc0f-4112-b505-9182d6006347 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9f8e226a-f039-44fb-81d7-df17dfcc1d0f (::1) 1.070000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 549ac09d-0657-4e21-a92a-83aa0b5a7354 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 549ac09d-0657-4e21-a92a-83aa0b5a7354 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5bc04779-dada-41e2-b49b-c951d2bb081d (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5bc04779-dada-41e2-b49b-c951d2bb081d', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5bc04779-dada-41e2-b49b-c951d2bb081d (::1) 8.770000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 244s from glob import _Globber, _no_recurse_symlinks 244s File "/usr/lib/python3.13/glob.py", line 5, in 244s import re 244s File "/usr/lib/python3.13/re/__init__.py", line 126, in 244s from . import _compiler, _parser 244s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 244s from ._casefix import _EXTRA_CASES 244s File "", line 1357, in _find_and_load 244s File "", line 417, in __enter__ 244s File "", line 443, in _get_module_lock 244s File "", line 232, in __init__ 244s KeyboardInterrupt 244s ___________________ SessionAPITest.test_create_file_session ____________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0d52122a-32b4-4ef7-a45d-0151debabff4 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-20d6572c-e072-423c-b38c-ae4f2179d285.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48293 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54197 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 20d6572c-e072-423c-b38c-ae4f2179d285, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzptk53m9/notebooks/foo'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.200000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 549ac09d-0657-4e21-a92a-83aa0b5a7354 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 549ac09d-0657-4e21-a92a-83aa0b5a7354 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5bc04779-dada-41e2-b49b-c951d2bb081d (::1) 2.370000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 20d6572c-e072-423c-b38c-ae4f2179d285 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 20d6572c-e072-423c-b38c-ae4f2179d285 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0d52122a-32b4-4ef7-a45d-0151debabff4 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0d52122a-32b4-4ef7-a45d-0151debabff4', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s --------------------------- Captured stderr teardown --------------------------- 244s Traceback (most recent call last): 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 244s from glob import _Globber, _no_recurse_symlinks 244s File "/usr/lib/python3.13/glob.py", line 5, in 244s import re 244s File "/usr/lib/python3.13/re/__init__.py", line 125, in 244s import enum 244s File "/usr/lib/python3.13/enum.py", line 1398, in 244s class FlagBoundary(StrEnum): 244s ...<10 lines>... 244s KEEP = auto() 244s File "/usr/lib/python3.13/enum.py", line 611, in __new__ 244s setattr(enum_class, name, enum_method) 244s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 244s member_map = cls.__dict__.get('_member_map_', {}) 244s KeyboardInterrupt 244s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 244s 244s self = 244s 244s def test_create_with_kernel_id(self): 244s # create a new kernel 244s r = self.request('POST', 'api/kernels') 244s r.raise_for_status() 244s kernel = r.json() 244s 244s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 244s self.assertEqual(resp.status_code, 201) 244s newsession = resp.json() 244s self.assertIn('id', newsession) 244s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 244s self.assertEqual(newsession['kernel']['id'], kernel['id']) 244s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 244s 244s sessions = self.sess_api.list().json() 244s > self.assertEqual(sessions, [newsession]) 244s E AssertionError: Lists differ: [{'id': '0d52122a-32b4-4ef7-a45d-0151debabff4', 'pa[552 chars]ne}}] != [{'id': '093400a1-b0bd-4e9f-88dd-602d988e3193', 'pa[278 chars]ne}}] 244s E 244s E First differing element 0: 244s E {'id': '0d52122a-32b4-4ef7-a45d-0151debabff4', 'pa[217 chars]: 0}} 244s E {'id': '093400a1-b0bd-4e9f-88dd-602d988e3193', 'pa[277 chars]one}} 244s E 244s E First list contains 1 additional elements. 244s E First extra element 1: 244s E {'id': '093400a1-b0bd-4e9f-88dd-602d988e3193', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8e6b5c70-d2fa-4567-bb44-86c943a70c3b', 'name': 'python3', 'last_activity': '2026-01-24T03:32:28.210046Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 244s E 244s E Diff is 830 characters long. Set self.maxDiff to None to see it. 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-8e6b5c70-d2fa-4567-bb44-86c943a70c3b.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42561 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39341 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e6b5c70-d2fa-4567-bb44-86c943a70c3b, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.920000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.430000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.320000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 20d6572c-e072-423c-b38c-ae4f2179d285 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 20d6572c-e072-423c-b38c-ae4f2179d285 244s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0d52122a-32b4-4ef7-a45d-0151debabff4 (::1) 1.310000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 7.320000ms referer=None 244s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.810000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-55e6c3ee-0f31-430b-934c-66fae2b8b402.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47173 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44137 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55e6c3ee-0f31-430b-934c-66fae2b8b402, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.790000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e6b5c70-d2fa-4567-bb44-86c943a70c3b 244s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 3.020000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.290000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.210000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55e6c3ee-0f31-430b-934c-66fae2b8b402 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55e6c3ee-0f31-430b-934c-66fae2b8b402 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 7.030000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 244s from ._local import * 244s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 244s import warnings 244s File "/usr/lib/python3.13/warnings.py", line 420, in 244s class WarningMessage(object): 244s ...<18 lines>... 244s self.filename, self.lineno, self.line)) 244s File "/usr/lib/python3.13/warnings.py", line 420, in WarningMessage 244s class WarningMessage(object): 244s 244s KeyboardInterrupt 244s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.010000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzptk53m9/runtime/kernel-fae21a50-d629-49c2-a12a-d537495efd93.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36837 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53989 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: fae21a50-d629-49c2-a12a-d537495efd93, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpzptk53m9/notebooks/foo'} 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55e6c3ee-0f31-430b-934c-66fae2b8b402 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55e6c3ee-0f31-430b-934c-66fae2b8b402 244s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 17.370000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.420000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.220000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fae21a50-d629-49c2-a12a-d537495efd93 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fae21a50-d629-49c2-a12a-d537495efd93 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 244s yielded = self.gen.send(value) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 244s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 244s stopper = ensure_async(km.shutdown_kernel(now, restart)) 244s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 244s return _runner_map[name].run(inner) 244s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 244s return fut.result(None) 244s ~~~~~~~~~~^^^^^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 244s return self.__get_result() 244s ~~~~~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 244s raise self._exception 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error 244s ERROR NotebookApp:log.py:55 { 244s "Host": "localhost:12341", 244s "Accept": "*/*", 244s "User-Agent": "python-requests/2.32.5" 244s } 244s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/093400a1-b0bd-4e9f-88dd-602d988e3193 (::1) 9.070000ms referer=None 244s --------------------------- Captured stderr teardown --------------------------- 244s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 244s return _run_code(code, main_globals, None, 244s "__main__", mod_spec) 244s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 244s exec(code, run_globals) 244s ~~~~^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 244s from pathlib import Path 244s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 244s from ._abc import * 244s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 244s from glob import _Globber, _no_recurse_symlinks 244s File "/usr/lib/python3.13/glob.py", line 5, in 244s import re 244s File "/usr/lib/python3.13/re/__init__.py", line 381, in 244s import copyreg 244s File "", line 1360, in _find_and_load 244s File "", line 1322, in _find_and_load_unlocked 244s File "", line 1262, in _find_spec 244s File "", line 1556, in find_spec 244s File "", line 1530, in _get_spec 244s File "", line 1629, in find_spec 244s File "", line 152, in _path_stat 244s KeyboardInterrupt 244s ---------------------------- Captured log teardown ----------------------------- 244s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fae21a50-d629-49c2-a12a-d537495efd93 244s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 244s _______________________ AsyncSessionAPITest.test_create ________________________ 244s 244s @self.addCleanup 244s def cleanup_sessions(): 244s for session in self.sess_api.list().json(): 244s > self.sess_api.delete(session['id']) 244s 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 244s return self._req('DELETE', id) 244s ^^^^^^^^^^^^^^^^^^^^^^^ 244s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 244s response.raise_for_status() 244s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 244s 244s self = 244s 244s def raise_for_status(self): 244s """Raises :class:`HTTPError`, if one occurred.""" 244s 244s http_error_msg = "" 244s if isinstance(self.reason, bytes): 244s # We attempt to decode utf-8 first because some servers 244s # choose to localize their reason strings. If the string 244s # isn't utf-8, we fall back to iso-8859-1 for all other 244s # encodings. (See PR #3538) 244s try: 244s reason = self.reason.decode("utf-8") 244s except UnicodeDecodeError: 244s reason = self.reason.decode("iso-8859-1") 244s else: 244s reason = self.reason 244s 244s if 400 <= self.status_code < 500: 244s http_error_msg = ( 244s f"{self.status_code} Client Error: {reason} for url: {self.url}" 244s ) 244s 244s elif 500 <= self.status_code < 600: 244s http_error_msg = ( 244s f"{self.status_code} Server Error: {reason} for url: {self.url}" 244s ) 244s 244s if http_error_msg: 244s > raise HTTPError(http_error_msg, response=self) 244s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a17f4b6a-e408-4c41-a9bb-3ea4082eee2c 244s 244s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 244s ------------------------------ Captured log setup ------------------------------ 244s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpellmfywp/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpellmfywp/etc/jupyter'] for config files 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpellmfywp/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpellmfywp/config 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpellmfywp/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 244s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpellmfywp/config 244s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpellmfywp/notebooks 244s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 244s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 244s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 244s WARNING NotebookApp:handlers.py:612 Forbidden 244s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.410000ms referer=None 244s ----------------------------- Captured stderr call ----------------------------- 244s Traceback (most recent call last): 244s ------------------------------ Captured log call ------------------------------- 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.330000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 244s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-2b682f6a-706b-4df1-ab95-967258a36f47.json'] 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48807 244s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41571 244s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b682f6a-706b-4df1-ab95-967258a36f47, name: python3 244s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpellmfywp/notebooks/foo'} 244s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.630000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/a17f4b6a-e408-4c41-a9bb-3ea4082eee2c (::1) 2.280000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 244s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 244s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b682f6a-706b-4df1-ab95-967258a36f47 244s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b682f6a-706b-4df1-ab95-967258a36f47 244s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a17f4b6a-e408-4c41-a9bb-3ea4082eee2c (::1) 244s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a17f4b6a-e408-4c41-a9bb-3ea4082eee2c', version='HTTP/1.1', remote_ip='::1') 244s Traceback (most recent call last): 244s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 244s result = await result 244s ^^^^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 244s future.result() 244s ~~~~~~~~~~~~~^^ 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 244s yield maybe_future(sm.delete_session(session_id)) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 244s yielded = self.gen.throw(exc) 244s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 244s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 244s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 244s value = future.result() 244s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 244s raise self._exception.with_traceback(self._exception_tb) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 244s result = coro.send(None) 244s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 244s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 244s raise km.ready.exception() # type: ignore[misc] 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 244s await kernel_awaitable 244s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 244s result = await obj 244s ^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 244s raise e 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 244s out = await method(self, *args, **kwargs) 244s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 244s await self._async_finish_shutdown(restart=restart) 244s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 244s await asyncio.wait_for( 244s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 244s ) 244s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 244s async with timeouts.timeout(timeout): 244s ~~~~~~~~~~~~~~~~^^^^^^^^^ 244s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 244s raise RuntimeError("Timeout should be used inside a task") 244s RuntimeError: Timeout should be used inside a task 244s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 244s gc.collect() 244s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 245s 245s --------------------------- Captured stderr teardown --------------------------- 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 245s from pathlib import Path 245s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 245s from ._local import * 245s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 245s import warnings 245s File "/usr/lib/python3.13/warnings.py", line 207, in 245s class _OptionError(Exception): 245s """Exception used by option processing helpers.""" 245s pass 245s File "/usr/lib/python3.13/warnings.py", line 207, in _OptionError 245s class _OptionError(Exception): 245s 245s KeyboardInterrupt 245s _______________ AsyncSessionAPITest.test_create_console_session ________________ 245s 245s @self.addCleanup 245s def cleanup_sessions(): 245s for session in self.sess_api.list().json(): 245s > self.sess_api.delete(session['id']) 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 245s return self._req('DELETE', id) 245s ^^^^^^^^^^^^^^^^^^^^^^^ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 245s response.raise_for_status() 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s 245s self = 245s 245s def raise_for_status(self): 245s """Raises :class:`HTTPError`, if one occurred.""" 245s 245s http_error_msg = "" 245s if isinstance(self.reason, bytes): 245s # We attempt to decode utf-8 first because some servers 245s # choose to localize their reason strings. If the string 245s # isn't utf-8, we fall back to iso-8859-1 for all other 245s # encodings. (See PR #3538) 245s try: 245s reason = self.reason.decode("utf-8") 245s except UnicodeDecodeError: 245s reason = self.reason.decode("iso-8859-1") 245s else: 245s reason = self.reason 245s 245s if 400 <= self.status_code < 500: 245s http_error_msg = ( 245s f"{self.status_code} Client Error: {reason} for url: {self.url}" 245s ) 245s 245s elif 500 <= self.status_code < 600: 245s http_error_msg = ( 245s f"{self.status_code} Server Error: {reason} for url: {self.url}" 245s ) 245s 245s if http_error_msg: 245s > raise HTTPError(http_error_msg, response=self) 245s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8319041d-1113-4816-8f5e-bbdf1bf9d1ac 245s 245s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-e0b09ffb-a1e4-445c-be82-361652278f2c.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43563 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40715 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: e0b09ffb-a1e4-445c-be82-361652278f2c, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpellmfywp/notebooks/foo'} 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.890000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.360000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b682f6a-706b-4df1-ab95-967258a36f47 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b682f6a-706b-4df1-ab95-967258a36f47 245s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a17f4b6a-e408-4c41-a9bb-3ea4082eee2c (::1) 1.040000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e0b09ffb-a1e4-445c-be82-361652278f2c 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e0b09ffb-a1e4-445c-be82-361652278f2c 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8319041d-1113-4816-8f5e-bbdf1bf9d1ac (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8319041d-1113-4816-8f5e-bbdf1bf9d1ac', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s --------------------------- Captured stderr teardown --------------------------- 245s Traceback (most recent call last): 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 245s from pathlib import Path 245s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 245s from ._abc import * 245s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 245s from glob import _Globber, _no_recurse_symlinks 245s File "/usr/lib/python3.13/glob.py", line 5, in 245s import re 245s File "/usr/lib/python3.13/re/__init__.py", line 125, in 245s import enum 245s File "/usr/lib/python3.13/enum.py", line 1355, in 245s class StrEnum(str, ReprEnum): 245s ...<30 lines>... 245s return name.lower() 245s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 245s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 245s KeyboardInterrupt 245s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 245s 245s @self.addCleanup 245s def cleanup_sessions(): 245s for session in self.sess_api.list().json(): 245s > self.sess_api.delete(session['id']) 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 245s return self._req('DELETE', id) 245s ^^^^^^^^^^^^^^^^^^^^^^^ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 245s response.raise_for_status() 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s 245s self = 245s 245s def raise_for_status(self): 245s """Raises :class:`HTTPError`, if one occurred.""" 245s 245s http_error_msg = "" 245s if isinstance(self.reason, bytes): 245s # We attempt to decode utf-8 first because some servers 245s # choose to localize their reason strings. If the string 245s # isn't utf-8, we fall back to iso-8859-1 for all other 245s # encodings. (See PR #3538) 245s try: 245s reason = self.reason.decode("utf-8") 245s except UnicodeDecodeError: 245s reason = self.reason.decode("iso-8859-1") 245s else: 245s reason = self.reason 245s 245s if 400 <= self.status_code < 500: 245s http_error_msg = ( 245s f"{self.status_code} Client Error: {reason} for url: {self.url}" 245s ) 245s 245s elif 500 <= self.status_code < 600: 245s http_error_msg = ( 245s f"{self.status_code} Server Error: {reason} for url: {self.url}" 245s ) 245s 245s if http_error_msg: 245s > raise HTTPError(http_error_msg, response=self) 245s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/66a046e4-14c0-4457-aa85-7a5bea057fc6 245s 245s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-8ac0ac37-e8c9-42ae-a13b-c39b709400b4.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39777 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53089 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8ac0ac37-e8c9-42ae-a13b-c39b709400b4, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpellmfywp/notebooks/foo'} 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.430000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.420000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e0b09ffb-a1e4-445c-be82-361652278f2c 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e0b09ffb-a1e4-445c-be82-361652278f2c 245s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8319041d-1113-4816-8f5e-bbdf1bf9d1ac (::1) 1.020000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ac0ac37-e8c9-42ae-a13b-c39b709400b4 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ac0ac37-e8c9-42ae-a13b-c39b709400b4 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/66a046e4-14c0-4457-aa85-7a5bea057fc6 (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/66a046e4-14c0-4457-aa85-7a5bea057fc6', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s ERROR NotebookApp:log.py:55 { 245s "Host": "localhost:12341", 245s "Accept": "*/*", 245s "User-Agent": "python-requests/2.32.5" 245s } 245s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/66a046e4-14c0-4457-aa85-7a5bea057fc6 (::1) 6.430000ms referer=None 245s --------------------------- Captured stderr teardown --------------------------- 245s Traceback (most recent call last): 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 245s from pathlib import Path 245s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 245s from ._abc import * 245s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 245s from glob import _Globber, _no_recurse_symlinks 245s File "/usr/lib/python3.13/glob.py", line 5, in 245s import re 245s File "/usr/lib/python3.13/re/__init__.py", line 126, in 245s from . import _compiler, _parser 245s File "", line 1360, in _find_and_load 245s File "", line 1331, in _find_and_load_unlocked 245s File "", line 935, in _load_unlocked 245s File "", line 1019, in exec_module 245s File "", line 1152, in get_code 245s File "", line 781, in _compile_bytecode 245s KeyboardInterrupt 245s _________________ AsyncSessionAPITest.test_create_file_session _________________ 245s 245s @self.addCleanup 245s def cleanup_sessions(): 245s for session in self.sess_api.list().json(): 245s > self.sess_api.delete(session['id']) 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 245s return self._req('DELETE', id) 245s ^^^^^^^^^^^^^^^^^^^^^^^ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 245s response.raise_for_status() 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s 245s self = 245s 245s def raise_for_status(self): 245s """Raises :class:`HTTPError`, if one occurred.""" 245s 245s http_error_msg = "" 245s if isinstance(self.reason, bytes): 245s # We attempt to decode utf-8 first because some servers 245s # choose to localize their reason strings. If the string 245s # isn't utf-8, we fall back to iso-8859-1 for all other 245s # encodings. (See PR #3538) 245s try: 245s reason = self.reason.decode("utf-8") 245s except UnicodeDecodeError: 245s reason = self.reason.decode("iso-8859-1") 245s else: 245s reason = self.reason 245s 245s if 400 <= self.status_code < 500: 245s http_error_msg = ( 245s f"{self.status_code} Client Error: {reason} for url: {self.url}" 245s ) 245s 245s elif 500 <= self.status_code < 600: 245s http_error_msg = ( 245s f"{self.status_code} Server Error: {reason} for url: {self.url}" 245s ) 245s 245s if http_error_msg: 245s > raise HTTPError(http_error_msg, response=self) 245s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170 245s 245s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-5edb2879-d5b8-4aa4-9c0e-7f570872f107.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34003 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56903 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5edb2879-d5b8-4aa4-9c0e-7f570872f107, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpellmfywp/notebooks/foo'} 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.190000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ac0ac37-e8c9-42ae-a13b-c39b709400b4 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ac0ac37-e8c9-42ae-a13b-c39b709400b4 245s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/66a046e4-14c0-4457-aa85-7a5bea057fc6 (::1) 0.900000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5edb2879-d5b8-4aa4-9c0e-7f570872f107 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5edb2879-d5b8-4aa4-9c0e-7f570872f107 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170 (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s ERROR NotebookApp:log.py:55 { 245s "Host": "localhost:12341", 245s "Accept": "*/*", 245s "User-Agent": "python-requests/2.32.5" 245s } 245s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170 (::1) 6.480000ms referer=None 245s --------------------------- Captured stderr teardown --------------------------- 245s Traceback (most recent call last): 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 245s from pathlib import Path 245s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 245s from ._abc import * 245s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 245s from glob import _Globber, _no_recurse_symlinks 245s File "/usr/lib/python3.13/glob.py", line 5, in 245s import re 245s File "/usr/lib/python3.13/re/__init__.py", line 125, in 245s import enum 245s File "/usr/lib/python3.13/enum.py", line 1398, in 245s class FlagBoundary(StrEnum): 245s ...<10 lines>... 245s KEEP = auto() 245s File "/usr/lib/python3.13/enum.py", line 1408, in FlagBoundary 245s EJECT = auto() 245s ^^^^^ 245s File "/usr/lib/python3.13/enum.py", line 415, in __setitem__ 245s elif _is_descriptor(value): 245s ~~~~~~~~~~~~~~^^^^^^^ 245s File "/usr/lib/python3.13/enum.py", line 37, in _is_descriptor 245s def _is_descriptor(obj): 245s 245s KeyboardInterrupt 245s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 245s 245s self = 245s 245s def test_create_with_kernel_id(self): 245s # create a new kernel 245s r = self.request('POST', 'api/kernels') 245s r.raise_for_status() 245s kernel = r.json() 245s 245s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 245s self.assertEqual(resp.status_code, 201) 245s newsession = resp.json() 245s self.assertIn('id', newsession) 245s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 245s self.assertEqual(newsession['kernel']['id'], kernel['id']) 245s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 245s 245s sessions = self.sess_api.list().json() 245s > self.assertEqual(sessions, [newsession]) 245s E AssertionError: Lists differ: [{'id': '0647473b-fc36-4037-bec3-290e6e8a2170', 'p[553 chars]ne}}] != [{'id': '17b36825-ea1f-4a44-bca4-ea4908dc8619', 'p[279 chars]ne}}] 245s E 245s E First differing element 0: 245s E {'id': '0647473b-fc36-4037-bec3-290e6e8a2170', 'p[218 chars]: 0}} 245s E {'id': '17b36825-ea1f-4a44-bca4-ea4908dc8619', 'p[278 chars]one}} 245s E 245s E First list contains 1 additional elements. 245s E First extra element 1: 245s E {'id': '17b36825-ea1f-4a44-bca4-ea4908dc8619', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f0078418-4ca0-40f0-b8bd-974608142cc8', 'name': 'python3', 'last_activity': '2026-01-24T03:32:28.666368Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 245s E 245s E Diff is 830 characters long. Set self.maxDiff to None to see it. 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 245s ----------------------------- Captured stderr call ----------------------------- 245s Traceback (most recent call last): 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-f0078418-4ca0-40f0-b8bd-974608142cc8.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38107 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33867 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: f0078418-4ca0-40f0-b8bd-974608142cc8, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.440000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.930000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.940000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5edb2879-d5b8-4aa4-9c0e-7f570872f107 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5edb2879-d5b8-4aa4-9c0e-7f570872f107 245s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0647473b-fc36-4037-bec3-290e6e8a2170 (::1) 0.990000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f0078418-4ca0-40f0-b8bd-974608142cc8 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0078418-4ca0-40f0-b8bd-974608142cc8 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s ERROR NotebookApp:log.py:55 { 245s "Host": "localhost:12341", 245s "Accept": "*/*", 245s "User-Agent": "python-requests/2.32.5" 245s } 245s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 6.690000ms referer=None 245s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 245s 245s @self.addCleanup 245s def cleanup_sessions(): 245s for session in self.sess_api.list().json(): 245s > self.sess_api.delete(session['id']) 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 245s return self._req('DELETE', id) 245s ^^^^^^^^^^^^^^^^^^^^^^^ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 245s response.raise_for_status() 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s 245s self = 245s 245s def raise_for_status(self): 245s """Raises :class:`HTTPError`, if one occurred.""" 245s 245s http_error_msg = "" 245s if isinstance(self.reason, bytes): 245s # We attempt to decode utf-8 first because some servers 245s # choose to localize their reason strings. If the string 245s # isn't utf-8, we fall back to iso-8859-1 for all other 245s # encodings. (See PR #3538) 245s try: 245s reason = self.reason.decode("utf-8") 245s except UnicodeDecodeError: 245s reason = self.reason.decode("iso-8859-1") 245s else: 245s reason = self.reason 245s 245s if 400 <= self.status_code < 500: 245s http_error_msg = ( 245s f"{self.status_code} Client Error: {reason} for url: {self.url}" 245s ) 245s 245s elif 500 <= self.status_code < 600: 245s http_error_msg = ( 245s f"{self.status_code} Server Error: {reason} for url: {self.url}" 245s ) 245s 245s if http_error_msg: 245s > raise HTTPError(http_error_msg, response=self) 245s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 245s 245s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 245s ----------------------------- Captured stderr call ----------------------------- 245s Traceback (most recent call last): 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.440000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-6f3e8dcd-b1dd-4679-bff8-b1d1dc510678.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42395 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51001 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.970000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f0078418-4ca0-40f0-b8bd-974608142cc8 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0078418-4ca0-40f0-b8bd-974608142cc8 245s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 1.260000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.410000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s ERROR NotebookApp:log.py:55 { 245s "Host": "localhost:12341", 245s "Accept": "*/*", 245s "User-Agent": "python-requests/2.32.5" 245s } 245s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 6.730000ms referer=None 245s --------------------------- Captured stderr teardown --------------------------- 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 245s from ipykernel import kernelapp as app 245s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 245s from .connect import * # noqa: F403 245s ^^^^^^^^^^^^^^^^^^^^^^ 245s File "", line 1360, in _find_and_load 245s File "", line 1331, in _find_and_load_unlocked 245s File "", line 935, in _load_unlocked 245s File "", line 1019, in exec_module 245s File "", line 1152, in get_code 245s File "", line 781, in _compile_bytecode 245s KeyboardInterrupt 245s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 245s 245s @self.addCleanup 245s def cleanup_sessions(): 245s for session in self.sess_api.list().json(): 245s > self.sess_api.delete(session['id']) 245s 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 245s return self._req('DELETE', id) 245s ^^^^^^^^^^^^^^^^^^^^^^^ 245s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 245s response.raise_for_status() 245s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 245s 245s self = 245s 245s def raise_for_status(self): 245s """Raises :class:`HTTPError`, if one occurred.""" 245s 245s http_error_msg = "" 245s if isinstance(self.reason, bytes): 245s # We attempt to decode utf-8 first because some servers 245s # choose to localize their reason strings. If the string 245s # isn't utf-8, we fall back to iso-8859-1 for all other 245s # encodings. (See PR #3538) 245s try: 245s reason = self.reason.decode("utf-8") 245s except UnicodeDecodeError: 245s reason = self.reason.decode("iso-8859-1") 245s else: 245s reason = self.reason 245s 245s if 400 <= self.status_code < 500: 245s http_error_msg = ( 245s f"{self.status_code} Client Error: {reason} for url: {self.url}" 245s ) 245s 245s elif 500 <= self.status_code < 600: 245s http_error_msg = ( 245s f"{self.status_code} Server Error: {reason} for url: {self.url}" 245s ) 245s 245s if http_error_msg: 245s > raise HTTPError(http_error_msg, response=self) 245s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 245s 245s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 245s ----------------------------- Captured stderr call ----------------------------- 245s Traceback (most recent call last): 245s ------------------------------ Captured log call ------------------------------- 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.460000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 245s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpellmfywp/runtime/kernel-90daede1-4b40-4745-924b-3748d0e95ee0.json'] 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33211 245s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41927 245s INFO NotebookApp:kernelmanager.py:179 Kernel started: 90daede1-4b40-4745-924b-3748d0e95ee0, name: python3 245s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpellmfywp/notebooks/foo'} 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678 245s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 15.970000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 245s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 245s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90daede1-4b40-4745-924b-3748d0e95ee0 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90daede1-4b40-4745-924b-3748d0e95ee0 245s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 245s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619', version='HTTP/1.1', remote_ip='::1') 245s Traceback (most recent call last): 245s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 245s result = await result 245s ^^^^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 245s future.result() 245s ~~~~~~~~~~~~~^^ 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 245s yield maybe_future(sm.delete_session(session_id)) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 245s yielded = self.gen.throw(exc) 245s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 245s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 245s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 245s value = future.result() 245s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 245s raise self._exception.with_traceback(self._exception_tb) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 245s result = coro.send(None) 245s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 245s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 245s raise km.ready.exception() # type: ignore[misc] 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 245s await kernel_awaitable 245s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 245s result = await obj 245s ^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 245s raise e 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 245s out = await method(self, *args, **kwargs) 245s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 245s await self._async_finish_shutdown(restart=restart) 245s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 245s await asyncio.wait_for( 245s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 245s ) 245s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 245s async with timeouts.timeout(timeout): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^ 245s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 245s raise RuntimeError("Timeout should be used inside a task") 245s RuntimeError: Timeout should be used inside a task 245s WARNING NotebookApp:handlers.py:612 Unhandled error 245s ERROR NotebookApp:log.py:55 { 245s "Host": "localhost:12341", 245s "Accept": "*/*", 245s "User-Agent": "python-requests/2.32.5" 245s } 245s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17b36825-ea1f-4a44-bca4-ea4908dc8619 (::1) 7.620000ms referer=None 245s --------------------------- Captured stderr teardown --------------------------- 245s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 245s return _run_code(code, main_globals, None, 245s "__main__", mod_spec) 245s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 245s exec(code, run_globals) 245s ~~~~^^^^^^^^^^^^^^^^^^^ 245s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 245s from pathlib import Path 245s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 245s from ._local import * 245s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 245s import pwd 245s File "", line 1360, in _find_and_load 245s File "", line 1322, in _find_and_load_unlocked 245s File "", line 1262, in _find_spec 245s File "", line 985, in find_spec 245s File "", line 681, in spec_from_loader 245s File "", line 505, in _requires_builtin_wrapper 245s File "", line 1014, in is_package 245s KeyboardInterrupt 245s ---------------------------- Captured log teardown ----------------------------- 245s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90daede1-4b40-4745-924b-3748d0e95ee0 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ac0ac37-e8c9-42ae-a13b-c39b709400b4 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5edb2879-d5b8-4aa4-9c0e-7f570872f107 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b682f6a-706b-4df1-ab95-967258a36f47 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e0b09ffb-a1e4-445c-be82-361652278f2c 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f3e8dcd-b1dd-4679-bff8-b1d1dc510678 245s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f0078418-4ca0-40f0-b8bd-974608142cc8 245s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 245s =============================== warnings summary =============================== 245s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 245s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 245s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 245s return LooseVersion(v) >= LooseVersion(check) 245s 245s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 245s services/kernels/tests/test_kernels_api.py: 72 warnings 245s services/sessions/tests/test_sessions_api.py: 88 warnings 245s /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). 245s dt = unaware(*args, **kwargs) 245s 245s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 245s /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 245s pytestmark = pytest.mark.integration_tests 245s 245s services/kernels/tests/test_kernels_api.py: 6 warnings 245s services/sessions/tests/test_sessions_api.py: 6 warnings 245s /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 245s policy = events.get_event_loop_policy() 245s 245s services/kernels/tests/test_kernels_api.py: 24 warnings 245s services/sessions/tests/test_sessions_api.py: 19 warnings 245s /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 245s loop = events.get_event_loop_policy().get_event_loop() 245s 245s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 245s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 245s loop.make_current() 245s 245s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 245s =========================== short test summary info ============================ 245s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 245s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 245s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 245s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 245s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 245s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 245s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 245s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 245s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 245s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 245s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 245s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 245s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 245s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 245s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 245s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 5.44s ========== 245s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 245s *** 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 248s ============================= test session starts ============================== 248s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 248s rootdir: /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp 248s plugins: typeguard-4.4.4 248s collected 330 items / 307 deselected / 23 selected 248s run-last-failure: rerun previous 23 failures 248s 250s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 251s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 251s 251s ==================================== ERRORS ==================================== 251s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 251s 251s self = 251s 251s def tearDown(self): 251s for k in self.kern_api.list().json(): 251s > self.kern_api.shutdown(k['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 251s from ._version import ( 251s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 251s match = re.match(pattern, __version__) 251s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 251s return _compile(pattern, flags).match(string) 251s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 251s p = _compiler.compile(pattern, flags) 251s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 251s p = _parser.parse(p, flags) 251s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 251s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 251s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 251s itemsappend(_parse(source, state, verbose, nested + 1, 251s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 251s state.closegroup(group, p) 251s File "/usr/lib/python3.13/re/_parser.py", line 98, in closegroup 251s self.groupwidths[gid] = p.getwidth() 251s File "/usr/lib/python3.13/re/_parser.py", line 226, in getwidth 251s self.width = min(lo, MAXWIDTH), min(hi, MAXWIDTH) 251s KeyboardInterrupt 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-aa9ad7b8-67ab-4208-a8df-d3c42d102b0d.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56199 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33903 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: aa9ad7b8-67ab-4208-a8df-d3c42d102b0d, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.160000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-e4c27356-593c-4f14-a53b-cf9971523bf8.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52111 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60405 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: e4c27356-593c-4f14-a53b-cf9971523bf8, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.990000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.870000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e4c27356-593c-4f14-a53b-cf9971523bf8 251s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8/interrupt (::1) 3.200000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 251s yield maybe_future(km.restart_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 251s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 251s await ensure_async(kernel.restart_kernel(now=now)) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 251s await self._async_shutdown_kernel(now=now, restart=True) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8/restart (::1) 8.860000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 251s yielded = ctx_run(next, result) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d (::1) 6.510000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 251s import jupyter_client 251s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 251s from .asynchronous import AsyncKernelClient 251s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 251s from .client import AsyncKernelClient # noqa 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 251s import zmq.asyncio 251s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 251s from zmq import sugar 251s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 251s from zmq.sugar import context, frame, poll, socket, tracker, version 251s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 251s from .socket import Socket, SyncSocket 251s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 251s _SocketType = TypeVar("_SocketType", bound="Socket") 251s File "/usr/lib/python3.13/typing.py", line 191, in _type_check 251s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms) 251s File "/usr/lib/python3.13/typing.py", line 169, in _type_convert 251s return ForwardRef(arg, module=module, is_class=allow_special_forms) 251s File "/usr/lib/python3.13/typing.py", line 1035, in __init__ 251s code = compile(arg_to_compile, '', 'eval') 251s KeyboardInterrupt 251s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 251s 251s self = 251s 251s def tearDown(self): 251s for k in self.kern_api.list().json(): 251s > self.kern_api.shutdown(k['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 251s import functools 251s File "/usr/lib/python3.13/functools.py", line 18, in 251s from collections import namedtuple 251s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 251s from keyword import iskeyword as _iskeyword 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1115, in get_code 251s File "", line 1215, in get_data 251s KeyboardInterrupt 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-b151b1fe-8620-4806-a78a-df31621b8640.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41247 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52097 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: b151b1fe-8620-4806-a78a-df31621b8640, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.370000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.150000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-1b69f087-f123-4ad5-820d-0fdbaee4bad0.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45503 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50775 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b69f087-f123-4ad5-820d-0fdbaee4bad0, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.010000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1b69f087-f123-4ad5-820d-0fdbaee4bad0 251s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0/interrupt (::1) 2.170000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 251s yield maybe_future(km.restart_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 251s result = coro.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 251s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 251s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 251s yield self # This tells Task to wait for completion. 251s ^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 251s await ensure_async(kernel.restart_kernel(now=now)) 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 251s await self._async_shutdown_kernel(now=now, restart=True) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0/restart (::1) 8.530000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b151b1fe-8620-4806-a78a-df31621b8640 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b151b1fe-8620-4806-a78a-df31621b8640 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 (::1) 5.670000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 251s import jupyter_client 251s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 251s from .asynchronous import AsyncKernelClient 251s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 251s from .client import AsyncKernelClient # noqa 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 251s import zmq.asyncio 251s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 251s import asyncio 251s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 251s from .base_events import * 251s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 251s import socket 251s File "/usr/lib/python3.13/socket.py", line 86, in 251s IntFlag._convert_( 251s ~~~~~~~~~~~~~~~~~^ 251s 'MsgFlag', 251s ^^^^^^^^^^ 251s __name__, 251s ^^^^^^^^^ 251s lambda C: C.isupper() and C.startswith('MSG_')) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 251s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 251s File "/usr/lib/python3.13/enum.py", line 1794, in convert_class 251s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 251s ~~~~~~~~~~~~~~^^^^^ 251s File "/usr/lib/python3.13/enum.py", line 43, in _is_descriptor 251s hasattr(obj, '__set__') or 251s ~~~~~~~^^^^^^^^^^^^^^^^ 251s KeyboardInterrupt 251s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-e804bfc4-b34a-446d-b074-40a9bd00cf55.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50283 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52607 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: e804bfc4-b34a-446d-b074-40a9bd00cf55, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.790000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.830000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.030000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 672a2810-24d4-49b1-8703-628ecd496e9f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 672a2810-24d4-49b1-8703-628ecd496e9f 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a80da16e-c644-4adc-a4d3-608c1a18a6d1 (::1) 1.110000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e804bfc4-b34a-446d-b074-40a9bd00cf55 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e804bfc4-b34a-446d-b074-40a9bd00cf55 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 6.520000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 251s from ._version import ( 251s ...<4 lines>... 251s ) 251s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 251s match = re.match(pattern, __version__) 251s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 251s return _compile(pattern, flags).match(string) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ 251s KeyboardInterrupt 251s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59813 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46813 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.440000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67 (::1) 2.490000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 6.700000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 251s from subprocess import PIPE, Popen 251s File "/usr/lib/python3.13/subprocess.py", line 46, in 251s import locale 251s File "/usr/lib/python3.13/locale.py", line 47, in 251s from _locale import * 251s KeyboardInterrupt 251s =================================== FAILURES =================================== 251s ______________________ KernelAPITest.test_default_kernel _______________________ 251s 251s self = 251s 251s def tearDown(self): 251s for k in self.kern_api.list().json(): 251s > self.kern_api.shutdown(k['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0c6049d6-6403-4bf0-aa72-36896ac1f42b 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log setup ------------------------------ 251s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7ztfdf52/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7ztfdf52/etc/jupyter'] for config files 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7ztfdf52/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7ztfdf52/config 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7ztfdf52/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7ztfdf52/config 251s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7ztfdf52/notebooks 251s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 251s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 251s WARNING NotebookApp:handlers.py:612 Forbidden 251s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.910000ms referer=None 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-0c6049d6-6403-4bf0-aa72-36896ac1f42b.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60465 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36613 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c6049d6-6403-4bf0-aa72-36896ac1f42b, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 50.350000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.130000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c6049d6-6403-4bf0-aa72-36896ac1f42b 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c6049d6-6403-4bf0-aa72-36896ac1f42b 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0c6049d6-6403-4bf0-aa72-36896ac1f42b (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0c6049d6-6403-4bf0-aa72-36896ac1f42b', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 251s yielded = ctx_run(next, result) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0c6049d6-6403-4bf0-aa72-36896ac1f42b (::1) 11.640000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 125, in 251s import enum 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1017, in exec_module 251s KeyboardInterrupt 251s ______________________ KernelAPITest.test_kernel_handler _______________________ 251s 251s self = 251s 251s def test_kernel_handler(self): 251s # GET kernel with given id 251s kid = self.kern_api.start().json()['id'] 251s r = self.kern_api.get(kid) 251s kern1 = r.json() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(kern1, dict) 251s self.assertIn('id', kern1) 251s self.assertEqual(kern1['id'], kid) 251s 251s # Request a bad kernel id and check that a JSON 251s # message is returned! 251s bad_id = '111-111-111-111-111' 251s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 251s self.kern_api.get(bad_id) 251s 251s # DELETE kernel with id 251s > r = self.kern_api.shutdown(kid) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 126, in 251s from . import _compiler, _parser 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1152, in get_code 251s File "", line 781, in _compile_bytecode 251s KeyboardInterrupt 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-0223e592-6627-44fe-8035-b7334ee18e8f.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57787 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40639 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0223e592-6627-44fe-8035-b7334ee18e8f, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.790000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f (::1) 0.810000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s 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 251s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 251s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.140000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0223e592-6627-44fe-8035-b7334ee18e8f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0223e592-6627-44fe-8035-b7334ee18e8f 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 251s yielded = ctx_run(next, result) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f (::1) 8.170000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.670000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c6049d6-6403-4bf0-aa72-36896ac1f42b 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c6049d6-6403-4bf0-aa72-36896ac1f42b 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0c6049d6-6403-4bf0-aa72-36896ac1f42b (::1) 1.420000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0223e592-6627-44fe-8035-b7334ee18e8f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0223e592-6627-44fe-8035-b7334ee18e8f 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0223e592-6627-44fe-8035-b7334ee18e8f (::1) 0.870000ms 251s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 251s 251s self = 251s 251s def test_main_kernel_handler(self): 251s # POST request 251s r = self.kern_api.start() 251s kern1 = r.json() 251s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 251s self.assertEqual(r.status_code, 201) 251s self.assertIsInstance(kern1, dict) 251s 251s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 251s expected_csp = '; '.join([ 251s "frame-ancestors 'self'", 251s 'report-uri ' + report_uri, 251s "default-src 'none'" 251s ]) 251s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 251s 251s # GET request 251s r = self.kern_api.list() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(r.json(), list) 251s self.assertEqual(r.json()[0]['id'], kern1['id']) 251s self.assertEqual(r.json()[0]['name'], kern1['name']) 251s 251s # create another kernel and check that they both are added to the 251s # list of kernels from a GET request 251s kern2 = self.kern_api.start().json() 251s assert isinstance(kern2, dict) 251s r = self.kern_api.list() 251s kernels = r.json() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(kernels, list) 251s self.assertEqual(len(kernels), 2) 251s 251s # Interrupt a kernel 251s r = self.kern_api.interrupt(kern2['id']) 251s self.assertEqual(r.status_code, 204) 251s 251s # Restart a kernel 251s > r = self.kern_api.restart(kern2['id']) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 251s return self._req('POST', url_path_join(id, 'restart')) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8/restart 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 251s from ._version import ( 251s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 251s match = re.match(pattern, __version__) 251s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 251s return _compile(pattern, flags).match(string) 251s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 251s p = _compiler.compile(pattern, flags) 251s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 251s p = _parser.parse(p, flags) 251s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 251s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 251s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 251s itemsappend(_parse(source, state, verbose, nested + 1, 251s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 251s state.closegroup(group, p) 251s File "/usr/lib/python3.13/re/_parser.py", line 98, in closegroup 251s self.groupwidths[gid] = p.getwidth() 251s File "/usr/lib/python3.13/re/_parser.py", line 226, in getwidth 251s self.width = min(lo, MAXWIDTH), min(hi, MAXWIDTH) 251s KeyboardInterrupt 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-aa9ad7b8-67ab-4208-a8df-d3c42d102b0d.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56199 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33903 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: aa9ad7b8-67ab-4208-a8df-d3c42d102b0d, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.160000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ztfdf52/runtime/kernel-e4c27356-593c-4f14-a53b-cf9971523bf8.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52111 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60405 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: e4c27356-593c-4f14-a53b-cf9971523bf8, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.990000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.870000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e4c27356-593c-4f14-a53b-cf9971523bf8 251s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8/interrupt (::1) 3.200000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 251s yield maybe_future(km.restart_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 251s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 251s await ensure_async(kernel.restart_kernel(now=now)) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 251s await self._async_shutdown_kernel(now=now, restart=True) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8/restart (::1) 8.860000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.690000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 251s yielded = ctx_run(next, result) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d (::1) 6.510000ms referer=None 251s ________________________ KernelAPITest.test_no_kernels _________________________ 251s 251s self = 251s 251s def test_no_kernels(self): 251s """Make sure there are no kernels running at the start""" 251s kernels = self.kern_api.list().json() 251s > self.assertEqual(kernels, []) 251s E AssertionError: Lists differ: [{'id': 'aa9ad7b8-67ab-4208-a8df-d3c42d102[281 chars]: 0}] != [] 251s E 251s E First list contains 2 additional elements. 251s E First extra element 0: 251s E {'id': 'aa9ad7b8-67ab-4208-a8df-d3c42d102b0d', 'name': 'python3', 'last_activity': '2026-01-24T03:32:33.243112Z', 'execution_state': 'starting', 'connections': 0} 251s E 251s E + [] 251s E - [{'connections': 0, 251s E - 'execution_state': 'starting', 251s E - 'id': 'aa9ad7b8-67ab-4208-a8df-d3c42d102b0d', 251s E - 'last_activity': '2026-01-24T03:32:33.243112Z', 251s E - 'name': 'python3'}, 251s E - {'connections': 0, 251s E - 'execution_state': 'starting', 251s E - 'id': 'e4c27356-593c-4f14-a53b-cf9971523bf8', 251s E - 'last_activity': '2026-01-24T03:32:33.266068Z', 251s E - 'name': 'python3'}] 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.420000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aa9ad7b8-67ab-4208-a8df-d3c42d102b0d 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/aa9ad7b8-67ab-4208-a8df-d3c42d102b0d (::1) 1.190000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e4c27356-593c-4f14-a53b-cf9971523bf8 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e4c27356-593c-4f14-a53b-cf9971523bf8 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e4c27356-593c-4f14-a53b-cf9971523bf8 (::1) 1.340000ms 251s ---------------------------- Captured log teardown ----------------------------- 251s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 251s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 251s _____________________ AsyncKernelAPITest.test_connections ______________________ 251s 251s self = 251s 251s def tearDown(self): 251s for k in self.kern_api.list().json(): 251s > self.kern_api.shutdown(k['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log setup ------------------------------ 251s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp505n9pry/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp505n9pry/etc/jupyter'] for config files 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp505n9pry/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp505n9pry/config 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp505n9pry/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp505n9pry/config 251s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp505n9pry/notebooks 251s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 251s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 251s WARNING NotebookApp:handlers.py:612 Forbidden 251s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.310000ms referer=None 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-6e6239d8-d2cd-43c5-8b25-2c85daa55196.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51239 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53547 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e6239d8-d2cd-43c5-8b25-2c85daa55196, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.670000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 0.760000ms 251s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196/channels 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 251s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49731 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (starting) 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (busy) 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (idle) 251s 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/'}]} 251s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 6e6239d8-d2cd-43c5-8b25-2c85daa55196) to 5.4 (client). 251s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196/channels (::1) 570.720000ms 251s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196/channels 251s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53547 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49731 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51239 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51381 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49731 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51239 251s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 251s Setting websocket_ping_timeout=30000 251s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 1.280000ms 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (busy) 251s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (busy) 251s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (idle) 251s DEBUG NotebookApp:kernelmanager.py:423 activity on 6e6239d8-d2cd-43c5-8b25-2c85daa55196: status (idle) 251s DEBUG NotebookApp:handlers.py:579 Websocket closed 6e6239d8-d2cd-43c5-8b25-2c85daa55196:ed41ad5a-a8057d4f330854e87133ebc7 251s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 6e6239d8-d2cd-43c5-8b25-2c85daa55196:ed41ad5a-a8057d4f330854e87133ebc7 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6e6239d8-d2cd-43c5-8b25-2c85daa55196:iopub 251s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6e6239d8-d2cd-43c5-8b25-2c85daa55196:iopub 251s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6e6239d8-d2cd-43c5-8b25-2c85daa55196:iopub 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 0.690000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 0.650000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.620000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 6e6239d8-d2cd-43c5-8b25-2c85daa55196:ed41ad5a-a8057d4f330854e87133ebc7 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 6.450000ms referer=None 251s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 251s 251s self = 251s 251s def tearDown(self): 251s for k in self.kern_api.list().json(): 251s > self.kern_api.shutdown(k['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-00d0aab6-d8da-4bd9-b9be-18a77ce1693f.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53529 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56091 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00d0aab6-d8da-4bd9-b9be-18a77ce1693f, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.530000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.050000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6e6239d8-d2cd-43c5-8b25-2c85daa55196 (::1) 4.410000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/00d0aab6-d8da-4bd9-b9be-18a77ce1693f (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/00d0aab6-d8da-4bd9-b9be-18a77ce1693f', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 251s import functools 251s File "/usr/lib/python3.13/functools.py", line 18, in 251s from collections import namedtuple 251s File "/usr/lib/python3.13/collections/__init__.py", line 1351, in 251s class UserString(_collections_abc.Sequence): 251s ...<248 lines>... 251s return self.__class__(self.data.zfill(width)) 251s KeyboardInterrupt 251s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 251s 251s self = 251s 251s def test_kernel_handler(self): 251s # GET kernel with given id 251s kid = self.kern_api.start().json()['id'] 251s r = self.kern_api.get(kid) 251s kern1 = r.json() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(kern1, dict) 251s self.assertIn('id', kern1) 251s self.assertEqual(kern1['id'], kid) 251s 251s # Request a bad kernel id and check that a JSON 251s # message is returned! 251s bad_id = '111-111-111-111-111' 251s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 251s self.kern_api.get(bad_id) 251s 251s # DELETE kernel with id 251s > r = self.kern_api.shutdown(kid) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/692485d4-d979-4227-9289-e20c7f409c78 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-692485d4-d979-4227-9289-e20c7f409c78.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49113 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33655 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 692485d4-d979-4227-9289-e20c7f409c78, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.880000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/692485d4-d979-4227-9289-e20c7f409c78 (::1) 2.870000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s 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 251s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 251s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.320000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 692485d4-d979-4227-9289-e20c7f409c78 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 692485d4-d979-4227-9289-e20c7f409c78 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/692485d4-d979-4227-9289-e20c7f409c78 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/692485d4-d979-4227-9289-e20c7f409c78', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/692485d4-d979-4227-9289-e20c7f409c78 (::1) 15.500000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.390000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/00d0aab6-d8da-4bd9-b9be-18a77ce1693f (::1) 4.310000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 692485d4-d979-4227-9289-e20c7f409c78 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 692485d4-d979-4227-9289-e20c7f409c78 251s --------------------------- Captured stderr teardown --------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 251s import functools 251s File "/usr/lib/python3.13/functools.py", line 18, in 251s from collections import namedtuple 251s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 251s from reprlib import recursive_repr as _recursive_repr 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 921, in _load_unlocked 251s File "", line 818, in module_from_spec 251s File "", line 48, in _new_module 251s KeyboardInterrupt 251s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 251s 251s self = 251s 251s def test_main_kernel_handler(self): 251s # POST request 251s r = self.kern_api.start() 251s kern1 = r.json() 251s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 251s self.assertEqual(r.status_code, 201) 251s self.assertIsInstance(kern1, dict) 251s 251s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 251s expected_csp = '; '.join([ 251s "frame-ancestors 'self'", 251s 'report-uri ' + report_uri, 251s "default-src 'none'" 251s ]) 251s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 251s 251s # GET request 251s r = self.kern_api.list() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(r.json(), list) 251s self.assertEqual(r.json()[0]['id'], kern1['id']) 251s self.assertEqual(r.json()[0]['name'], kern1['name']) 251s 251s # create another kernel and check that they both are added to the 251s # list of kernels from a GET request 251s kern2 = self.kern_api.start().json() 251s assert isinstance(kern2, dict) 251s r = self.kern_api.list() 251s kernels = r.json() 251s self.assertEqual(r.status_code, 200) 251s assert isinstance(kernels, list) 251s self.assertEqual(len(kernels), 2) 251s 251s # Interrupt a kernel 251s r = self.kern_api.interrupt(kern2['id']) 251s self.assertEqual(r.status_code, 204) 251s 251s # Restart a kernel 251s > r = self.kern_api.restart(kern2['id']) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 251s return self._req('POST', url_path_join(id, 'restart')) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0/restart 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 251s import functools 251s File "/usr/lib/python3.13/functools.py", line 18, in 251s from collections import namedtuple 251s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 251s from keyword import iskeyword as _iskeyword 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1115, in get_code 251s File "", line 1215, in get_data 251s KeyboardInterrupt 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-b151b1fe-8620-4806-a78a-df31621b8640.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41247 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52097 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: b151b1fe-8620-4806-a78a-df31621b8640, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.370000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.150000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp505n9pry/runtime/kernel-1b69f087-f123-4ad5-820d-0fdbaee4bad0.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45503 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50775 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b69f087-f123-4ad5-820d-0fdbaee4bad0, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.010000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1b69f087-f123-4ad5-820d-0fdbaee4bad0 251s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0/interrupt (::1) 2.170000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 251s yield maybe_future(km.restart_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 251s result = coro.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 251s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 251s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 251s yield self # This tells Task to wait for completion. 251s ^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 251s await ensure_async(kernel.restart_kernel(now=now)) 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 251s await self._async_shutdown_kernel(now=now, restart=True) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0/restart (::1) 8.530000ms referer=None 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b151b1fe-8620-4806-a78a-df31621b8640 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b151b1fe-8620-4806-a78a-df31621b8640 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 251s yield maybe_future(km.shutdown_kernel(kernel_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 (::1) 5.670000ms referer=None 251s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 251s 251s self = 251s 251s def test_no_kernels(self): 251s """Make sure there are no kernels running at the start""" 251s kernels = self.kern_api.list().json() 251s > self.assertEqual(kernels, []) 251s E AssertionError: Lists differ: [{'id': 'b151b1fe-8620-4806-a78a-df31621b8[281 chars]: 0}] != [] 251s E 251s E First list contains 2 additional elements. 251s E First extra element 0: 251s E {'id': 'b151b1fe-8620-4806-a78a-df31621b8640', 'name': 'python3', 'last_activity': '2026-01-24T03:32:34.280773Z', 'execution_state': 'starting', 'connections': 0} 251s E 251s E + [] 251s E - [{'connections': 0, 251s E - 'execution_state': 'starting', 251s E - 'id': 'b151b1fe-8620-4806-a78a-df31621b8640', 251s E - 'last_activity': '2026-01-24T03:32:34.280773Z', 251s E - 'name': 'python3'}, 251s E - {'connections': 0, 251s E - 'execution_state': 'starting', 251s E - 'id': '1b69f087-f123-4ad5-820d-0fdbaee4bad0', 251s E - 'last_activity': '2026-01-24T03:32:34.300623Z', 251s E - 'name': 'python3'}] 251s 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.010000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b151b1fe-8620-4806-a78a-df31621b8640 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b151b1fe-8620-4806-a78a-df31621b8640 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b151b1fe-8620-4806-a78a-df31621b8640 (::1) 0.860000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b69f087-f123-4ad5-820d-0fdbaee4bad0 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b69f087-f123-4ad5-820d-0fdbaee4bad0 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1b69f087-f123-4ad5-820d-0fdbaee4bad0 (::1) 0.900000ms 251s ---------------------------- Captured log teardown ----------------------------- 251s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00d0aab6-d8da-4bd9-b9be-18a77ce1693f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b151b1fe-8620-4806-a78a-df31621b8640 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 692485d4-d979-4227-9289-e20c7f409c78 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e6239d8-d2cd-43c5-8b25-2c85daa55196 251s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 251s __________________________ SessionAPITest.test_create __________________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log setup ------------------------------ 251s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp75jfxpks/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp75jfxpks/etc/jupyter'] for config files 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp75jfxpks/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp75jfxpks/config 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp75jfxpks/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp75jfxpks/config 251s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp75jfxpks/notebooks 251s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 251s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 251s WARNING NotebookApp:handlers.py:612 Forbidden 251s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.630000ms referer=None 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-6ae883f4-4c4c-4ea2-af48-19cc3c774e99.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48489 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34213 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6ae883f4-4c4c-4ea2-af48-19cc3c774e99, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp75jfxpks/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.560000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb (::1) 2.050000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.720000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ae883f4-4c4c-4ea2-af48-19cc3c774e99 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ae883f4-4c4c-4ea2-af48-19cc3c774e99 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb (::1) 7.960000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 251s from subprocess import PIPE, Popen 251s File "/usr/lib/python3.13/subprocess.py", line 46, in 251s import locale 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 946, in _load_unlocked 251s KeyboardInterrupt 251s __________________ SessionAPITest.test_create_console_session __________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ba331a24-1537-4044-a9f5-1c2699bb73a7 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-494b7505-5d2f-468c-a552-85145c8f85d7.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45901 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48921 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 494b7505-5d2f-468c-a552-85145c8f85d7, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp75jfxpks/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.570000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.500000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6ae883f4-4c4c-4ea2-af48-19cc3c774e99 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6ae883f4-4c4c-4ea2-af48-19cc3c774e99 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/87a93cd9-83a4-4096-b44b-b10aaaad31fb (::1) 1.200000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 494b7505-5d2f-468c-a552-85145c8f85d7 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 494b7505-5d2f-468c-a552-85145c8f85d7 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ba331a24-1537-4044-a9f5-1c2699bb73a7 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ba331a24-1537-4044-a9f5-1c2699bb73a7', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 251s from ._local import * 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1152, in get_code 251s File "", line 781, in _compile_bytecode 251s KeyboardInterrupt 251s ____________________ SessionAPITest.test_create_deprecated _____________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ecbc48cf-3a56-491d-98c7-66b1612ac1a2 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-f5c4c830-7099-45c5-b3e6-d6201c4ad59d.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53815 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55575 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: f5c4c830-7099-45c5-b3e6-d6201c4ad59d, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp75jfxpks/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.220000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 494b7505-5d2f-468c-a552-85145c8f85d7 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 494b7505-5d2f-468c-a552-85145c8f85d7 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ba331a24-1537-4044-a9f5-1c2699bb73a7 (::1) 1.050000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5c4c830-7099-45c5-b3e6-d6201c4ad59d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4c830-7099-45c5-b3e6-d6201c4ad59d 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ecbc48cf-3a56-491d-98c7-66b1612ac1a2 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ecbc48cf-3a56-491d-98c7-66b1612ac1a2', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 126, in 251s from . import _compiler, _parser 251s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 251s from ._casefix import _EXTRA_CASES 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 921, in _load_unlocked 251s File "", line 819, in module_from_spec 251s File "", line 798, in _init_module_attrs 251s File "", line 638, in cached 251s File "", line 642, in _get_cached 251s File "", line 535, in cache_from_source 251s File "", line 139, in _path_split 251s KeyboardInterrupt 251s ___________________ SessionAPITest.test_create_file_session ____________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a80da16e-c644-4adc-a4d3-608c1a18a6d1 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-672a2810-24d4-49b1-8703-628ecd496e9f.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56303 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39289 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 672a2810-24d4-49b1-8703-628ecd496e9f, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp75jfxpks/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.870000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f5c4c830-7099-45c5-b3e6-d6201c4ad59d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f5c4c830-7099-45c5-b3e6-d6201c4ad59d 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ecbc48cf-3a56-491d-98c7-66b1612ac1a2 (::1) 2.140000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 672a2810-24d4-49b1-8703-628ecd496e9f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 672a2810-24d4-49b1-8703-628ecd496e9f 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a80da16e-c644-4adc-a4d3-608c1a18a6d1 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a80da16e-c644-4adc-a4d3-608c1a18a6d1', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 237, in 251s magic_check_bytes = re.compile(b'([*?[])') 251s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 251s return _compile(pattern, flags) 251s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 251s p = _compiler.compile(pattern, flags) 251s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 251s code = _code(p, flags) 251s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 251s _compile(code, p.data, flags) 251s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3.13/re/_compiler.py", line 123, in _compile 251s emit(MARK) 251s ~~~~^^^^^^ 251s KeyboardInterrupt 251s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 251s 251s self = 251s 251s def test_create_with_kernel_id(self): 251s # create a new kernel 251s r = self.request('POST', 'api/kernels') 251s r.raise_for_status() 251s kernel = r.json() 251s 251s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 251s self.assertEqual(resp.status_code, 201) 251s newsession = resp.json() 251s self.assertIn('id', newsession) 251s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 251s self.assertEqual(newsession['kernel']['id'], kernel['id']) 251s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 251s 251s sessions = self.sess_api.list().json() 251s > self.assertEqual(sessions, [newsession]) 251s E AssertionError: Lists differ: [{'id': 'a80da16e-c644-4adc-a4d3-608c1a18a6d1', 'p[553 chars]ne}}] != [{'id': '3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', 'p[279 chars]ne}}] 251s E 251s E First differing element 0: 251s E {'id': 'a80da16e-c644-4adc-a4d3-608c1a18a6d1', 'p[218 chars]: 0}} 251s E {'id': '3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', 'p[278 chars]one}} 251s E 251s E First list contains 1 additional elements. 251s E First extra element 1: 251s E {'id': '3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'e804bfc4-b34a-446d-b074-40a9bd00cf55', 'name': 'python3', 'last_activity': '2026-01-24T03:32:34.770014Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 251s E 251s E Diff is 830 characters long. Set self.maxDiff to None to see it. 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-e804bfc4-b34a-446d-b074-40a9bd00cf55.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50283 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52607 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: e804bfc4-b34a-446d-b074-40a9bd00cf55, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.790000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.830000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.030000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 672a2810-24d4-49b1-8703-628ecd496e9f 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 672a2810-24d4-49b1-8703-628ecd496e9f 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a80da16e-c644-4adc-a4d3-608c1a18a6d1 (::1) 1.110000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e804bfc4-b34a-446d-b074-40a9bd00cf55 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e804bfc4-b34a-446d-b074-40a9bd00cf55 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 6.520000ms referer=None 251s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.980000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-c9ee5b15-41bb-4995-ae08-61c89cbdfd3c.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43845 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53415 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: c9ee5b15-41bb-4995-ae08-61c89cbdfd3c, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.140000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e804bfc4-b34a-446d-b074-40a9bd00cf55 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e804bfc4-b34a-446d-b074-40a9bd00cf55 251s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 1.310000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.840000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9ee5b15-41bb-4995-ae08-61c89cbdfd3c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9ee5b15-41bb-4995-ae08-61c89cbdfd3c 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 6.370000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 251s from ._local import * 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1152, in get_code 251s File "", line 781, in _compile_bytecode 251s KeyboardInterrupt 251s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.040000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp75jfxpks/runtime/kernel-7453e174-16b7-4d9b-b095-5e43c1110083.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55239 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47193 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7453e174-16b7-4d9b-b095-5e43c1110083, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp75jfxpks/notebooks/foo'} 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9ee5b15-41bb-4995-ae08-61c89cbdfd3c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9ee5b15-41bb-4995-ae08-61c89cbdfd3c 251s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 18.940000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.560000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7453e174-16b7-4d9b-b095-5e43c1110083 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7453e174-16b7-4d9b-b095-5e43c1110083 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 251s yielded = self.gen.send(value) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 251s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 251s stopper = ensure_async(km.shutdown_kernel(now, restart)) 251s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 251s return _runner_map[name].run(inner) 251s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 251s return fut.result(None) 251s ~~~~~~~~~~^^^^^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 251s return self.__get_result() 251s ~~~~~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 251s raise self._exception 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3de5f297-fa2b-4f71-8bf9-6793dd6ebc71 (::1) 8.690000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 251s from ._local import * 251s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 251s class _PathParents(Sequence): 251s ...<25 lines>... 251s return "<{}.parents>".format(type(self._path).__name__) 251s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 251s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 251s KeyboardInterrupt 251s ---------------------------- Captured log teardown ----------------------------- 251s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7453e174-16b7-4d9b-b095-5e43c1110083 251s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 251s _______________________ AsyncSessionAPITest.test_create ________________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log setup ------------------------------ 251s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpm6yu3loi/config', '/tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpm6yu3loi/etc/jupyter'] for config files 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm6yu3loi/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm6yu3loi/config 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm6yu3loi/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.OLkJ2t/autopkgtest_tmp/home/.local/etc/jupyter 251s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm6yu3loi/config 251s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpm6yu3loi/notebooks 251s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 251s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 251s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 251s WARNING NotebookApp:handlers.py:612 Forbidden 251s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.230000ms referer=None 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-d6d56e87-372c-44d2-94a1-d66701c04f1a.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37539 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57511 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: d6d56e87-372c-44d2-94a1-d66701c04f1a, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm6yu3loi/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.490000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb (::1) 0.910000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6d56e87-372c-44d2-94a1-d66701c04f1a 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6d56e87-372c-44d2-94a1-d66701c04f1a 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb (::1) 6.870000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 251s gc.collect() 251s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 251s 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 251s from subprocess import PIPE, Popen 251s File "", line 1360, in _find_and_load 251s File "", line 1322, in _find_and_load_unlocked 251s File "", line 1262, in _find_spec 251s File "", line 1556, in find_spec 251s File "", line 1530, in _get_spec 251s File "", line 1629, in find_spec 251s File "", line 152, in _path_stat 251s KeyboardInterrupt 251s _______________ AsyncSessionAPITest.test_create_console_session ________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e354a172-c17b-4f6a-a2de-25182fa85b33 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-7c0dd557-a8bd-45dd-bb2a-d4e599eafb16.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51131 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49111 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm6yu3loi/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.760000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.900000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6d56e87-372c-44d2-94a1-d66701c04f1a 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6d56e87-372c-44d2-94a1-d66701c04f1a 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/550d42ef-fdc2-42a9-a05e-f26cdecab6cb (::1) 1.080000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e354a172-c17b-4f6a-a2de-25182fa85b33 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e354a172-c17b-4f6a-a2de-25182fa85b33', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e354a172-c17b-4f6a-a2de-25182fa85b33 (::1) 6.750000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s Traceback (most recent call last): 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 126, in 251s from . import _compiler, _parser 251s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 251s from . import _parser 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 921, in _load_unlocked 251s File "", line 819, in module_from_spec 251s File "", line 798, in _init_module_attrs 251s File "", line 638, in cached 251s File "", line 642, in _get_cached 251s File "", line 577, in cache_from_source 251s File "", line 133, in _path_join 251s KeyboardInterrupt 251s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/89d554a7-eb3d-4ab6-bcd2-50979f2fc5f9 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-97e584cf-bb35-43cb-8464-d3ad21c4123d.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53629 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49667 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97e584cf-bb35-43cb-8464-d3ad21c4123d, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm6yu3loi/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.530000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e354a172-c17b-4f6a-a2de-25182fa85b33 (::1) 2.560000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97e584cf-bb35-43cb-8464-d3ad21c4123d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97e584cf-bb35-43cb-8464-d3ad21c4123d 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/89d554a7-eb3d-4ab6-bcd2-50979f2fc5f9 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/89d554a7-eb3d-4ab6-bcd2-50979f2fc5f9', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 143, in 251s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 251s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3.13/enum.py", line 1758, in convert_class 251s __new__ = cls.__dict__.get('__new__') 251s KeyboardInterrupt 251s _________________ AsyncSessionAPITest.test_create_file_session _________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-1ca589e0-e8ed-4797-b9e3-2a949e82694c.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49039 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51527 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1ca589e0-e8ed-4797-b9e3-2a949e82694c, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm6yu3loi/notebooks/foo'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.310000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.480000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97e584cf-bb35-43cb-8464-d3ad21c4123d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97e584cf-bb35-43cb-8464-d3ad21c4123d 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/89d554a7-eb3d-4ab6-bcd2-50979f2fc5f9 (::1) 1.090000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67 (::1) 6.730000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 251s from ._local import * 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1152, in get_code 251s File "", line 781, in _compile_bytecode 251s KeyboardInterrupt 251s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 251s 251s self = 251s 251s def test_create_with_kernel_id(self): 251s # create a new kernel 251s r = self.request('POST', 'api/kernels') 251s r.raise_for_status() 251s kernel = r.json() 251s 251s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 251s self.assertEqual(resp.status_code, 201) 251s newsession = resp.json() 251s self.assertIn('id', newsession) 251s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 251s self.assertEqual(newsession['kernel']['id'], kernel['id']) 251s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 251s 251s sessions = self.sess_api.list().json() 251s > self.assertEqual(sessions, [newsession]) 251s E AssertionError: Lists differ: [{'id': '898e510a-84fb-47e7-9a62-726a1bdcce67', 'p[553 chars]ne}}] != [{'id': '60c9cd65-0907-48fd-bc75-0d4fa207b871', 'p[279 chars]ne}}] 251s E 251s E First differing element 0: 251s E {'id': '898e510a-84fb-47e7-9a62-726a1bdcce67', 'p[218 chars]: 0}} 251s E {'id': '60c9cd65-0907-48fd-bc75-0d4fa207b871', 'p[278 chars]one}} 251s E 251s E First list contains 1 additional elements. 251s E First extra element 1: 251s E {'id': '60c9cd65-0907-48fd-bc75-0d4fa207b871', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34', 'name': 'python3', 'last_activity': '2026-01-24T03:32:35.245632Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 251s E 251s E Diff is 830 characters long. Set self.maxDiff to None to see it. 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59813 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46813 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.440000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/898e510a-84fb-47e7-9a62-726a1bdcce67 (::1) 2.490000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 6.700000ms referer=None 251s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.640000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-d72f810f-b6fe-449b-bf45-0677b3d4c2bb.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59101 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46519 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: d72f810f-b6fe-449b-bf45-0677b3d4c2bb, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.190000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 2.890000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.280000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.310000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d72f810f-b6fe-449b-bf45-0677b3d4c2bb 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d72f810f-b6fe-449b-bf45-0677b3d4c2bb 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 251s from ipykernel import kernelapp as app 251s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 251s from .connect import * # noqa: F403 251s ^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 251s import json 251s File "", line 1360, in _find_and_load 251s File "", line 1331, in _find_and_load_unlocked 251s File "", line 935, in _load_unlocked 251s File "", line 1019, in exec_module 251s File "", line 1152, in get_code 251s File "", line 781, in _compile_bytecode 251s KeyboardInterrupt 251s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 251s 251s @self.addCleanup 251s def cleanup_sessions(): 251s for session in self.sess_api.list().json(): 251s > self.sess_api.delete(session['id']) 251s 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 251s return self._req('DELETE', id) 251s ^^^^^^^^^^^^^^^^^^^^^^^ 251s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 251s response.raise_for_status() 251s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 251s 251s self = 251s 251s def raise_for_status(self): 251s """Raises :class:`HTTPError`, if one occurred.""" 251s 251s http_error_msg = "" 251s if isinstance(self.reason, bytes): 251s # We attempt to decode utf-8 first because some servers 251s # choose to localize their reason strings. If the string 251s # isn't utf-8, we fall back to iso-8859-1 for all other 251s # encodings. (See PR #3538) 251s try: 251s reason = self.reason.decode("utf-8") 251s except UnicodeDecodeError: 251s reason = self.reason.decode("iso-8859-1") 251s else: 251s reason = self.reason 251s 251s if 400 <= self.status_code < 500: 251s http_error_msg = ( 251s f"{self.status_code} Client Error: {reason} for url: {self.url}" 251s ) 251s 251s elif 500 <= self.status_code < 600: 251s http_error_msg = ( 251s f"{self.status_code} Server Error: {reason} for url: {self.url}" 251s ) 251s 251s if http_error_msg: 251s > raise HTTPError(http_error_msg, response=self) 251s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 251s 251s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 251s ----------------------------- Captured stderr call ----------------------------- 251s Traceback (most recent call last): 251s ------------------------------ Captured log call ------------------------------- 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.700000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 251s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm6yu3loi/runtime/kernel-93344a4d-e05b-4c67-8c52-986f4188e33c.json'] 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51289 251s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52963 251s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93344a4d-e05b-4c67-8c52-986f4188e33c, name: python3 251s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpm6yu3loi/notebooks/foo'} 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d72f810f-b6fe-449b-bf45-0677b3d4c2bb 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d72f810f-b6fe-449b-bf45-0677b3d4c2bb 251s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 15.960000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.670000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 251s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 251s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93344a4d-e05b-4c67-8c52-986f4188e33c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93344a4d-e05b-4c67-8c52-986f4188e33c 251s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 251s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871', version='HTTP/1.1', remote_ip='::1') 251s Traceback (most recent call last): 251s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 251s result = await result 251s ^^^^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 251s future.result() 251s ~~~~~~~~~~~~~^^ 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 251s yield maybe_future(sm.delete_session(session_id)) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 251s yielded = self.gen.throw(exc) 251s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 251s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 251s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 251s value = future.result() 251s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 251s raise self._exception.with_traceback(self._exception_tb) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 251s result = coro.send(None) 251s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 251s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 251s raise km.ready.exception() # type: ignore[misc] 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 251s await kernel_awaitable 251s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 251s result = await obj 251s ^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 251s raise e 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 251s out = await method(self, *args, **kwargs) 251s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 251s await self._async_finish_shutdown(restart=restart) 251s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 251s await asyncio.wait_for( 251s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 251s ) 251s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 251s async with timeouts.timeout(timeout): 251s ~~~~~~~~~~~~~~~~^^^^^^^^^ 251s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 251s raise RuntimeError("Timeout should be used inside a task") 251s RuntimeError: Timeout should be used inside a task 251s WARNING NotebookApp:handlers.py:612 Unhandled error 251s ERROR NotebookApp:log.py:55 { 251s "Host": "localhost:12341", 251s "Accept": "*/*", 251s "User-Agent": "python-requests/2.32.5" 251s } 251s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/60c9cd65-0907-48fd-bc75-0d4fa207b871 (::1) 6.860000ms referer=None 251s --------------------------- Captured stderr teardown --------------------------- 251s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 251s return _run_code(code, main_globals, None, 251s "__main__", mod_spec) 251s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 251s exec(code, run_globals) 251s ~~~~^^^^^^^^^^^^^^^^^^^ 251s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 251s from pathlib import Path 251s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 251s from ._abc import * 251s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 251s from glob import _Globber, _no_recurse_symlinks 251s File "/usr/lib/python3.13/glob.py", line 5, in 251s import re 251s File "/usr/lib/python3.13/re/__init__.py", line 126, in 251s from . import _compiler, _parser 251s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 251s from . import _parser 251s File "/usr/lib/python3.13/re/_parser.py", line 15, in 251s from ._constants import * 251s File "", line 1360, in _find_and_load 251s File "", line 1339, in _find_and_load_unlocked 251s KeyboardInterrupt 251s ---------------------------- Captured log teardown ----------------------------- 251s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c0dd557-a8bd-45dd-bb2a-d4e599eafb16 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6d56e87-372c-44d2-94a1-d66701c04f1a 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93344a4d-e05b-4c67-8c52-986f4188e33c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca589e0-e8ed-4797-b9e3-2a949e82694c 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f69b7b42-1cf0-4c35-b7a3-22f9af2a8d34 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97e584cf-bb35-43cb-8464-d3ad21c4123d 251s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d72f810f-b6fe-449b-bf45-0677b3d4c2bb 251s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 251s =============================== warnings summary =============================== 251s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 251s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 251s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 251s return LooseVersion(v) >= LooseVersion(check) 251s 251s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 251s services/kernels/tests/test_kernels_api.py: 72 warnings 251s services/sessions/tests/test_sessions_api.py: 88 warnings 251s /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). 251s dt = unaware(*args, **kwargs) 251s 251s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 251s /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 251s pytestmark = pytest.mark.integration_tests 251s 251s services/kernels/tests/test_kernels_api.py: 6 warnings 251s services/sessions/tests/test_sessions_api.py: 6 warnings 251s /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 251s policy = events.get_event_loop_policy() 251s 251s services/kernels/tests/test_kernels_api.py: 24 warnings 251s services/sessions/tests/test_sessions_api.py: 19 warnings 251s /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 251s loop = events.get_event_loop_policy().get_event_loop() 251s 251s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 251s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 251s loop.make_current() 251s 251s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 251s =========================== short test summary info ============================ 251s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 251s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 251s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 251s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 251s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 251s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 251s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 251s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 251s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 251s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 251s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 251s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 251s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 251s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 251s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 251s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 5.42s ========== 252s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 252s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 252s autopkgtest [03:32:36]: test pytest: -----------------------] 253s pytest FAIL non-zero exit status 1 253s autopkgtest [03:32:37]: test pytest: - - - - - - - - - - results - - - - - - - - - - 253s autopkgtest [03:32:37]: @@@@@@@@@@@@@@@@@@@@ summary 253s pytest FAIL non-zero exit status 1